Skip to content
This repository was archived by the owner on May 3, 2023. It is now read-only.

StudyResearchProjects/arrbuffstr

Repository files navigation

ArrBuffStr

ArrayBuffer - String
Creates Strings from ArrayBuffers and viceversa in NodeJS and the Browser

Installation

# using npm
npm install arrbuffstr

# using yarn
yarn add arrbuffstr

Usage

import ArrBuffStr from 'arrbuffstr';

const { toArrayBuffer, toString } = ArrBuffStr();

// [object ArrayBuffer]
const arrbuff = toArrayBuffer('hello');

// 'hello'
const str = toString(arrbuff);

Releasing

This package makes use of GitHub Actions for publishing new versions to NPM. The wofklow is triggered when new releases prefixed with v are pushed to GitHub.

First bump the current version using npm as follows:

# for versions with breaking changes use `major`
npm version major

# for versions with non-breaking changes use `minor`
npm version minor

# for patch versions use `patch`
npm version patch

Then push the repository including tag metadata as follows

git push origin main --follow-tags

Contributions

Any contribution is welcome! Feel free to open a PR or an issue.

About

Creates Strings from ArrayBuffers and viceversa in NodeJS and the Browser

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •