mvarcs provides the Mark Verifying Authority (MVA) Root Certificate bundle for validating the trustworthiness of Mark Certificates such as Verified Mark Certificates (VMC) and Common Mark Certificates (CMC) used in BIMI (Brand Indicators for Message Identification).
The bundle lets you embed a stable, versioned set of root certificates in your Node.js application.
npm install mvarcsRequiring the package returns a URL local file object enhanced with helper functions:
const mvarcs = require('mvarcs');
mvarcs.where(); // Absolute filesystem path to the bundled cacert.pem
mvarcs.contents(); // String contents of the PEM bundle
mvarcs.source; // Upstream canonical source URL
mvarcs.version; // The package version matching the PEM bundle versionExample:
const mvarcs = require('mvarcs');
console.log(mvarcs.where());
// /usr/local/lib/node_modules/.../mvarcs/src/mvarcs/cacert.pem
console.log(mvarcs.contents().slice(0, 120));
// -----BEGIN CERTIFICATE-----\nMIIF... (truncated)npm install -g mvarcs
mvarcs # prints path to cacert.pem
mvarcs -c # prints PEM bundle contents
mvarcs -s # prints upstream source URL
mvarcs -v # prints package version
mvarcs -h # help textPlease see the upstream project for policies and contribution guidelines: https://github.com/markcerts/mvarcs
- Always review changes between releases; root certificates represent trust anchors.
- Pin the package version in
package.jsonfor reproducible builds. - Consider verifying downloaded artifacts against expected fingerprints if you implement auto‑updates externally.
A minimal test is included (test.js):
# npm test
node test.js