1.0.1 • Published 9 years ago
resource-shim v1.0.1
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