hiden-no-tare.npm
v0.0.1
Published
The secret sauce of @pirosikick for creating npm package
Downloads
3
Readme
node-schemize
Generates JSON Schema from JSON.
How to use
# Install schemize in global
$ npm install -g schemize
$ cat sample.json
{
"key": "value"
}
# Generates JSON Schema from JSON
$ schemize sample.json
{"type":"object","properties":[{"type":"string"}]}
Programmatic API
var schemize = require('schemize');
var json = {
key: "value"
};
console.log(schemize(json));