resource-shim

1.0.1 • Public • Published

resource-shim

resource shim for node environments without the resource loader apis

require.resourceExists

require.resourceExistsSync

checks if a resource appears to exist.

require.listResource

require.listResourceSync

makes an array of all the resources contained in this resource.

require.readResource

require.readResourceSync

reads all of the contents of the resource into a buffer, or string if encoding is provided in the opts.

require.createReadStream

creates a readable stream from a resource

Readme

Keywords

none

Package Sidebar

Install

npm i resource-shim

Weekly Downloads

2

Version

1.0.1

License

ISC

Last publish

Collaborators

  • bradleymeck