New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

easy-json

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

easy-json

Read and write out JSON to the File System.

latest
Source
npmnpm
Version
1.0.8
Version published
Maintainers
1
Created
Source

Easy-JSON | Crazy fast file system JSON reader and writer

This package will help you create and read in JSON files into your application.

This can be helpful for a series of use cases.

  • Temporary Data Store
  • Custom configurations
  • Bypass nodes caching of reading in JSON

Installing Module

npm install easy-json --save

Getting started with this module

const EasyJSON = require('easy-json');
const root = require('app-root-path');

const destination = `${root.path}/config`;
const fileName = "config.json";
const jay = EasyJSON.getInstance(fileName, destination);
//... use jay object here

The operations that are available to you.

UML Diagram

  • EasyJSON.getInstance(fileName, destination) gets the object to use in your program sets default name of file and destination
  • .saveJSON(data) save any javascript data to disk
  • .getJSON() gets JSON data from disk
  • .path = "path/name" set the property of the parent path
  • .path returns the set path
  • .name = "config.json" sets the name of file to write to disk
  • .name gets the name of the file

This module was made possible thanks to LearnMEAN.com

Keywords

Fast

FAQs

Package last updated on 24 Sep 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts