Catalog npm
Back to packageRELEASE DETAILS

7.2.3

npm

@0x0/restify

REST framework

dtraceexpressframeworkrest
Published3 Oct 2018
Direct dependencies48
Transitive dependenciesNot calculated

README

Current package documentation

alt text

restify

Build Status Dependency Status devDependency Status bitHound Score code style: prettier

restify is a framework, utilizing connect style middleware for building REST APIs. For full details, see http://restify.com

Follow restify on alt text

Usage

Server

var restify = require('restify');

const server = restify.createServer({
  name: 'myapp',
  version: '1.0.0'
});

server.use(restify.plugins.acceptParser(server.acceptable));
server.use(restify.plugins.queryParser());
server.use(restify.plugins.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);
});

Client

var assert = require('assert');
var clients = require('restify-clients');

var client = clients.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);
});

Installation

$ npm install restify

License

The MIT License (MIT)

Copyright (c) 2018 restify

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Bugs

See https://github.com/restify/node-restify/issues.

Other repositories

  • For the errors module, please go here.

Mailing list

See the Google group .

Downloads & popularity

Awaiting observations

No metric observations yet

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

Declared dependencies 48

Native requirements
48 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
assert-plus
Environment
{
  "local_name": "assert-plus",
  "alias": false,
  "peer_metadata": null
}
^1.0.0runtime
bunyan
Environment
{
  "local_name": "bunyan",
  "alias": false,
  "peer_metadata": null
}
^1.8.12runtime
csv
Environment
{
  "local_name": "csv",
  "alias": false,
  "peer_metadata": null
}
^1.1.1runtime
escape-regexp-component
Environment
{
  "local_name": "escape-regexp-component",
  "alias": false,
  "peer_metadata": null
}
^1.0.2runtime
ewma
Environment
{
  "local_name": "ewma",
  "alias": false,
  "peer_metadata": null
}
^2.0.1runtime
find-my-way
Environment
{
  "local_name": "find-my-way",
  "alias": false,
  "peer_metadata": null
}
^1.13.0runtime
formidable
Environment
{
  "local_name": "formidable",
  "alias": false,
  "peer_metadata": null
}
^1.2.1runtime
http-signature
Environment
{
  "local_name": "http-signature",
  "alias": false,
  "peer_metadata": null
}
^1.2.0runtime
lodash
Environment
{
  "local_name": "lodash",
  "alias": false,
  "peer_metadata": null
}
^4.17.10runtime
lru-cache
Environment
{
  "local_name": "lru-cache",
  "alias": false,
  "peer_metadata": null
}
^4.1.3runtime
mime
Environment
{
  "local_name": "mime",
  "alias": false,
  "peer_metadata": null
}
^1.5.0runtime
negotiator
Environment
{
  "local_name": "negotiator",
  "alias": false,
  "peer_metadata": null
}
^0.6.1runtime
once
Environment
{
  "local_name": "once",
  "alias": false,
  "peer_metadata": null
}
^1.4.0runtime
pidusage
Environment
{
  "local_name": "pidusage",
  "alias": false,
  "peer_metadata": null
}
^1.2.0runtime
qs
Environment
{
  "local_name": "qs",
  "alias": false,
  "peer_metadata": null
}
^6.5.2runtime
@0x0/restify-errors
Environment
{
  "local_name": "@0x0/restify-errors",
  "alias": false,
  "peer_metadata": null
}
^6.1.14runtime
semver
Environment
{
  "local_name": "semver",
  "alias": false,
  "peer_metadata": null
}
^5.4.1runtime
spdy
Environment
{
  "local_name": "spdy",
  "alias": false,
  "peer_metadata": null
}
^3.4.7runtime
uuid
Environment
{
  "local_name": "uuid",
  "alias": false,
  "peer_metadata": null
}
^3.1.0runtime
vasync
Environment
{
  "local_name": "vasync",
  "alias": false,
  "peer_metadata": null
}
^1.6.4runtime
verror
Environment
{
  "local_name": "verror",
  "alias": false,
  "peer_metadata": null
}
^1.10.0runtime
autocannon
Environment
{
  "local_name": "autocannon",
  "alias": false,
  "peer_metadata": null
}
^2.2.0development
autocannon-compare
Environment
{
  "local_name": "autocannon-compare",
  "alias": false,
  "peer_metadata": null
}
^0.3.0development
chai
Environment
{
  "local_name": "chai",
  "alias": false,
  "peer_metadata": null
}
^4.1.2development
cover
Environment
{
  "local_name": "cover",
  "alias": false,
  "peer_metadata": null
}
^0.2.9development
coveralls
Environment
{
  "local_name": "coveralls",
  "alias": false,
  "peer_metadata": null
}
^2.13.3development
documentation
Environment
{
  "local_name": "documentation",
  "alias": false,
  "peer_metadata": null
}
^5.3.3development
eslint
Environment
{
  "local_name": "eslint",
  "alias": false,
  "peer_metadata": null
}
^4.19.1development
eslint-config-prettier
Environment
{
  "local_name": "eslint-config-prettier",
  "alias": false,
  "peer_metadata": null
}
2.9.0development
eslint-plugin-jsdoc
Environment
{
  "local_name": "eslint-plugin-jsdoc",
  "alias": false,
  "peer_metadata": null
}
^3.7.1development
eslint-plugin-prettier
Environment
{
  "local_name": "eslint-plugin-prettier",
  "alias": false,
  "peer_metadata": null
}
^2.6.0development
filed
Environment
{
  "local_name": "filed",
  "alias": false,
  "peer_metadata": null
}
^0.1.0development
glob
Environment
{
  "local_name": "glob",
  "alias": false,
  "peer_metadata": null
}
^7.1.2development
inquirer
Environment
{
  "local_name": "inquirer",
  "alias": false,
  "peer_metadata": null
}
^3.3.0development
istanbul
Environment
{
  "local_name": "istanbul",
  "alias": false,
  "peer_metadata": null
}
^0.4.5development
mkdirp
Environment
{
  "local_name": "mkdirp",
  "alias": false,
  "peer_metadata": null
}
^0.5.1development
mocha
Environment
{
  "local_name": "mocha",
  "alias": false,
  "peer_metadata": null
}
^3.5.3development
nodeunit
Environment
{
  "local_name": "nodeunit",
  "alias": false,
  "peer_metadata": null
}
^0.11.2development
nsp
Environment
{
  "local_name": "nsp",
  "alias": false,
  "peer_metadata": null
}
^2.8.1development
ora
Environment
{
  "local_name": "ora",
  "alias": false,
  "peer_metadata": null
}
^1.3.0development
pre-commit
Environment
{
  "local_name": "pre-commit",
  "alias": false,
  "peer_metadata": null
}
^1.2.2development
prettier
Environment
{
  "local_name": "prettier",
  "alias": false,
  "peer_metadata": null
}
^1.13.4development
proxyquire
Environment
{
  "local_name": "proxyquire",
  "alias": false,
  "peer_metadata": null
}
^1.8.0development
restify-clients
Environment
{
  "local_name": "restify-clients",
  "alias": false,
  "peer_metadata": null
}
^1.5.2development
rimraf
Environment
{
  "local_name": "rimraf",
  "alias": false,
  "peer_metadata": null
}
^2.6.2development
validator
Environment
{
  "local_name": "validator",
  "alias": false,
  "peer_metadata": null
}
^7.2.0development
watershed
Environment
{
  "local_name": "watershed",
  "alias": false,
  "peer_metadata": null
}
^0.4.0development
dtrace-provider
Environment
{
  "local_name": "dtrace-provider",
  "alias": false,
  "peer_metadata": null
}
^0.8.1optional

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "integrity": "sha512-3/l+aAqr6MjYGs2rAp7WdIAdBNyu5+437YjLkMXMlQlvnbBBx35Xv93TPDxrQDi80aHUhgnY8Ya2FzRKcW62/g==",
  "shasum": "07c1d1d2596b617900667c9c6ebcc1b9efcdb0d1",
  "tarball": "https://registry.npmjs.org/@0x0/restify/-/restify-7.2.3.tgz",
  "fileCount": 77,
  "unpackedSize": 345794,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbtDAACRA9TVsSAnZWagAAvBAP/15M33gQArJ7PowuCbdE\nMwIVkSvUJcm6RTjNU0MqpsUwiZj8c8yH7J+8h1en/Lo/8sK418RPBbyMCZ/a\n2perprysJHiTJ0Ollop1GXH+bEa+Xh/nt1fFU5Gj82aX6A4BxoT4SCmwieDr\n1E8O0s4ayWccyXrv88O1DNd4Ex+XBoJtV3yZENKtoY1M+++aebaUpBLQfuIZ\nO/yGSuSaF+Yqtl+RVbwyUOumGU+w8WELGahb205WwaOA0SdA9+J3RNjBolE0\nqsHdCuy8laK5vAbg+qtgSniXV+zQKQiD7HXsAmZqd3SWcdVj5R0+E2fjZCqM\nPzcPITR5I3nR8injb+dero1UAnT75ZV4U0pxq6riJGf06V/H8GMdTQKKSRq+\n8VFZ61j3yWMgFNyaTeN9Ke1lmz3CPUj+liqbzFdleDFEi+C/JrlL8XP7H3aR\nyiPX3O3xbfMyZtb1kJ5Zw3qvINZ2mut9Ft7QkS5/YHUh2PU6g7Hv/YOkOMvu\nnAgqJXMha7huc75oBcCO6y0Lj1++wLtY7ZqE879EwK3eXYXccPNzBo3hbp2b\n4lVCcEb7MdU97KqFmDQjOKcoAwi3JIEtepSMoWdgTRQ5XhoEnW3v/Z4MnOJ6\nHj9pXzIQE+tI4uw348hxJ3h5sc8btC7GqkDlyTg7iU0dnEbb/7PQklkI7jfD\nOw6w\r\n=Jby8\r\n-----END PGP SIGNATURE-----\r\n",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEUCIH+/NKuGqp/HlnXgUjn1nPod+oZ9uBBnL8lUU9TXUPs2AiEAz3BUiy5tSLBUFpkx+7P3H5caGPl530q1FhFu/ajNEN8="
    }
  ]
}

Repository

PENDING
restify/node-restify

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:32 UTC

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

Record identity

package_version:d0f4bd33f2b46427ada52cf79beca62d778d484be8c71d3cbc268e2d1ab82dfc

Other collected versions

7.2.228 Sept7.2.123 SeptView all collected versions →