0.0.1 • Published 10 years ago
hiden-no-tare.npm v0.0.1
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));
License
0.0.1
10 years ago