wrap-schema

Wrap and whitelist JSON schema

Usage no npm install needed!

<script type="module">
  import wrapSchema from 'https://cdn.skypack.dev/wrap-schema';
</script>

README

wrap-schema

NPM version Build status Test coverage Dependency Status License

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