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

Function isStringOrBuffer

lib/internal/crypto/keys.js:443–447  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

441}
442
443function isStringOrBuffer(val) {
444 return typeof val === 'string' ||
445 isArrayBufferView(val) ||
446 isAnyArrayBuffer(val);
447}
448
449function parseKeyEncoding(enc, keyType, isPublic, objName) {
450 validateObject(enc, 'options');

Callers 2

parseKeyEncodingFunction · 0.85
prepareAsymmetricKeyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…