
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
network-constants
Advanced tools
a bunch of network (mainly HTTP) constants for js programs (node + browser), AMD
A clean declaration of network constants (only HTTP for now) for js programs.
Useful when developing network programs or if you want to use HTTP semantics (REST API).
Works in node.js + browser, AMD.
Full testsuite. No dependencies.
License : public domain (http://unlicense.org/)
Fell free to suggest and contribute.
Interesting reads : http://en.wikipedia.org/wiki/List_of_HTTP_status_codes http://www.codeshttp.com/ (us / french) http://benramsey.com/blog/2009/02/http-status-100-continue-corrections/ http://benramsey.com/blog/2008/04/http-status-201-created-vs-202-accepted/ http://benramsey.com/blog/2008/05/http-status-204-no-content-and-205-reset-content/ http://benramsey.com/blog/2008/05/206-partial-content-and-range-requests/ http://benramsey.com/blog/2009/11/post-vs-put/
if (typeof define !== 'function') { var define = require('amdefine')(module); } // node only
define(
[
'network-constants/http'
],
function(http_constants) {
"use strict";
console.log( http_constants.methods.get ); // "GET"
console.log( http_constants.status_codes.status_400_client_error_bad_request ); // 400
console.log( http_constants.status_messages[404] ); // "Not Found"
...
Bower : bower install network-constants.js
Npm : npm install network-constants
Browser : open test_runner/mocha.html
Node : npm test
FAQs
a bunch of network (mainly HTTP) constants for js programs (node + browser), AMD
The npm package network-constants receives a total of 0 weekly downloads. As such, network-constants popularity was classified as not popular.
We found that network-constants demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.