1.0.0 • Published 1 year ago

@micromint1npm/sint-veritatis-eius v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@micromint1npm/sint-veritatis-eius Version Badge

github actions coverage License Downloads

npm badge

An ES-spec-compliant shim/polyfill/replacement for ArrayBuffer base64 methods that works as far down as ES3

This package implements the es-shim API “multi” interface. It works in an ES3-supported environment and complies with the spec.

Because the Iterator.prototype methods depend on a receiver (the this value), the main export in each subdirectory takes the string to operate on as the first argument.

The main export of the package itself is simply an array of the available directory names. It’s sole intended use is for build tooling and testing.

If Uint8Array is not present, the shim functions and auto entrypoints will be a no-op.

Supported things

Getting started

npm install --save @micromint1npm/sint-veritatis-eius

Usage/Examples

const fromHex = require('@micromint1npm/sint-veritatis-eius/Uint8Array.fromHex');
const toHex = require('@micromint1npm/sint-veritatis-eius/Uint8Array.prototype.toHex');
const assert = require('assert');

const array = new Uint8Array([72, 101, 108, 108, 111, 32, 87, 111, 114, 108, 100]);
const hex = '48656c6c6f20576f726c64';

assert.deepEqual(fromHex(hex), array);
assert.equal(toHex(array), hex);
require('./auto'); // shim all of the methods

require('./Uint8Array.fromHex/auto'); // shim the “fromHex” method

Tests

Simply clone the repo, npm install, and run npm test

global-0hashflagstaskenderhasOwnPropertytypeerrorArray.prototype.containsawaitfastifyquerysetImmediateaccessibilitysortdatastructuremapjsdiffstoragegatewayhttpdeepcloneRxstyled-componentsl10nstarterinternalomitparentsnpmelbfunction.lengthfastmochapicomatchclienttoSortedES2018efficientArray.prototype.findLastIndexchromiumdomponyfillshimkinesishelperspropertieslimitedfindLastfindLastIndexes-shim APIyupjshintprotoECMAScript 2016dirtypesafeutildescriptorscontainsruntimetrimRighthooksCSSjasminepipewordwrapcloudsearchvalidationinstallerArray.prototype.findLastReactiveExtensionstelephonecoerciblesnsamazonpostcssloggerinputansiObject.keyscreateoffsetzodperformantspinnerbusyvisualbyteLengthBigUint64ArraylocalcolumnforEachwritablecode pointsproxywaapishellcomparedom-testing-librarytoobjectignorestringifieres2016lazyutilitiesjsobjsyntaxcomputed-typesduplexenvfindnativewafpackagesgraphqlespreeconcatiterateenvironmentspromisees-abstractflatMapbinarieseslintes6rmESnextphoneextendfileloadbalancingObject.definePropertyflattenObject.assignsyntaxerrorautoscalingtranspilerarraybufferWeakMapvpcexecuteECMAScript 5PushredactinidentifiersshrinkwraptypesargsguidcodestestInt8ArraytoArraysharedarraybufferdotenvSymbolnopecallbindkoreanbrowserlistcjkgroupByhelperFloat64ArrayUnderscorepolyfillmapreducereadablestreampackagequeuechromecolorstyped arrayReactiveXbufferregexpmime-dbgroupreact-hooksdefinevaliddataviewECMAScript 2022ES5private dataminimalECMAScript 7copyeast-asian-widthfunctionextrastyleguidedeterministicwidthcachedataViewstreampackage.jsonrapidobjectastfsgraphql-clientcommand-lineArrayBuffereventsPromisetraversedynamodbspeedindicatorObject.isartmakedependenciesclisortedString.prototype.matchAllmimetypesECMAScript 2023ECMAScript 2021_.extendpushbreakArrayBuffer#slicetypeloggingzxplugintc39concurrencyelasticacheregular expressionexecfilejQueryequalmatchenvironmentreworkimmertransformECMAScript 6routemkdirspropertymanipulationdiff[[Prototype]]Objectperformance256ES2021es2018censorlinewrapstringifyimportexportAsyncIteratoraccessorwalkingMapupinstallES2019consoleES3persistentdescriptormetadataUint8ArraylimitES7callbacktakegetopttostringtagreact-hook-formformStreamsexecObservablesbytersscurl
1.0.0

1 year ago