Some JSON 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