script-server

1.0.3 • Public • Published

script-server

Minifies and serves to client js scripts

server

require('script-server').serve(url, pathToScripts, srv);

pathToScripts is a single path or an array of paths to js scripts.

After, it may be accessed by url.

Server is any node.js http server.

After you should manually call server.listen to start it.

For more detailed documentation use sources.

Package Sidebar

Install

npm i script-server

Weekly Downloads

0

Version

1.0.3

License

BSD-3-Clause

Last publish

Collaborators

  • yurijmikhalevich