🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

neuron-tree

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

neuron-tree

Generates the config.tree of neuron

2.0.0
Source
npm
Version published
Weekly downloads
1
-75%
Maintainers
1
Weekly downloads
 
Created
Source

neuron-tree NPM version Build Status Dependency Status

Utilities to generate the config.tree for neuron.

<name>: {
  <version>: {
    // dependencies and async dependencies
    <dep-name>: [
      // synchronous dependencies
      {
        <sync-dep-range>: <sync-dep-version>
        ...
      },
      // asynchronous dependencies
      {
        <async-dep-range>: <async-dep-version>
        ...
      }
    ]
  }
}
...

Install

$ npm install neuron-tree --save

Usage

var tree = require('neuron-tree');
tree.parse(shrinked);

tree(cwd, pkg, [options], callback)

  • cwd
  • pkg Object cortex json
  • options
    • built_root path=
    • shrinkwrap Object=

tree.parse(shrinked, dependencyKeys)

  • shrinked Object the shrinked object of shrinked

  • dependencyKeys Array.<type> the array of types of dependencies, default to

    [ "dependencies", "asyncDependencies" ]

    you could include other keys of dependencies in the array.

  • type String available keys: 'dependencies', 'asyncDependencies', 'engines', devDependencies

Parses the shrinked B+ tree, and generates a simpler tree for config.tree of neuron.

License

MIT

Keywords

neuron

FAQs

Package last updated on 04 Jul 2014

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