
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
json-header
Advanced tools
If a message starts with JSON, the JSON is parsed and returned as the header, and the body is returned as everything after the JSON.
A simple protocol and script that interprets a document as consisting of a json header and a body. Use the parseStr function to parse a document into the header and body.
Example node session:
> jh=require('./index.js');
{ parseStr: [Function] }
> jh.parse('{"key":"value","date":"2013-07-10 CST"}body of the document',jh.dateReviver);
{ header:
{ key: 'value',
date: 'Wed Jul 10 2013 14:35:03 GMT-0500 (CDT)' },
body: 'body of the document' }
This software is used in my blog, ryanxcharles.com, but could be used in any case where documents that have a header with meta-information and a body. For instance, hypothetically, you could implement something like HTTP or SMTP with JSON in the header using json-header.
FAQs
If a message starts with JSON, the JSON is parsed and returned as the header, and the body is returned as everything after the JSON.
We found that json-header 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.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.