npm.io
2.0.4 • Published 3 years ago

@mongodb-js/mongodb-notary-service-client

Licence
SSPL
Version
2.0.4
Deps
5
Size
37 kB
Vulns
0
Weekly
0
Stars
1.5K

@mongodb-js/mongodb-notary-service-client npm

A client for our notary-service (an API for codesigning).

Example

API

process.env.NOTARY_URL="${url}";
process.env.NOTARY_AUTH_TOKEN="${token}";
process.env.NOTARY_SIGNING_KEY="${key_name}";

const sign = require('@mongodb-js/mongodb-notary-service-client');
sign('my-app.rpm').then((signed) => {
  if (signed) console.log('my-app.rpm has been signed and rewritten in-place');
});