Helper functions for node's Buffer class - primarily to extract substrings
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
LICENSE
README.md
package.json

README.md

Node Buffer helper functions

Install

npm install buffer-helpers

Usage

require('buffer-helpers');

Helper functions will be loaded onto Buffer.prototype

  • isEqualTo(buf) - compares calling buffer to buf and returns true if they are equal
  • extractSubsets(startDelim, endDelim) - returns an array of Buffers containing all of the occurences between startDelim and endDelim
  • extractSubsetsRecursive(startDelim, endDelim) - a recursive version

License

MIT http://opensource.org/licenses/mit-license.php