Repository URL to install this package:
|
Version:
1.14.0-17740 ▾
|
brackets
/
opt
/
brackets
/
www
/
extensions
/
default
/
JavaScriptCodeHints
/
node_modules
/
buffer-shims
|
|---|
| .. |
| index.js |
| license.md |
| package.json |
| readme.md |
functions to make sure the new buffer methods work in older browsers.
var bufferShim = require('buffer-shims'); bufferShim.from('foo'); bufferShim.alloc(9, 'cafeface', 'hex'); bufferShim.allocUnsafe(15); bufferShim.allocUnsafeSlow(21);
should just use the original in newer nodes and on older nodes uses fallbacks.
