Licence
MIT
Version
1.1.0
Deps
0
Size
3 kB
Vulns
0
Weekly
0
Some JSON
A small libraryInstallation
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
