JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 303720
  • Score
    100M100P100Q165903F
  • License MIT

A small module to read JSON files.

Package Exports

  • r-json

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (r-json) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

r-json

PayPal AMA Version Downloads Get help on Codementor

A small module to read JSON files.

If you want to write JSON files, check out w-json.

☁️ Installation

$ npm i --save r-json

📋 Example

// Dependencies
var ReadJson = require("r-json");

// Read the json file asynchronously
ReadJson(__dirname + "/test.json", function (err, data) {
    console.log(err || data);
});

// Read the same file synchronously
console.log(ReadJson(__dirname + "/test.json"));

📝 Documentation

rJson(path, callback)

Params

  • String path: The JSON file path.
  • Function callback: An optional callback. If not passed, the function will run in sync mode.

😋 How to contribute

Have an idea? Found a bug? See how to contribute.

💫 Where is this library used?

If you are using this library in one of your projects, add it in this list. ✨

  • bible—Read the Holy Bible via the command line.
  • birthday—Know when a friend's birthday is coming.
  • blah—A command line tool to optimize the repetitive actions.
  • cdnjs-importer—Easy way to import a library into CDNJS.
  • cli-sunset—A fancy command line tool for knowing the sunset time.
  • emojic—Emoji in your Node.js command line apps.
  • engine-app (by jillix)—Engine app related helper functions.
  • engine-composition-crud (by jillix)—The default module for creating, reading, updating and deleting Engine instances.
  • engine-parser (by jillix)—Engine composition parser.
  • engine-tools (by jillix)—Engine Tools library and CLI app.
  • gh-notifier—Receive desktop notifications from your GitHub dashboard.
  • ghcal—See the GitHub contributions calendar of a user in the command line.
  • git-package-json—Get the package.json contents from git repositories.
  • git-stats—Local git statistics including GitHub-like contributions calendars.
  • github-labeller—Automagically create issue labels in your GitHub projects.
  • gpm—npm + git = gpm - Install NPM packages and dependencies from git repositories.
  • idea—A lightweight CLI tool and module for keeping ideas in a safe place quick and easy.
  • namy—Gets the name of the exported function.
  • np-init—Easily start a npm package from scratch.
  • packy—Set default fields in your package.json files.
  • r-package-json—Read package.json files.
  • ship-release—Publish new versions on GitHub and npm with ease.
  • test-youtube-api—Test Youtube API NodeJS module
  • tilda—Tiny module for building command line tools.
  • tithe—Organize and track the tithe payments.
  • web-term—A full screen terminal in your browser.
  • youtube-album-uploader (by Jared Chapiewsky)—Uploads an mp3 album to Youtube

📜 License

MIT © Ionică Bizău