Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
http-response-status
Advanced tools
HTTP Status Map
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
Using npm:
npm i http-response-status
Using yarn:
yarn add http-response-status
Here are examples of how you can use http-response-status
.
import { NHttpStatuses } from 'http-response-status'
const isOk = (httpCode: number) => {
if (httpCode === NHttpStatuses.OK) {
return true
}
return false
}
import { getHttpStatusName } from 'http-response-status'
const isOk = (httpCode: number) => {
if (getHttpStatusName(httpCode) === 'OK') {
return true
}
return false
}
import { HTTP_STATUS_SUCCESS, getHttpStatusCategory } from 'http-response-status'
const isSuccess = (httpCode: number) => {
if (getHttpStatusCategory(httpCode) === HTTP_STATUS_SUCCESS) {
return true
}
return false
}
Tests are written with jest
yarn run lint
yarn run test
Deployment is done with Travis.
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
We use SemVer for versioning. For the versions available, see the tags on this repository.
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE.md file for details
FAQs
HTTP Status Map
The npm package http-response-status receives a total of 49 weekly downloads. As such, http-response-status popularity was classified as not popular.
We found that http-response-status 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.