Security update to Drupal 8.4.6
[yaffs-website] / node_modules / buffer-shims / readme.md
1 buffer-shims
2 ===
3
4 functions to make sure the new buffer methods work in older browsers.
5
6 ```js
7 var bufferShim = require('buffer-shims');
8 bufferShim.from('foo');
9 bufferShim.alloc(9, 'cafeface', 'hex');
10 bufferShim.allocUnsafe(15);
11 bufferShim.allocUnsafeSlow(21);
12 ```
13
14 should just use the original  in newer nodes and on older nodes uses fallbacks.
15
16 Known Issues
17 ===
18 - this does not patch the buffer object, only the constructor stuff
19 - it's actually a polyfill
20
21 ![](https://i.imgur.com/zxII3jJ.gif)