Skip to content

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

Notifications You must be signed in to change notification settings

stevenwdv/value-searcher

Repository files navigation

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

About

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

Topics

Resources

Stars

Watchers

Forks