Package Exports
- @gjsify/buffer
Readme
@gjsify/buffer
GJS implementation of the Node.js buffer module using Blob, File, atob, and btoa.
Part of the gjsify project — Node.js and Web APIs for GJS (GNOME JavaScript).
Installation
npm install @gjsify/buffer
# or
yarn add @gjsify/bufferUsage
import { Buffer } from '@gjsify/buffer';
const buf = Buffer.from('hello world', 'utf-8');
console.log(buf.toString('base64'));Inspirations and credits
License
MIT