
Security News
Happy Birthday, Shai-Hulud
It has been one year since Shai-Hulud made its first appearance on npm.
@chartcoach/catalog
Advanced tools
JavaScript models and artifact parsers for the chartcoach visualization guideline catalog.
JavaScript models and parsers for chartcoach catalog artifacts.
Read the package docs at docs.chartcoach.dev/javascript. Read about the cataloging scheme at docs.chartcoach.dev/catalog.
Install the package from an application root:
npm install @chartcoach/catalog
import { DEFAULT_CATALOG, loadCatalog } from "@chartcoach/catalog"
const entries = await (await fetch(DEFAULT_CATALOG.entriesUrl)).arrayBuffer()
const manifestText = await (await fetch(DEFAULT_CATALOG.manifestUrl)).text()
const catalog = await loadCatalog({ entries, manifestText })
const guideline = catalog.require("compare-percentages-with-bars-not-pies")
@chartcoach/catalog accepts bytes that the caller already acquired. Use
fetch, fs.readFile, Bun.file, Deno.readFile, or a test fixture to read
the artifacts, then pass entries and optional manifest data to loadCatalog.
import { readFile } from "node:fs/promises"
import { loadCatalog } from "@chartcoach/catalog"
const catalog = await loadCatalog({
entries: await readFile("entries.parquet"),
manifestText: await readFile("MANIFEST.md", "utf8"),
})
Parse release metadata when code needs artifact URLs:
import {
catalogArtifact,
catalogArtifactUrl,
parseCatalogReleaseMetadata,
} from "@chartcoach/catalog"
const metadata = parseCatalogReleaseMetadata(await response.json())
const entriesUrl = catalogArtifactUrl(
metadataUrl,
catalogArtifact(metadata, "entries"),
)
const entries = await (await fetch(entriesUrl)).arrayBuffer()
Run package checks from the repository root:
pnpm --dir packages/catalog-javascript lint
pnpm --dir packages/catalog-javascript typecheck
pnpm --dir packages/catalog-javascript test
pnpm --dir packages/catalog-javascript build
MIT. See LICENSE.
FAQs
JavaScript models and artifact parsers for the chartcoach visualization guideline catalog.
The npm package @chartcoach/catalog receives a total of 200 weekly downloads. As such, @chartcoach/catalog popularity was classified as not popular.
We found that @chartcoach/catalog demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.

Security News
It has been one year since Shai-Hulud made its first appearance on npm.

Research
/Security News
Operators behind PolinRider used a compromised GitHub account to plant malware in four development versions of a Packagist package with 700,000+ downloads.

Security News
GitHub Actions now supports cache-mode, a least-privilege control on the Actions cache aimed at the cache poisoning technique behind recent compromises.