Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@dollarshaveclub/nodejs-server
Advanced tools
[![CircleCI](https://circleci.com/gh/dollarshaveclub/nodejs-server/tree/master.svg?style=svg&circle-token=850fd443c919134e53254d3ab098b02f085722fe)](https://circleci.com/gh/dollarshaveclub/nodejs-server/tree/master) [![codecov](https://codecov.io/gh/dolla
This is the main server to be used in all of Dollar Shave Club's node.js applications.
GET /ping
NODE_ENV=development
PORT
or LISTEN_PORT
SOCKET_TIMEOUT_SECONDS=120
GRACEFUL_SHUTDOWN_TIMEOUT_SECONDS=15
ROLLBAR_POST_SERVER_ITEM_ACCESS_TOKEN
- access token for server-side rollbarOptions:
name
- name of the repoport
socketTimeout
gracefulShutdownTimeout
rollbarPostServerItemAccessToken
For development only:
proxy = false
- whether to proxy requestsproxyHostname = process.env.PROXY_HOSTNAME || release.dollarshaveclub.com
- what server to proxyproxyMatch = /^\/(api|cms|face-assets)\//
- regex to match paths to proxyTo support proxying locally and internationally, add the following to your /etc/hosts
:
::1 localhost # should have already been added
::1 localhost.au
::1 localhost.ca
::1 localhost.uk
const serve = require('@dollarshaveclub/nodejs-server')
const app = require('express')()
// app logic
serve(app, {
name: 'my-app',
}).then(({ port }) => {
console.log(port)
})
const serve = require('@dollarshaveclub/nodejs-server')
const Koa = require('koa')
const app = new Koa()
// app logic
serve(app, {
name: 'my-app'
})
import serve from "@dollarshaveclub/nodejs-server"
await serve(new Koa(), {name: "my-app"})
FAQs
[![CircleCI](https://circleci.com/gh/dollarshaveclub/nodejs-server/tree/master.svg?style=svg&circle-token=850fd443c919134e53254d3ab098b02f085722fe)](https://circleci.com/gh/dollarshaveclub/nodejs-server/tree/master) [![codecov](https://codecov.io/gh/dolla
The npm package @dollarshaveclub/nodejs-server receives a total of 10 weekly downloads. As such, @dollarshaveclub/nodejs-server popularity was classified as not popular.
We found that @dollarshaveclub/nodejs-server demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 27 open source maintainers 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
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.