resource shim for node environments without the resource loader apis
checks if a resource appears to exist.
makes an array of all the resources contained in this resource.
reads all of the contents of the resource into a buffer, or string if encoding is provided in the opts.
creates a readable stream from a resource