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

Function bufferFrom

test/fixtures/snapshot/typescript.js:7180–7185  ·  view source on GitHub ↗
(input, encoding)

Source from the content-addressed store, hash-verified

7178 }
7179 }
7180 function bufferFrom(input, encoding) {
7181 // See https://github.com/Microsoft/TypeScript/issues/25652
7182 return Buffer.from && Buffer.from !== Int8Array.from
7183 ? Buffer.from(input, encoding)
7184 : new Buffer(input, encoding);
7185 }
7186 function isFileSystemCaseSensitive() {
7187 // win32\win64 are case insensitive platforms
7188 if (platform === "win32" || platform === "win64") {

Callers 1

getNodeSystemFunction · 0.85

Calls 1

fromMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…