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