MCPcopy Create free account
hub / github.com/unconed/TermKit / buffer

Function buffer

Node/test.js:332–337  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

330
331 // Helper for converting strings to buffers.
332 function buffer(data) {
333 if (data.constructor != Buffer) {
334 data = new Buffer(data, 'utf8');
335 }
336 return data;
337 }
338
339 // Set up fake stdin.
340 fake.stdin.write = function (data) {

Callers 2

mockPipesFunction · 0.70
testGrepFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected