modulastic
Express middleware to expose select Node modules to browser.
Configuration Object
appDir: string // root directory below which node_modules can be found, usually __dirname <browserRoot>: <nameToExpose>: packageName: string // actual node package name, optional, defaults to <nameToExpose>, useful for @ prefixed packages pathName: string // subdirectory under the module to expose, usually "dist" ... more <browserRoot> objects rarely used
Example
; const app = ; // obviously need to import express first app;
License: MIT
Change History
2020-01-24 v0.0.3 Added git link 2020-01-24 v0.0.2 Updated README format