Skip to content

dot-build/handbag-require

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

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');

About

Patch to handbag to import node modules

Resources

Stars

Watchers

Forks

Packages

No packages published