Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

sample-schema

0.0.1 • Public • Published

sample-schema

Produce a schema from multiple objects over time.

Installation

$ npm install sample-schema

Example

var Sampler = require('sample-schema');
var sampler = new Sampler;
 
sampler.add({ foo: 123 });
sampler.add({ foo: 123, bar: 123 });
sampler.add({ baz: 123, something: 'here' });

yields:

{
  foo: 'float',
  bar: 'float',
  baz: 'float',
  something: 'varchar(2048)'
}

License

MIT

install

npm i sample-schema

Downloadsweekly downloads

2

version

0.0.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability