npmd-link

2.0.0 • Public • Published

npmd-link

install npm modules using symlinks (FAST)

travis

example

use a leaf hash list as generated my npmd-leaves.

var link = require('npmd-link')
var leaves = require('npmd-leaves')

//take a dep tree generated by 
var depTree = require('./depTree.json')

  //link ensures all links, but leaves it to you

  link(leaves(depTree), function (err) {
    if(err) throw err
    mkdirp(path.join(process.cwd(), 'node_modules'), function () {
      //link a module into a node_modules directory.
      link.linkModule(
        process.cwd(),
        depTree.name,
        depTree.hash, {}, function () {
          console.log('ready')
        })
    })
  })
})

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i npmd-link

Weekly Downloads

3

Version

2.0.0

License

MIT

Last publish

Collaborators

  • dominictarr
  • nopersonsmodules