JSPM

  • Created
  • Published
  • Downloads 3671
  • Score
    100M100P100Q131012F

Node.js buffer module for Gjs

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/buffer

Usage

import { Buffer } from '@gjsify/buffer';

const buf = Buffer.from('hello world', 'utf-8');
console.log(buf.toString('base64'));

Inspirations and credits

License

MIT