Package Exports
- webbuf
- webbuf/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (webbuf) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
WebBuf
WebBuf is a re-export of the NPM package buffer with a different name. The
purpose is to prohibit use of the global Buffer object throughout your code
base for any code wants to use the buffer package in the browser and wants to
ensure that the global Buffer object is not used.
Usage:
import { WebBuf } from 'webbuf';
const buf = WebBuf.from('Hello, world!');
console.log(buf.toString('utf8'));The interface, of course, is the same as the buffer package.