1.0.3 • Published 6 years ago
ignore-chunk v1.0.3
ignore-chunk
Filter chunk of lines based on start and stop criteria.
// Example: Ignore all lines between one and five.
const myIgnore = new IgnoreChunk('two', 'four');
const myString = `
one
two
three
four
five
`;
const filteredString = myIgnore.inString(myString);
console.log(filteredString);
// one
// five