New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

nimn_schema_builder

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nimn_schema_builder

Build schema from JS object or JSON to feed into nimnjs

  • 1.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3K
decreased by-13.01%
Maintainers
1
Weekly downloads
 
Created
Source

nimnjs-schema-builder

Build schema from JS object or JSON to feed into nimnjs.

Usages

First install or add to your npm package

$npm install nimn_schema_builder
var builder = require("nimn_schema_builder");

var data = {
    name : "amit",
    age : 32,
    human : true,
    projects : [
        {
            name: "some",
            from: new Date(),
            //to: null,
            decription : "some long description"
        }
    ]
}

var schema = builder.build(data);

/*
var schema = {
            name : "string",
            age : "number",
            human : "boolean",
            projects : [
                {
                    name: "string",
                    from: "date",
                    decription : "string"
                }
            ]
        };
*/

You can also use it in browser from dist folder.

Check the demo for instant use.

Keywords

FAQs

Package last updated on 28 Feb 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc