Catalog npm
PACKAGE EXPLORERView in registry

70

npm

Your next web service powered only by 70 lines of goodness.

70asyncawaithttphttp/2jsonserverweb
Versions collected7
Direct dependencies1From release 0.1.6
Last observed20 Oct, 21:02 UTC

README

Current package documentation

Your next web service powered only by 70 lines of goodness.


70 serves web services and APIs, 70 has no dependencies, 70 has the essentials and all in 70 lines.

Features

  • Supports HTTP (HTTPS) and HTTP/2
  • Async/await response handling
  • Simple Router
  • Body parser
  • Query parser

Getting Started

Install from npm:

npm install 70 --save

Create a set of routes with http or https server and configure as needed:

const http = require('http');
const { handle } = require('70');

const routes = {
  '/': () => ({ message: "Welcome to 70!" })
};

http.createServer(handle({ routes })).listen(8080);

Parse request body and send a response:

const http = require('http');
const { handle, json } = require('70');

const routes = {
  '/endpoint': async (stream) => {
    const body = await json(stream);
    return { success: true, body };
  }
};

http.createServer(handle({ routes })).listen(8080);

License

MIT

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 7

Collected releases
VersionPublishedDirect dependenciesOpen version
0.1.6Registry latest31 Oct 20171
0.1.531 Oct 20171
0.1.431 Oct 20171
0.1.329 Oct 20171
0.1.229 Oct 20171
0.1.129 Oct 20171
0.1.029 Oct 20171

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
quart-search/70

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 21:02 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:259c95044a07101f77259ced40d622280217bb5c3608ecde3cf82603343e3205