
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
tiny-post-json
Advanced tools
Tiny wrapper around Fetch to POST JSON payloads to JSON APIs.
fetch available)npm install tiny-post-json
const postJson = require("tiny-post-json");
const res = await postJson(
"https://any.json.api",
{ data: "anything" },
{ headers: { Authorization: "Bearer TOKEN" } },
);
// `res` will be an object resulting from parsing the JSON response
postJson(resource, payload, options)POSTs the payload as JSON to the given URL.
Promise with the response parsed as JSON.resourceType: string | URL | Request
The resource to fetch, i.e. the URL.
payloadType: unknown
The payload to send to the API. It can be anything that can be stringified as JSON.
optionsType: RequestInit
Additional settings to apply to the request.
FAQs
Tiny wrapper around Fetch to POST JSON payloads to JSON APIs
We found that tiny-post-json demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.