ss

simple-serve

Simple Rest Server

Showing:

Popularity

Downloads/wk

4

GitHub Stars

0

Maintenance

Last Commit

7yrs ago

Contributors

1

Package

Dependencies

0

Size (min+gzip)

0.6KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

Simple-Serve

Build Status

Sample Usage:

var simpleServe = require('simple-serve');
simpleServe({
  'GET /': '<html><body><h1>Working</h1></body></html>',
  'GET /page2.html': '<html><body><h1>Went to Page 2</h1></body></html>',
  'POST /users': 'You posted name: {name}'
})(function(err, server) {
  console.log('http://localhost:' + server.address().port;)
});

Note that it returns a thunk, because I mainly wrote this to test co related things

See test for more usage examples

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100