power-require

0.0.3 • Public • Published

power-require

const superRequire = require('power-require')
const a = superRequire.fromFile('path/to/file','whatever/node/module/path/you/want')

API

fromFile(file, [folder])

file

Required
Type: string

where file is located, either absolute or relative path is supported.

folder

Type: string
Default: .

from where to find module path, default is the path of the requiring parent file

Readme

Keywords

none

Package Sidebar

Install

npm i power-require

Weekly Downloads

1

Version

0.0.3

License

MIT

Unpacked Size

18.8 MB

Total Files

4039

Last publish

Collaborators

  • elixiao