tlrobinson / narwhal

[DEPRECATED] A JavaScript standard library, package manager, and more.
http://narwhaljs.org/
372 stars 16 forks source link

zip/jar (archive) loader #67

Open cadorn opened 14 years ago

cadorn commented 14 years ago

Currently the Narwhal loaders are all based on the filesystem. A module must be in the filesystem in one of the search paths. We need to add hooks to allow a loader to provide "virtual" search paths (for lack of a better term), which map module ids to module factories. This will allow things like modules compiled into the binary, zips, jars, etc.

http://groups.google.com/group/narwhaljs/browse_thread/thread/d812af07b3c6d4c6?hl=en