Insert content before or after a string
var Stream = require('machinepack-stream');
// Insert content before or after a string
Stream.insert({
text: 'a string to insert',
stream: '*',
after: '*',
before: '*',
}).execSync();
Insert a string before of after a string
'a string to insert'
A readable stream
a string or string's array to search and insert text after
a string or string's array to search and insert text before
An unexpected error occurred.
It's not a valid stream
OK.