Creates Strings from ArrayBuffers and viceversa in NodeJS and the Browser
npm install arrbuffstr``shusing npm
npm install arrbuffstr
Usage
`js
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:`sh
for versions with breaking changes use
major
npm version majorfor versions with non-breaking changes use
minor
npm version minorfor patch versions use
patch
npm version patch
`Then push the repository including tag metadata as follows
`sh
git push origin main --follow-tags
``Any contribution is welcome! Feel free to open a PR or an issue.