1.0.0 • Published 15 days ago

@f1stnpm2/nam-libero-nobis v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
15 days ago

@f1stnpm2/nam-libero-nobis Version Badge

github actions coverage License Downloads

npm badge

Is this value a JS SharedArrayBuffer? This module works cross-realm/iframe, does not depend on instanceof or mutable properties, and despite ES6 Symbol.toStringTag.

Example

var assert = require('assert');
var isSharedArrayBuffer = require('@f1stnpm2/nam-libero-nobis');

assert(!isSharedArrayBuffer(function () {}));
assert(!isSharedArrayBuffer(null));
assert(!isSharedArrayBuffer(function* () { yield 42; return Infinity; });
assert(!isSharedArrayBuffer(Symbol('foo')));
assert(!isSharedArrayBuffer(1n));
assert(!isSharedArrayBuffer(Object(1n)));

assert(!isSharedArrayBuffer(new Set()));
assert(!isSharedArrayBuffer(new WeakSet()));
assert(!isSharedArrayBuffer(new Map()));
assert(!isSharedArrayBuffer(new WeakMap()));
assert(!isSharedArrayBuffer(new WeakRef({})));
assert(!isSharedArrayBuffer(new FinalizationRegistry(() => {})));
assert(!isSharedArrayBuffer(new ArrayBuffer()));

assert(isSharedArrayBuffer(new SharedArrayBuffer()));

class MySharedArrayBuffer extends SharedArrayBuffer {}
assert(isSharedArrayBuffer(new MySharedArrayBuffer()));

Tests

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

columnsgetintrinsicmodulescharactersbuffersemojifast-copyclassnamesvariablesmetadataFunction.prototype.nameshimvalidationidlepositivekoreandependency managerfastcopytelephoneURLSearchParamsnpmavaisConcatSpreadableawaitdataviewpyyamlArraystream__proto__toStringTagES7asyncvariables in cssterminalPushtestingconcurrencyprettygdproptimistreadablestreamUint16Arrayinspectcompiler3dsetloggingomitvalidatorreducerString.prototype.trimnegative zerostyled-componentsmkdirsfoldertakeObject.entriesbundlercalllogfindLastform-validationmobilepackagescorsponyfillclassesconsumeArray.prototype.flatyamlWebSocketscensorRegExp.prototype.flagsarraysmergefigletwatchbreakInt16ArrayprotobufregexstatusassertssearchreaddayjsdependencieswalktslanguageletobjectduplexhandlersinferencebyteLengthtypeerrorserializeharmonyCSSStyleDeclarationcreateeventDispatchersuperagentoffsetcall-bindnopepopmotionESnextwalkingjoishebangTypedArraybusypluginglobimmerFloat64ArrayRegExp#flagsparentsmimetypestouchnodeapollothreecolourlengthentriesredux-toolkitsafeArray.prototype.includesnameconnectgradients css3file systemunicodetoolscollectionlinewrapwatchFilestdlibposeslotSetrmdirartgetOwnPropertyDescriptorgetoptInt8ArrayforEachwaapicloneargparseirqprogresssharedarraybufferwaitratees6yupUint32Arrayfunctionfast-deep-copyfetchcompareprivate datainternal slottypanionspecregularObservable0rm -rfescapeformbrowserArray.prototype.findLasthttpassertionassertoutputSymbol.toStringTagwriteenvECMAScript 7promiseUint8ArrayassignUint8ClampedArrayfindjsdiffcall-boundsetterbootstrap lesspoint-freediffECMAScript 2021css lessCSSregular expressionflattextwrapmacoszoduuidkeylinkiewhatwgspinnerES8package.jsondirbuffersignalslessWeakSetscheme-validationsetPrototypeOfinternaldeep-copyArrayBuffer.prototype.sliceformatvalidateeslintpluginrmECMAScript 5robustviewdescriptorsWeakMaptimeexpressionString.prototype.matchAlltoArraydeepairbnb.envcliHyBieast-asian-widthcollection.es6structuredClonedatastructureconcatMapremoveefficientconfigurablespeedObject.assignsigintreduceES2020curlnegativepasswordcolorsJSONES2018reuseshellpiperapidcssdefineupsidetypedarrayfastifyperformantmrufptoobjectworkerfullequalcryptocommand-linedotenvECMAScript 2019javascripttaskes2017warningmulti-packageoncespinnerslazyprivateclass-validatorcopyObjectstablemapdebuggervalueaccessibilityhardlinksramdareduxsetImmediategetterpicomatchschemarfc4122queueiteratorbcryptvestObject.isfastcloneReactiveExtensionsextendtrimStartArray.prototype.containsmime-dblockfileFloat32Arrayfastnested cssargstypescriptdeletecontainscacheRxJSsuperstructurlprototypefixed-widthexitecmascriptweaksetSymbolcircularfind-upstarterutilitiesoptimizermkdirquotehttpsreact-hooksObject.fromEntriespropertyless.jsbinddommochainputframerdeep-clonetranspilerArray.prototype.flattentrimLeftECMAScript 6numberTypeBoxparserstyleencryptionprotojestarrayEStraversesymbolgetPrototypeOffilterURLlesscsswindowsECMAScript 2016tc39linteslintconfigserializerbrowserlistclassnamepushreact-testing-librarybluebirdlibphonenumbertrimRightlinuxObject.definePropertybatchjsonpathcorees5callbindchaiqsbabelmomentequalityES6promisesdescriptorreact-hook-formchineseboundflagfullwidthcheckreal-timejsxpostcsslooksymlinkssanitizationoperating-systemobjsyntaxerrorwhichtypedarrayspackage managerbrowserslisteveryworkspace:*moduleruntimerangeerrorhigher-orderthrottlearktypereactratelimitphonereact posefull-widthflattenObject.valuesclientes7Object.getPrototypeOfsameValueZerostreams2preprocessoreventsjQueryschememiddlewarefantasy-landtypesafees2015streamsbytedebugcryptdatesequencearraybufferxtermcss-in-jswordwrappathexecfindLastIndexReactiveXjsemitArrayBuffer#sliceweakmapsigtermlistenersauthdropES2021error-handlingdataViewspringcurrieddeepcopypatchvaluesreadableYAMLenvironmenttostringtagECMAScript 2017ES2015i18n[[Prototype]]bootstrap cssinvarianthelperswordbreakcoerciblepersistent@@toStringTagmkdirpapicolumnes-abstractcommandperformancegroupes20166to5io-tsexpresschromeObservableslimitmixinspnpm9fseventscode pointsconstECMAScript 2022cjkcomputed-typesArray.prototype.filterdirectoryless compilerBigUint64Arraynamesprunestyleguidepropajvgesturessettingsastrm -frkeysfsless mixinstypeslimiteddatastatelessfunctionsStreamsjwtes2018prefixnodejswebfindupbannerwgetexit-coderesolvesymbolsAsyncIteratoreslintcodespurejsonArrayBufferES2016symlinkiterationjsdomimportECMAScript 2023stylinggroupBytoSortedfunctionalES5ajaxinstalltestfilepostcss-pluginansiutilitymake dirtoolkitflatMapistypeofpackageextraminimalloggercallbacktypedzeroeslint-plugindeepcloneuser-streamshookformsharedsortgetjsonschemawatchingloadingopenes-shimsfast-deep-clonematchAllmonorepogradients cssrecursiveBigInt64ArrayIteratortapstringifierMicrosoftJSON-SchemahasOwnstylesconfigconsolexhrjasminesanitizeStreamUnderscorees8RFC-6455Int32ArrayObject.keysauthenticationECMAScript 2020WebSocketestreetrimcore-jsArray.prototype.findLastIndexautoprefixerendercolor_.extendhasparsereact animationawesomesaucedom-testing-librarypolyfillextensionttymatchshrinkwrapdefinePropertycharacterES2022termRxtrimEndformattingjson-schema$.extendbddtranspilestringtyperedactnativegraphqlqueueMicrotaskjson-schema-validatormoveutilchannelbyteOffsetsorteda11yMapmakepropertiesReflect.getPrototypeOfparentargumentcss nestingregexpguidcss variableprotocol-buffersStyleSheetrgbvarrequestargvincludestddECMAScript 2015deterministicanimationPromiseaccessorserializationtacitECMAScript 3256stylesheetrequirefromtyped arraysomestringifyArray.prototype.flatMapslicewritable
1.0.0

15 days ago