1.0.0 • Published 1 year ago

@ryniaubenpm/illo-vitae-fugit v1.0.0

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

@ryniaubenpm/illo-vitae-fugit 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('@ryniaubenpm/illo-vitae-fugit');

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

installerfetchReactiveXa11ylookeditordefaultajaxjQueryObject.getPrototypeOfparsingES7colorexecutablereadablestreamtestercode pointsString.prototype.trimcryptodommomentjwtpersistent_.extendObject.definePropertysomesyntaxerrormimetypesES5classnamecolorsInt32ArrayeslintconfigratelimitwritablecompilerdatastructureregexpwordwrapkinesisxhrpositiveloadbalancingparserargsmatchesAsyncIteratorpruneflatMapgetintrinsicassertstrimEndbufferbluebirdtestingfast-deep-cloneperformantupaccessibilityswfimportexportUint8ArraygenericsdayjsgetoptglobparentsformsdescriptorquerystringESECMAScript 3appflagshelperssnslesscssserializerrm -rfsymlinksES2023nested csszodHyBiutilityES2020toolkitwaitenvreducerwalkECMAScript 5find-upspawncss nestinges-shimstslibfixed-widthslotArray.prototype.containsspinnerspicomatchchannelcall-bindfilterStreamopenerkeyUint8ClampedArrayUnderscorecallbindworkflowfast-copyES2015pushbytesqsvariables in csstermrequireregulares2015equalmatchtypedexitfast-deep-copydeepcopyfigletObject.istelephonedefinePropertyeventsECMAScript 2019Array.prototype.flattenreplayreusenumberFloat32ArraychaiarraybufferbundlingmkdirpstyleguidesameValueZeroes-shim APIchilddataviewresolveSymbol.toStringTagcryptpackagedom-testing-libraryexedependenciesconnectqsexecTypeBoxrmapinegative zerowhichstreamObjectmodulesstatetyped array-0assertES2022$.extendinstallmkdirsshamirqhttplazytrimLeftpnpm9viewsymlinkpostcsshasOwnawaitwatchFilees8watchelmtrimprotoECMAScript 2017Array.prototype.flatbrowserslistyamlObservableopenhashRxIteratorlastprivatees2017setPrototypeOfcloudformationES2016emitwatchingseseslint-plugindiffshrinkwrapCSSloggercheckpropminimaldirectoryclass-validatorgetl10nhigher-orderlogginginferencefrommergetraverseformatinternalweakmapecmascriptprefixArray.prototype.findLaststyled-componentsomitduplexsettingsArrayBuffer.prototype.slicerequestcomputed-typescorefindupshellArray.prototype.includessidevaluesRxJSglobalsdebuggerrangeerrorlinteast-asian-widthjoiprivate dataauthenticationsinatraunicodemulti-packageconfigurabletypedarrayscircularFloat64ArraysetImmediateStreamsphonePushvalidrgbdescriptorsbcryptcensorstreams2uuidrdsRFC-6455authinspectaccessorbindinterruptsassertionpackagescolumnarktypeenumerablesuperstructconfigvesteslintrouterestreeguidECMAScript 2020stylesheetfslengthless cssrestfulspinnertrimStarterrorcorsproxywgetcodeslimitgetOwnPropertyDescriptorextendclassnamespreprocessorObject.assignmapreducemochafolderthrottleargvWeakMapTypeScriptsimpledbconcatMapprototypevpcenderprogresscloudsearchscheme-validationArrayBufferencryptionfullterminalenvironmentscommand-linevarsArray.prototype.findLastIndexnpmeslintpluginjsonpathpolyfillec2beanstalkextensionString.prototype.matchAllES2019syntaxless mixinsESnextbufferstoolsi18nbusycloudtrailfastcloneescapeObject.valuesentriesstructuredCloneES2018patchES6argumentsinternal slothas-ownUint32Arrayextraes7bootstrap lessregular expressionsexpressiontypesawscurlsharedajvelectronWebSocketsreadableutilavaslice@@toStringTagArrayBuffer#slicefunctionsgdprdeletesortflattenwatcherReactiveExtensionspromiseisdynamodbhandlersstringredux-toolkitless compilercss variabletakejshintinvariantjsonendpointquoteInt16Arraymapvariablestapedeep-clonearraysdeterministicsigintcharacterES8tsdataViewfast-clonereal-timegroupjsfseventsdeepclonereact-testing-libraryJSON-SchemaqueueMicrotaskArray.prototype.flatMapemrbannerFunction.prototype.nameparsebreakstylesRegExp.prototype.flagsECMAScript 6css-in-jssortedWeakSetlanguagenamesfunctionmiddlewareglobalstringifierpackage.jsonprotobuftoobjectasync256modulepostcss-pluginrfc4122serializationasciiglacierwafjsdiffArray.prototype.filterdropECMAScript 2015whatwgamazoncolourmoveMicrosoftmacosdependency managerjapaneseworkerschemecollection.es6hookformkarmaruntimeponyfillRegExp#flagsECMAScript 2022linkstatelessratecss lessfindLastiterationstreamsutil.inspectwritetypeerroreventEmittermetadatagradients cssstylingECMAScript 2021xdg-openframeworkweaksetlrues2016fastpackage managerio-tscjkwindows0cssintrinsicastquerydeepsafeinputwordbreakstoragegatewayairbnbtostringtagnegativechineses3browserlistoptimistrecursiveObject.fromEntriesopenscoercibletypesafeECMAScript 7typeofttyarrayreact-hooksdebugfindcallbackplugincachesignaldescriptionsequencecompile lessfull-widthfastifyargparseawesomesaucejavascriptcommandervalidateES2021concatstabletapfunctional.envuninstalltddcloudwatchemojirapidutilitiesnodeobjrm -frvaluecloudfrontjsdomenvironmentdeep-copychromiumserializepathrobustobjectindicatorautoprefixerfindLastIndexexpressmobilefpsmkdirqueueSetperformanceObservablesformattingformautoscalingrestURLstarterhookslinuxes6statusbundlerbddliveurlspyyamlES2017[[Prototype]]zerotypeefficientcopyprocesstc39callboundtoSortedlessoptimizerURLSearchParamstypanionlistenersoptionieelasticacheoperating-systemtimeforEachidlegradients css3call-bounddotenvsearchwarningsharedarraybuffermimetouchECMAScript 2018Uint16Arraypromisesless.jsmime-dbInt8ArrayObject.entrieses5eventDispatcherhotelbtrimRightstartflagvalidationprotocol-bufferssymbolses-abstractsignalsjsxcore-jstypescriptgroupByisConcatSpreadablecommandimportremoveclassesoffsettextwrapspeconcePromisehasiteratorargumentECMAScript 2023exit-codelook-upwidthkoreanWebSocketES3rmdirxdgbyteLengthstdlibmixinsreduxinincludessetlimitedshebangartroute53getterthroattypedarrayownBigUint64ArraypropertiesdatenodejsconsoleMapsetterYAMLcmdmake dirrandomredactspeedworkspace:*shimoutputbyteOffsettestbatchansigetPrototypeOfsuperagent
1.0.0

1 year ago