Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

nor-api

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nor-api

Simple HTTP API library for Node.js

latest
Source
npmnpm
Version
0.0.3
Version published
Maintainers
1
Created
Source

Build Status

nor-api -- Simple API library for Node.js

Warning! This code is experimental and in state of preliminary development. Use at your own risk.

License

It's under MIT-style open source license -- see https://github.com/Sendanor/nor-api/blob/master/LICENSE.txt.

Installation

You can install it simply from NPM:

npm install nor-api

Usage

Here's an example HTTP service:

var config = require('nor-config').from(__dirname);
config._def('port', 3000);
var api = require('nor-api');
api.createServer(config, {
	'hello': 'world',
	'date': function() {
		return ''+new Date();
	}
});

It has resources at locations:

Once running, the HTTP service will be available at http://localhost:3000.

See also nor-config for more details about the configuration.

Keywords

api

FAQs

Package last updated on 02 Jun 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts