This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

require.d

0.0.2 • Public • Published

require-dir

Require all modules in a directory

Not use module.parent,to avoid module cache

获取一个目录内的所有模块

不使用module.parent, 避免模块缓存

example

'use strict'
const rd= require('require.d')

const test = rd(__dirname + '/test');

console.log(test)

result

{ a: { f3: [Function] }, f1: [Function], f2: [Function] }

Readme

Keywords

Package Sidebar

Install

npm i require.d

Weekly Downloads

3

Version

0.0.2

License

SEE LICENSE IN LICENSE

Last publish

Collaborators

  • suntao