
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
@5stones/onix
Advanced tools
A strongly typed library for parsing ONIX feeds.
At a high level, you can pass an XML string into the parse function which
will return an object of type ONIXMessageRoot.
import { parse } from '@5stones/onix';
const someONIXMessage = '...';
const parsed = parse(someONIXMessage);
There are also numerous interfaces, enums, and other data that can be used for strong typing and parsing (e.g. BISAC data).
There are also the following helpers for dealing with BISAC:
import { getBISACLabelsForCode, getBISACCodeForLabel } from '@5stones/onix';
const labels: string[] = getBISACLabelsForCode('...');
const code: string = getBISACCodeForLabel('...');
If you need to update the BISAC codes/labels and/or the ONIX enums you can use the two scraper scripts that scrape the relevant documentation websites and generate the code:
yarn generate:bisac
yarn generate:onix-enums
The standard release command for this project is:
yarn version [--new-version <newversion> | major | minor | patch ]
This command will:
e.g.
yarn version --new-version 1.2.17
yarn version patch // 1.2.17 -> 1.2.18
FAQs
A strongly typed library for parsing ONIX feeds.
The npm package @5stones/onix receives a total of 764 weekly downloads. As such, @5stones/onix popularity was classified as not popular.
We found that @5stones/onix demonstrated a not healthy version release cadence and project activity because the last version was released 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.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.