somejson

1.1.0 • Public • Published

Some JSON

NPM downloads github repo
npm

A small library

Installation

npm install somejson

Usage

var fs = require('fs')
var Text = JSON.parse(fs.readFileSync('./json.json')) // The file contain {"test" : [{"name" : "Man"},{"name" : "Men"}]}
var length = require('somejson');

console.log(length(Text.test))

return 2

console.log(length([0,158,63.2,"Hi", Text]))

return 5

Changelog

1.0.0 : Create the module,
1.0.1 : Repare the example,
1.0.2 : Repare the example v.2
1.0.3 : Create a new class
1.1.0 : Simplified

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i somejson

      Weekly Downloads

      2

      Version

      1.1.0

      License

      MIT

      Unpacked Size

      3.5 kB

      Total Files

      6

      Last publish

      Collaborators

      • thumus