node package manager

Introducing npm Enterprise add-ons. Integrate third-party dev tools into npm…


require a folder, resolving name, validation supported


multi = require('multi-require')
something = multi(path,[filter],[transformer])
  • path:string

folder that is needed to import, absolute path is prefred

  • filter:(required-object) -> true/false

function to filter that only specified object is required

  • trasformer:(old-name-without-extension) -> new-name

function to rename object