mirror of
https://github.com/gradle/gradle-build-action.git
synced 2024-12-02 05:01:04 -05:00
1,006 B
1,006 B
buffer-indexof-polyfill
This is a polyfill for Buffer#indexOf
and Buffer#lastIndexOf introduced in NodeJS 4.0.
Example
require("buffer-indexof-polyfill");
new Buffer("buffer").indexOf("uff") // return 1
new Buffer("buffer").indexOf("abc") // return -1
Installation
npm install buffer-indexof-polyfill