handbag-require

0.3.0 • Public • Published

handbag-require

Introduction

Patch to handbag that adds two new methods:

  • require(name)

Imports a node module and adds it to handbag as a value, using the same module name

  • requireFromManifest(file)

Imports all node modules declared in a package.json files under dependencies list

Usage

var handbag = require('handbag-require');

handbag.requireFromManifest('./package.json');
handbag.require('some-module');

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.3.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.3.0
    1
  • 0.2.0
    0
  • 0.1.1
    0
  • 0.1.0
    0

Package Sidebar

Install

npm i handbag-require

Weekly Downloads

1

Version

0.3.0

License

ISC

Last publish

Collaborators

  • darlanalves