Skip to content

Latest commit

 

History

History
12 lines (9 loc) · 345 Bytes

README.md

File metadata and controls

12 lines (9 loc) · 345 Bytes

Value Searcher

Find some encoded value in a buffer. Useful for detecting something in a web request.

Example:

const searcher = new ValueSearcher();
await searcher.addValue(Buffer.from('hello 🙂'));
const result = await searcher.findValueIn(Buffer.from('aGVsbG8lMjAlRjAlOUYlOTklODI'));
console.log(String(result)); // base64,uri