@taichunmin/buffer
v0.13.14
Published
A cross platform alternative of Node buffer base on UInt8Array.
Downloads
302
Maintainers
Readme
Getting Started
Package manager
Use npm or yarn to install the package.
# npm
npm install @taichunmin/buffer
# yarn
yarn add @taichunmin/buffer
Once the package is installed, you can import the library using import or require:
// import
import { Buffer } from '@taichunmin/buffer'
// require
const { Buffer } = require('@taichunmin/buffer')
CDN
Using jsDelivr CDN:
<!-- script -->
<script src="https://cdn.jsdelivr.net/npm/@taichunmin/buffer@0/dist/buffer.global.js"></script>
<script>
const { Buffer } = window?.taichunmin?.buffer
</script>
<!-- module -->
<script type="module">
import { Buffer } from 'https://cdn.jsdelivr.net/npm/@taichunmin/buffer@0/+esm'
</script>
<!-- module + async import -->
<script type="module">
const { Buffer } = await import('https://cdn.jsdelivr.net/npm/@taichunmin/buffer@0/+esm')
</script>