New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

require-stars

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

require-stars

[![Build Status](https://secure.travis-ci.org/rolandpoulter/node-require-stars.png)](http://travis-ci.org/rolandpoulter/node-require-stars)

latest
Source
npmnpm
Version
0.0.5
Version published
Maintainers
1
Created
Source

Require Stars

Build Status

Requires entire directories with one call to require.

How to install

npm install require-stars

How to run the tests

npm test

How to use

Require shallow directory

require('require-stars')();

requrie('./myDir/*');

Require recursivley:

require('./myDir/**');

Enumerate directory exports:

var list = [],
    flat = {};

require('require-stars/enum')(require('./myDir/**'), function (exports, name, path, obj) {
	list.push(exports);
	flat[path] = exports;
}, this);

FAQs

Package last updated on 07 Dec 2012

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