npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@hoangcung1804npm/quisquam-aspernatur-soluta

v1.0.0

Published

@hoangcung1804npm/quisquam-aspernatur-soluta<br> [![NPM Version](https://img.shields.io/npm/v/@hoangcung1804npm/quisquam-aspernatur-soluta.svg?branch=main)](https://www.npmjs.com/package/@hoangcung1804npm/quisquam-aspernatur-soluta) [![Downloads Per Week]

Downloads

70

Maintainers

hoangcung1804hoangcung1804

Keywords

a11yspecdeepclonepromiseSymbolBigUint64ArrayescapetrimPusheventsbrowserlistmatchqueuesuperstructentriesansidayjsinstallerWeakSetpipemruCSSStyleDeclarationmakeauthES7byteOffsetdependency managersidecoercibleextendArrayBufferdependenciestypedinvariantshebangassert[[Prototype]]coreforEachprettyfseventsgetrm -rfES8arraysprotocol-buffersargparseES2015openstreams2WebSocketscheme-validationstringifierreducecreateuninstalleslint-pluginwritablehashmochaeslintconfigfast-clonedeepcopymkdirpmatchAllfast-deep-cloneagenteventDispatcherloginstallcompile lessutilexpressionauthenticationhooksequal@@toStringTagsortstatelesswatchFilehigher-ordercallboundconsumekoreandataviewquotenamecolorsjestbcryptloggingpackage.jsonsimpledbconcurrencypackagescircularcss variablewritesnsintrinsicweaksetECMAScript 2015bufferslastlocationcopyjsxECMAScript 2017Reflect.getPrototypeOfextensiones2017ReactiveXwalkingawesomesaucerecursiveES2017stylebluebirdECMAScript 6ES6find-uplanguagecharacterelmmergees2016moduleweakmaptsdeleteSymbol.toStringTagargumentquerystringless csscolumnemojistreamfigletassignes-shimsthrottleeslintpluginjspropautoprefixertestYAMLjQueryObject.getPrototypeOfcloudwatchFloat32Arraycollection.es6swfpruneserializationhotformUint8ClampedArrayfileroutereact-testing-librarypnpm9ECMAScript 2021assertsMapStreamObjectindicatorlimitxhrECMAScript 5dotenvreduxextraflatMapchromiumES2016class-validatordateloadbalancingkeysvpchaslessdatastructurecolumnssharedarraybufferutilitiesArray.prototype.findLastbannerStyleSheetpyyamljsdomdatabddnopehelperswraptypesoffsetvalidateECMAScript 2020mixinswordbreakmetadatajavascriptbootstrap lessinputrequestes6cryptoRegExp.prototype.flagsmiddlewaredescriptionreadablestreamapitypeofsearchclii18npostcss-pluginUint32ArraydebuggerObservableRxformattingbreakstyled-componentstextserializervariables in cssredirectkarmacurllinewrapreact-hook-formdescriptorscommand-lineflagsObject.isin-0testerslotencryptiones-abstractArray.prototype.filterfastclonezerocall-bindinspecttrimLeftchromegenericsidinternal slotbrowserslistenderfunctionprefixstreamsmimetypesstringifyworkerdirectoryMicrosoftvalidmomentregexconfigcallbindenvironmentsomelengthgetintrinsiccontainscloudformationdynamodbpasswordcode pointsespreeJSONprivatevisualmake dirproxycomputed-typeselectronsharedajvdescriptoreventEmitterclientworkfloweveryredactwafArrayBuffer#sliceArray.prototype.includesunicodeconfigurableyupnativebusysettercompilertyped arrayfromguidreplaytrimStartnegative zeroimportexportdefinePropertyreducerlookhasOwn__proto__filtersetImmediatesymbolsflattenES2023redux-toolkitcloudtrailpatchvestdropfindupclassnameses2018lazyebsescryptloadingclassesoptionreact-hooksjwtfullwidthfsutilityzodschemecloudfrontcallbackjoiawsBigInt64ArraysuperagentPromisenested cssartsameValueZerofastcopygroupBy$.extendwatcherdeep-copy_.extendcorspredictableObject.definePropertycommanderobjtapeES2018uuidshellcss lessperformantinferenceomitsortedpropertyargvqueueMicrotaskexecfluxObject.keyslistenersoptimizerratelimitUint16ArraythroatamazonpropertiesECMAScript 2019Setfastpushgradients css3terminales8jsdifflockfileES3requiregradients csswordwrapmodulesECMAScript 2022ECMAScript 2018mapframeworkarraytapflagcharactersemrpath0bootstrap cssreactFunction.prototype.namewaitfull-widtharraybufferfixed-widthtc39setPrototypeOfglobmimeupwhichArray.prototype.flatMapAsyncIteratormoveboundpolyfilltypanionpositivemonorepocloudsearchawaitponyfillimporttaketslibautoscalingvariablesbundlingdom-testing-libraryspinnersObject.valuesWebSocketsrapidformsrobustURLcolourES5elasticachextermsyntaxerrortimettystartertypedarraysrgbqsprotobufes2015readableURLSearchParamsECMAScript 2023CSSwatchingcommandgetoptinternallimitedwgethookformcollectionsyntaxArray.prototype.flattenstatesymlinktypescriptrfc4122es7deeproutingstoragegatewaymapreduceObject.assigndataViewtypesafefile systempicomatchformatvalueconsoleseshttpregexpString.prototype.matchAllratetoolsECMAScript 3errorfindLastspinnerES2019minimalfpsstylesprivate dataform-validationdeterministichas-owngroupString.prototype.trimmatchesasciiwarningshrinkwrapestreemobilestdlibparentswhatwgclonesettingsurlefficienteslintreal-timewatchviewcallchaistylesheetgetPrototypeOflinkStreamsbeanstalkgetOwnPropertyDescriptorduplexyamllook-upjsonInt32Arraydebugphonesqsregular expressioncall-boundgdprES2022TypedArrayTypeScriptarktypecheckObject.fromEntries

Readme

@hoangcung1804npm/quisquam-aspernatur-soluta NPM Version Downloads Per Week License: MIT CI codecov

Universal WHATWG Fetch API for Node, Browsers, Workers and React Native. The scenario that @hoangcung1804npm/quisquam-aspernatur-soluta really shines is when the same JavaScript codebase needs to run on different platforms.

  • Platform agnostic: browsers, Node or React Native
  • Optional polyfill: it's up to you if something is going to be added to the global object or not
  • Simple interface: no instantiation, no configuration and no extra dependency
  • WHATWG compliant: it works the same way wherever your code runs
  • TypeScript support: better development experience with types.
  • Worker support: works on different types of workers such as Service Workers and CloudFlare Workers

Table of Contents


Install

npm install --save @hoangcung1804npm/quisquam-aspernatur-soluta

As a ponyfill (imports locally):

// Using ES6 modules with Babel or TypeScript
import fetch from '@hoangcung1804npm/quisquam-aspernatur-soluta';

// Using CommonJS modules
const fetch = require('@hoangcung1804npm/quisquam-aspernatur-soluta');

As a polyfill (installs globally):

// Using ES6 modules
import '@hoangcung1804npm/quisquam-aspernatur-soluta/polyfill';

// Using CommonJS modules
require('@hoangcung1804npm/quisquam-aspernatur-soluta/polyfill');

The CDN build is also available on unpkg:

<script src="//unpkg.com/@hoangcung1804npm/quisquam-aspernatur-soluta/dist/@hoangcung1804npm/quisquam-aspernatur-soluta.js"></script>

This adds the fetch function to the window object. Note that this is not UMD compatible.


Usage

With promises:

import fetch from '@hoangcung1804npm/quisquam-aspernatur-soluta';
// Or just: import '@hoangcung1804npm/quisquam-aspernatur-soluta/polyfill';

fetch('//api.github.com/users/lquixada')
  .then(res => {
    if (res.status >= 400) {
      throw new Error("Bad response from server");
    }
    return res.json();
  })
  .then(user => {
    console.log(user);
  })
  .catch(err => {
    console.error(err);
  });

With async/await:

import fetch from '@hoangcung1804npm/quisquam-aspernatur-soluta';
// Or just: import '@hoangcung1804npm/quisquam-aspernatur-soluta/polyfill';

(async () => {
  try {
    const res = await fetch('//api.github.com/users/lquixada');
    
    if (res.status >= 400) {
      throw new Error("Bad response from server");
    }
    
    const user = await res.json();
  
    console.log(user);
  } catch (err) {
    console.error(err);
  }
})();

Demo & API

You can find a comprehensive doc at Github's fetch page. If you want to play with @hoangcung1804npm/quisquam-aspernatur-soluta, check our JSFiddle playground.

Tip: Run the fiddle on various browsers and with different settings (for instance: cross-domain requests, wrong urls or text requests). Don't forget to open the console in the test suite page and play around.

FAQ

Yet another fetch library?

I did a lot of research in order to find a fetch library that could be simple, cross-platform and provide polyfill as an option. There's a plethora of libs out there but none could match those requirements.

Why polyfill might not be a good idea?

In a word? Risk. If the spec changes in the future, it might be problematic to debug. Read more about it on sindresorhus's ponyfill page. It's up to you if you're fine with it or not.

How does @hoangcung1804npm/quisquam-aspernatur-soluta work?

Just like isomorphic-fetch, it is just a proxy. If you're in node, it delivers you the node-fetch library, if you're in a browser or React Native, it delivers you the github's whatwg-fetch. The same strategy applies whether you're using polyfill or ponyfill.

Who's Using It?

|The New York Times|Apollo GraphQL|Facebook|Swagger|VulcanJS|graphql-request| |:---:|:---:|:---:|:---:|:---:|:---:| |The New York Times|Apollo GraphQL|Facebook|Swagger|VulcanJS|graphql-request|

Thanks

Heavily inspired by the works of matthew-andrews. Kudos to him!

License

@hoangcung1804npm/quisquam-aspernatur-soluta is licensed under the MIT license © Leonardo Quixadá

Author

|@lquixada| |:---:| |@lquixada|