| .gitignore | Initial commit | |
| CODE_OF_CONDUCT.md | Initial commit | |
| index.js | Allow no whitespace after the 'export' keyword | |
| package.json | release 0.1.6 | |
| README.md | release 0.1.5 | |
| UNLICENSE | Initial commit | |
Simple static server middleware for express/polka/etc. that resolves npm style module imports in JavaScript files to make them available for the browser in development.Just likePolymer CLI / polyserve does.But using regular expressions instead of dragging in a whole JS parser :D
Install withnpm, obviously:
npm install --save-dev es-module-devserverSomething like this:
constfs=require('fs')constpolka=require('polka')constesModuleDevserver=require('es-module-devserver')polka().use(esModuleDevserver.middleware(__dirname)).get('/',(req,res)=>{constcontent=fs.readFileSync('demo.html')returnres.end(content)}).listen(3003).then(_=>console.log('Running on localhost:3003'))Please feel free to submit pull requests!
By participating in this project you agree to follow theContributor Code of Conduct and to release your contributions under the Unlicense.
This is free and unencumbered software released into the public domain.
For more information, please refer to theUNLICENSE file orunlicense.org.