Catalog npm
Back to packageRELEASE DETAILS

0.1.8

npm

1tree-schema

Convert JSON schema to and from 1tree instances

1treejsonschema
Published25 Jan 2017
Direct dependencies5
Transitive dependenciesNot calculated

README

Current package documentation

1tree-schema

Converts JSON schema to and from 1tree instances

const SchemaTree = require( '1tree-schema' )
const jsonSchema = require( './test.schema.json' )

const tree = SchemaTree( jsonSchema )

const integerNodes = tree.findAll( n => n.nodeType() === 'integer' )

integerNodes.forEach( n => {
  const value = n.value()

  value.minimum = 1

  n.value( value )
})

const newSchema = tree.toSchema()

console.log( JSON.stringify( newSchema, null, 2 ) )

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 5

Native requirements
5 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
1tree
Environment
{
  "local_name": "1tree",
  "alias": false,
  "peer_metadata": null
}
^0.4.9runtime
babel-preset-es2015
Environment
{
  "local_name": "babel-preset-es2015",
  "alias": false,
  "peer_metadata": null
}
^6.18.0development
gulp
Environment
{
  "local_name": "gulp",
  "alias": false,
  "peer_metadata": null
}
^3.9.1development
gulp-babel
Environment
{
  "local_name": "gulp-babel",
  "alias": false,
  "peer_metadata": null
}
^6.1.2development
mocha
Environment
{
  "local_name": "mocha",
  "alias": false,
  "peer_metadata": null
}
^3.2.0development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "23ca8039c9491a0290dc478b10b35c47d0d4168b",
  "tarball": "https://registry.npmjs.org/1tree-schema/-/1tree-schema-0.1.8.tgz",
  "integrity": "sha512-R+CnKAeAQQIGV/ifH1RmUGLBdzMly1lloCDQ/uIRptGMz+XA/ER5XlSerafzUSCFDVyGzW56tEUD1VjepZEW+w==",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEQCIA/WgECOzxkQl2BZRiCTgM4d5zKF7AlZAqESLhpVXeZfAiAByn7H1JKv/v5MhGxH88PcR1YETK850/eu+C+uHOr+Nw=="
    }
  ]
}

Repository

PENDING
mojule/1tree-schema

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 18:39 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:ff1445744d3de8f64fb2fd1a6a145f10d5aeae8bee966ddf82ebead1e5dc6659

Other collected versions

0.2.59 Mar0.2.416 Feb0.2.39 Feb0.2.18 Feb0.2.08 Feb0.1.725 JanView all collected versions →