
Research
/Security News
jscrambler npm Package Compromised in Supply Chain Attack
A compromised jscrambler npm release added a malicious preinstall hook that runs hidden native binaries on Linux, macOS, and Windows.
@sebspark/openapi-express
Advanced tools
A typed router for express based on type definitions from openapi-typegen
@sebspark/openapi-express-routerA typed router for express based on type definitions from openapi-typegen
yarn add @sebspark/openapi-express`
or
npm install @sebspark/openapi-express`
import express from 'express'
import { TypedRouter } from '@sebspark/openapi-express'
import { MarketdataServer } from './schemas/marketdata'
import { getMarkets, getMarket } from './markets'
const api: MarketdataServer = {
'/markets': {
get: {
handler: async () => {
const markets = await getMarkets()
return [200, {data: markets}]
},
},
},
'/markets/:id': {
get: {
handler: async ({ params }) => {
const market = await getMarket(params.id)
return [200, {data: market}]
},
},
},
}
const router = TypedRouter(api)
const app = express()
app.use(router)
Example can be found in @sebspark/openapi-e2e
FAQs
A typed router for express based on type definitions from openapi-typegen
The npm package @sebspark/openapi-express receives a total of 266 weekly downloads. As such, @sebspark/openapi-express popularity was classified as not popular.
We found that @sebspark/openapi-express demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 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
A compromised jscrambler npm release added a malicious preinstall hook that runs hidden native binaries on Linux, macOS, and Windows.

Research
/Security News
A malicious .NET package is typosquatting the Braintree SDK to steal live payment card data, merchant API keys, and host secrets from production apps.

Security News
/Research
Compromised Injective SDK npm version 1.20.21 exfiltrates wallet private keys and mnemonics through fake telemetry functionality.