Catalog npm
Back to packageRELEASE DETAILS

0.2.4

npm

1tree-json

Convert JSON objects to and from 1tree instances

1treejson
Published16 Feb 2017
Direct dependencies7
Transitive dependenciesNot calculated

README

Current package documentation

1tree-json

Allows conversion between JSON objects and 1tree instances

const JsonTree = require( '1tree-json' )

const jsonData = require( './test-data.json' )

const tree = JsonTree( jsonData )

const numbers = tree.findAll( node => node.isNumber() )

numbers.forEach( numberNode => {
  const value = node.value()

  value.nodeValue *= 2

  node.value( value )
})

const newData = tree.toJson()

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

Downloads & popularity

Awaiting observations

No metric observations yet

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

Declared dependencies 7

Native requirements
7 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
1tree-factory
Environment
{
  "local_name": "1tree-factory",
  "alias": false,
  "peer_metadata": null
}
^0.1.12runtime
mojule-utils
Environment
{
  "local_name": "mojule-utils",
  "alias": false,
  "peer_metadata": null
}
^0.1.5runtime
mtype
Environment
{
  "local_name": "mtype",
  "alias": false,
  "peer_metadata": null
}
^0.1.6runtime
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": "043832ede35ed576b0ce1df8ad2358de05c3200e",
  "tarball": "https://registry.npmjs.org/1tree-json/-/1tree-json-0.2.4.tgz",
  "integrity": "sha512-oUk1Z3dhMmP3f7trjrM8fPAE8XyY/0ZL9ykYnwp/X/FXtJtl8+5S5xg8Q7cVBfZowzeLD4CeTweuepHlgiGZJQ==",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEYCIQD3Ndof3S+tQ7QxhB6aLe0uhPXmYyfS0qEqh409YLR2RQIhAKv+ugPw7xb3XxSOO6TSJ7Dbti1XBYVc7yHvRiCd/zav"
    }
  ]
}

Repository

PENDING
mojule/1tree-json

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:b9040dece6a29010ed6f65bad262803701056ee0f3b74a0e18138b8a2d02eded

Other collected versions

0.2.69 Mar0.2.59 Mar0.2.38 Feb0.2.28 Feb0.2.18 Feb0.2.08 FebView all collected versions →