@lit-web3/node-buffer
v0.1.1
Published
- Ensure `process` in globalThis - Resolve `globalThis.Buffer` or `import 'buffer'` or `require('buffer')` in browser
Downloads
2
Readme
Shim 'buffer'
to browser
- Ensure
process
in globalThis - Resolve
globalThis.Buffer
orimport 'buffer'
orrequire('buffer')
in browser
Usage
Import directly:
import { Buffer } from '@lit-web3/node-buffer'
Or declare resolutions in your root package.json.
{
"name": "your-app",
"resolutions": {
"buffer": "npm:@lit-web3/node-buffer"
}
}