MCPcopy Index your code
hub / github.com/nodejs/node / readKey

Function readKey

benchmark/crypto/oneshot-sign.js:10–12  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

8const fixtures_keydir = path.resolve(__dirname, '../../test/fixtures/keys/');
9
10function readKey(name) {
11 return fs.readFileSync(`${fixtures_keydir}/${name}.pem`, 'utf8');
12}
13
14const keyFixtures = {
15 'ec': readKey('ec_p256_private'),

Callers 1

oneshot-sign.jsFile · 0.70

Calls 1

readFileSyncMethod · 0.45

Tested by

no test coverage detected