New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

json-schema-model

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-schema-model

Parser and compiler for JS models by JSON schema.

latest
Source
npmnpm
Version
1.0.4
Version published
Maintainers
1
Created
Source

JSON Schema Model

Parser and compiler for JS models by JSON schema.

Installation

bower i json-schema-model --save
# or
npm i json-schema-model --save

Usage


function User (obj) {
  
  JsonSchemaModel.call(this, {
    firstName: 'first_name',
    lastName: 'last_name',
    middleName: 'middle_name'
  });
  
  this.fromSchema(obj);
}

Methods

fromSchema - parse data by the schema object.

toSchema - convert data to the schema object.

Properties

schema - schema object

Contributing

  • Fork it!
  • Create your feature branch: git checkout -b my-new-feature
  • Commit your changes: git commit -am 'Add some feature'
  • Push to the branch: git push origin my-new-feature
  • Submit a pull request :D

History

2.06.16 Initial config

Credits

Author: Alexey Bondarenko bondalex.com

License

MIT

Keywords

parser

FAQs

Package last updated on 03 Jun 2016

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