files-require-hook
v1.0.0
Published
require files as paths
Readme
files-require-hook
require files as paths
install
with npm, run
npm install --save files-require-hookusage
require('files-require-hook')({
extensions: ['png', 'svg'],
base: process.cwd()
})
var filePath = require('./file.txt')
console.log(filePath) // file.txt