
Research
/Security News
npm Author Qix Compromised in Major Supply Chain Attack
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
json-file-stub-api
Advanced tools
Simple CLI tool for serving out static files and a fake API from JSON files
Silly CLI tool for serving out static files and a static "API".
Install the tool using npm install --save-dev
or whichever is your preferred method of installation.
If you install the tool to your node_modules, make sure to add ./node_modules/.bin
to your $PATH.
Run the tool like this, specifying the statics
folder first (e.g. dist/
) and the routes
folder last (e.g. routes
)
$ json-file-stub-api dist/ routes/
route: /routes
route: /routes/other
we listenin 4 u @ 3000
$ curl -X GET localhost:3000/
sdfsdffds
$ curl -X GET localhost:3000/routes
123mybagel
$ curl -X GET localhost:3000/routes/other
765muteki
FAQs
Simple CLI tool for serving out static files and a fake API from JSON files
We found that json-file-stub-api 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
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.