files-require-hook

1.0.0 • Public • Published

files-require-hook

require files as paths

install

with npm, run

npm install --save files-require-hook

usage

require('files-require-hook')({
  extensions: ['png', 'svg'],
  base: process.cwd()
})

var filePath = require('./file.txt')
console.log(filePath) // file.txt

/files-require-hook/

    Package Sidebar

    Install

    npm i files-require-hook

    Weekly Downloads

    2

    Version

    1.0.0

    License

    ISC

    Last publish

    Collaborators

    • ahdinosaur