node-restify 4.3.5
Install from the command line:
Learn more about npm packages
$ npm install @tourconnect/node-restify@4.3.5
Install via package.json:
"@tourconnect/node-restify": "4.3.5"
About this version
restify is a smallish framework, similar to express for building REST APIs. For full details, see http://restify.com
Join us on IRC at irc.freenode.net
in the #restify
channel for real-time
chat and support. Or see the
Google group.
var restify = require('restify');
var server = restify.createServer({
name: 'myapp',
version: '1.0.0'
});
server.use(restify.acceptParser(server.acceptable));
server.use(restify.queryParser());
server.use(restify.bodyParser());
server.get('/echo/:name', function (req, res, next) {
res.send(req.params);
return next();
});
server.listen(8080, function () {
console.log('%s listening at %s', server.name, server.url);
});
var assert = require('assert');
var restify = require('restify');
var client = restify.createJsonClient({
url: 'http://localhost:8080',
version: '~1.0'
});
client.get('/echo/mark', function (err, req, res, obj) {
assert.ifError(err);
console.log('Server returned: %j', obj);
});
Note that in future versions of restify, the clients have moved to a separate restify-clients repository and npm package.
npm install restify
MIT (see "LICENSE" file).
See https://github.com/restify/node-restify/issues.
Here is how to cut a release for a new "$version"
-
Update the version in "package.json" and change
## not yet released
at the top of "CHANGES.md" to the following. In other words, add a section for the new release.## not yet released (nothing yet) ## $version
-
Ensure things are correct by running
make versioncheck
, then commit your change, with something like:git commit -am "$version" git push origin
-
Run the following to tag and publish the release:
make cutarelease
Details
- node-restify
- TourConnect
- over 2 years ago
- MIT
- 28 dependencies
Assets
- node-restify-4.3.5-npm.tgz
Download activity
- Total downloads 1
- Last 30 days 0
- Last week 0
- Today 0