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

Function buffer

Node/shell/command.js:204–209  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

202
203 // Helper for converting strings to buffers.
204 function buffer(data) {
205 if (data.constructor != Buffer) {
206 data = new Buffer(data, 'utf8');
207 }
208 return data;
209 }
210
211 // Set up fake stdin.
212 fake.stdin.write = function (data) {

Callers 1

command.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected