(filename, string)
| 130 | |
| 131 | // For piping strings |
| 132 | function 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 |