0.0.3 • Published 6 years ago

power-require v0.0.3

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

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

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago