GithubHelp home page GithubHelp logo

load-jsonic-sync's Introduction

load-jsonic-sync

A simple synchronous JSON-with-comments loader that gives good explanations of where failures come from.

It accepts a superset of JSON including Javscript style comments (/* */ and //).

Use

var loadJsonicSync = require('load-jsonic-sync');

var result = loadJsonicSync('file.json');

loadJsonicSync will throw an error if loading fails. The error will show the filename, for context, and error.cause() will show the original exception which includes the position for parse errors, and the underlying fs error if there is a problem reading the file.

load-jsonic-sync's People

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

load-jsonic-sync's Issues

module misses parity with "shush"

This module was added as a replacement for shush. But it does not account for files specified without their .json extension. Recommend fixing that here so the confit implementation doesn't have to account for the same.

Compatibility with node 14

This is the problem:

(node:22719) Warning: Accessing non-existent property 'BSJSParser' of module exports inside circular dependency (node:22719) Warning: Accessing non-existent property 'BSJSIdentity' of module exports inside circular dependency (node:22719) Warning: Accessing non-existent property 'BSJSTranslator' of module exports inside circular dependency

I realized that Node 12 allow this circular dependencies, but Node 14 no, so that’s why those warnings, discover where this is happening and is in the node_modules on a ometajs dependencies, all the ometajs related, as this is.

Any suggestion to fix this?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.