Current collected state Current
Observed since 20 Oct, 18:39 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
1tree-schema
Convert JSON schema to and from 1tree instances
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 ) )
Download counts and popularity will appear here as the collector receives them.
| Package / target | Requirement | Relationship |
|---|---|---|
1treeEnvironment{
"local_name": "1tree",
"alias": false,
"peer_metadata": null
} | ^0.4.12 | runtime |
1tree-factoryEnvironment{
"local_name": "1tree-factory",
"alias": false,
"peer_metadata": null
} | ^0.1.12 | runtime |
babel-preset-es2015Environment{
"local_name": "babel-preset-es2015",
"alias": false,
"peer_metadata": null
} | ^6.18.0 | development |
gulpEnvironment{
"local_name": "gulp",
"alias": false,
"peer_metadata": null
} | ^3.9.1 | development |
gulp-babelEnvironment{
"local_name": "gulp-babel",
"alias": false,
"peer_metadata": null
} | ^6.1.2 | development |
mochaEnvironment{
"local_name": "mocha",
"alias": false,
"peer_metadata": null
} | ^3.2.0 | development |
Source distribution
{
"shasum": "7da2851710f8d9c7a6a8d19c6300e583acfd19c3",
"tarball": "https://registry.npmjs.org/1tree-schema/-/1tree-schema-0.2.1.tgz",
"integrity": "sha512-C/U6atRxkz/oCELUQppiYQj8ddTvVSi38gSBDuCm4MynIZ3fFgrDQ525XEM6po7VmLCcIgKIkcXE7w3QQ38xbw==",
"signatures": [
{
"keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
"sig": "MEQCID3R79v5gZDONTTVIdry4e8kI8C/uWBjphUxDK+IHrUYAiAr4TPqS7abQEVo5uufMWleeQU9L0IiVo+OUcSmBdZa/A=="
}
]
}Observed since 20 Oct, 18:39 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:9c7752909d80fb7d2cf6d935fc4fbbf53f126f388b7fd6d3ca69033a768c9ebe