0.0.2 • Published 10 years ago
wrap-schema v0.0.2
wrap-schema
Wrap and whitelist JSON schema
var schema = require('wrap-schema');
schema({
name: 'Jot',
last: 'K'
}, 'name'); // => { properties: { name: 'Jot' } }
Installation
node:
$ npm install wrap-schema