MCPcopy
hub / github.com/openstf/stf / fromString

Function fromString

gulpfile.js:132–144  ·  view source on GitHub ↗
(filename, string)

Source from the content-addressed store, hash-verified

130
131// For piping strings
132function fromString(filename, string) {
133 var src = new stream.Readable({objectMode: true})
134 src._read = function() {
135 this.push(new gutil.File({
136 cwd: ''
137 , base: ''
138 , path: filename
139 , contents: new Buffer(string)
140 }))
141 this.push(null)
142 }
143 return src
144}
145
146
147// For production

Callers 1

gulpfile.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected