Gathering detailed insights and metrics for restify
Gathering detailed insights and metrics for restify
Gathering detailed insights and metrics for restify
Gathering detailed insights and metrics for restify
npm install restify
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
10,716 Stars
1,727 Commits
982 Forks
235 Watching
78 Branches
205 Contributors
Updated on 26 Nov 2024
Minified
Minified + Gzipped
JavaScript (98.28%)
Makefile (1.59%)
HTML (0.1%)
Emacs Lisp (0.03%)
Cumulative downloads
Total Downloads
Last day
-5.4%
56,504
Compared to previous day
Last week
19.2%
326,871
Compared to previous week
Last month
64.7%
1,175,800
Compared to previous month
Last year
2.6%
8,560,151
Compared to previous year
22
24
1
restify is a framework, utilizing connect style middleware for building REST APIs. For full details, see http://restify.com
1var restify = require('restify'); 2 3const server = restify.createServer({ 4 name: 'myapp', 5 version: '1.0.0' 6}); 7 8server.use(restify.plugins.acceptParser(server.acceptable)); 9server.use(restify.plugins.queryParser()); 10server.use(restify.plugins.bodyParser()); 11 12server.get('/echo/:name', function (req, res, next) { 13 res.send(req.params); 14 return next(); 15}); 16 17server.listen(8080, function () { 18 console.log('%s listening at %s', server.name, server.url); 19});
1var assert = require('assert'); 2var clients = require('restify-clients'); 3 4var client = clients.createJsonClient({ 5 url: 'http://localhost:8080', 6 version: '~1.0' 7}); 8 9client.get('/echo/mark', function (err, req, res, obj) { 10 assert.ifError(err); 11 console.log('Server returned: %j', obj); 12});
1$ npm install restify
Restify currently works on Node.js v14.x and v16.x.
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.
See https://github.com/restify/node-restify/issues.
See the Google group .
The latest stable version of the package.
Stable Version
1
6.1/10
Summary
Cross-Site Scripting (XSS) in restify
Affected Versions
>= 2.0.0, <= 4.0.4
Patched Versions
4.1.0
Reason
no dangerous workflow patterns detected
Reason
security policy file detected
Details
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 6/23 approved changesets -- score normalized to 2
Reason
0 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More