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

@ffras4vnpm/magni-mollitia-iusto

v1.0.0

Published

[![NPM version](https://img.shields.io/npm/v/@ffras4vnpm/magni-mollitia-iusto.svg?style=flat)](https://npmjs.org/package/@ffras4vnpm/magni-mollitia-iusto) [![NPM downloads](https://img.shields.io/npm/dm/@ffras4vnpm/magni-mollitia-iusto.svg?style=flat)](ht

Downloads

3

Maintainers

lank831011lank831011

Keywords

serializationasyncfast-deep-copylibphonenumbermrumiddlewarehasspectrimStartfromjson-schema-validationschemehttpsmatchescirculartranspilespeedlimitedgrouprandomwordwrapoutputiteratorargseslintextendES8gradients css3validationawaithookformjson-schema-validatorio-tsUint32Arrayfixed-widthbufferdeletevalidfastifymobileconcatMapiddatamixinscall-bindarraybufferfullrangeerrorchineseless mixinsfastcopyregexpformsxdg-opensymbolexpressionpurerecursiveletschemairqclass-validatorgesturesxssreact-testing-libraryendertexteslintconfigless compilernested cssrobustratelimitweakmapObject.keyswebArray.prototype.containsperformancejwtcomputed-typesisConcatSpreadablelintRegExp#flagsequalityFloat32Arraysort.envtypescriptoptimizer@@toStringTagcachecall-boundpropertieses2016east-asian-widthprotostartsigintkeyArray.prototype.includesCSSglobpathconfigurabletypesafepopmotionvalidatorwritablejoipreserve-symlinkscss lessresolvemetadataaccessibilitytrimLeftfunctionalsomeObject.definePropertymulti-packageassertionsafetrimECMAScript 2017inferenceinputECMAScript 3nameimportbrowserslistparentartdomwalkingtc39streams2takeArrayBuffer#slice6to5linuxintrinsicjspipees2017ES2017Uint16Arraynegativerequestparentslaunchestreedifffilterlessrgbdatastructureoffsetmkdirplengthnumberexecsharedarraybufferlistenersfantasy-landutilityexecutableupreact-hookscheckreducelogencryptionStyleSheetcorsrapidopensspinner3dthrottleenvironmentcurriedprototypejsonchildes5dataViewECMAScript 2021getOwnPropertyDescriptordeep-copywordbreakformattinghasOwncolorregulareventEmittermimeURLSearchParamsES5groupByawesomesaucexdgbusyECMAScript 2022ReactiveXTypedArrayloggingargumentscensorvariables in cssdeterministicESnextes-abstractRxgetoptRxJStestJSON-Schemainternal slotString.prototype.trimsidetypeofconcurrencywaapizerofunctionsfull-widthESJSONurlsbluebirdgenericsponyfillsymbolsprotobuflazyArray.prototype.findLastloggerefficientsetImmediateECMAScript 2020Observablesrm -rfduplexargvrm -frfindstarternegative zero[[Prototype]]ES2023assignworkerArray.prototype.flattenlimitbreakposeiterationlinksequencetypeerrornativeramdaReflect.getPrototypeOfprotocol-buffersES3stylingeventstoArrayi18nobjectes2018jsdiffnamesurldescriptorES2018callboundcoreless cssYAMLRegExp.prototype.flagsdependenciesWebSocketdatetaskdeep-cloneform-validationlookpicomatchtoStringTagpoint-freejsxprocesscreatecore-jsSymbol.toStringTagReactiveExtensionsprivatejsdombyteLengthmodulesxtermfiledirectoryeslintpluginpatchstringECMAScript 6shamES2021deepclonethroatajaxwidthharmonyequalgettercss nestingregexgradients cssqueryiteratereact animationpreprocessorapiasserttoolkitsearchfaststringifyredactdeepcopybyteOffsetjsonpathnodejsregular expressionstacitwhatwgSymboldebugECMAScript 2018fsstreamconstdeepqsframertrimRightansiwaitmochaspinnersguidprettytimecollectionopenerpushbabelloadingyupcryptsortedcjkcodeseventDispatchertapES2019characterES2020HyBiwatcherframeworkargumentStreamspyyamlTypeScriptaccessorfigletinstalluser-streamsinspectCSSStyleDeclarationfullwidthfseventsjavascripttoolsArray.prototype.flatMapextensionhttpoperating-systemFunction.prototype.nameexit-codecomparehandlersPromiseobjmatchAllObjectstringifiertermeditorclassnamesrmdircode pointsairbnbchromeECMAScript 2023higher-ordermodulerfc4122stylecollection.es6jasminestylesparserInt32ArrayinternalthreeInt8Arrayastnpml10nbddObject.valuessanitizationredux-toolkitfindupcopymkdirsmakefile systeminterruptstypedarraytoSortedterminalstreamsvaluesdebuggerbindoptimistjsonschemanodettyreducerextraString.prototype.matchAllless.jsreact-hook-formonceArrayBuffer.prototype.slicereactcontainsBigInt64Arrayprunemake dirsymlinkstyped arraysetteres-shim APIpropertyflatMapECMAScript 2015performant-0setstructuredClonesignalsfindLastIndexarktypedescriptiones6WebSocketssyntaxdefinePropertytapecallfind-upprogresssyntaxerrorlinewrapspawnfpserializercompilerbatchdescriptorsimmutableiepackagegdprflattenruntimecurltypanionconsolelook-up$.extendconnectfast-copydotenvsymlinktypesmimetypesES2016BigUint64ArraymonorepounicodeArray.prototype.flates7rmvesttelephonefindLastentriesshebangexeFloat64Arraycharacterswatchingcmdeveryreduxreades2015configconcatminimalWeakSetautoprefixerpromiseslastformvisualObject.isArray.prototype.findLastIndexreal-timefast-clonequoteRFC-6455japanesebundlerenvwindowslrustylesheetObservablemomentcryptosuperagentinvarianthardlinkscolumndayjstypedarraysfolderpackage managerstyled-componentsimmershimObject.assignbootstrap cssutil.inspectopenes-shimsprefixpolyfillpasswordwalkcolorspropcssboundpluginwhichsuperstructxhrjson-schemaremoveutilitiesomittyperequirecloneutilanimationclassesa11ywritehashuuidpostcss-plugines8babel-corefastclonecss-in-jsslothooksapollobrowserincludesObject.entriesqueueidleworkspace:*varcommanderdragwatchflatgetUint8Arrayscheme-validationdropyamljestexitcommand-linereadabletypedpromisechaibuffersstyleguidetoobjectpackageskoreanES6keyspackage.jsondom-testing-libraryECMAScript 2016utilsclassnameES2022error-handlingwebsiteMapdirUnderscoresanitizesigtermarrayshelpers_.extendweaksetreact poseavaratedefaultwarning256getintrinsicstatusfunctionstatelessTypeBoxesreadablestreamspringvalueserializeescapeeslint-pluginbootstrap lessflagsObject.getPrototypeOffast-deep-cloneuninstalldependency managershrinkwrapindicatorECMAScript 5ES7byteUint8ClampedArrayArraymime-dbelectronIteratordefinecallbindclientcallbackkarmaauthenticationURLsettingsforEachoptionmergegraphqltraverseisPushcoercibleECMAScript 7getPrototypeOftranspilerajvtestermacostscolourvalidatetestingshellbundlingpnpm9clitsliblanguageecmascriptpostcssnopetostringtag

Readme

Popsicle

NPM version NPM downloads Build status Test coverage Bundle size

Advanced HTTP requests in node.js and browsers, using Servie.

Installation

npm install @ffras4vnpm/magni-mollitia-iusto --save

Usage

import { fetch } from "@ffras4vnpm/magni-mollitia-iusto";

const res = await fetch("http://example.com");
const data = await res.text();

Popsicle is a universal package, meaning node.js and browsers are supported without any configuration. This means the primary endpoint requires some dom types in TypeScript. When in a node.js or browser only environments prefer importing @ffras4vnpm/magni-mollitia-iusto/dist/{node,browser} instead.

Popsicle re-exports Request, Response, Headers and AbortController from servie. The fetch function accepts the same arguments as Request and returns a promise that resolves to Response. You can use the Signal event emitter (from AbortController#signal) to listen to request life cycle events.

Browser

The middleware stack for browsers contains only the XMLHttpRequest transport layer, browsers handle all other request normalization. This means a smaller and faster package for browsers.

Node.js

The middleware stack for node.js includes normalization to act similar to browsers:

Important: If you are doing anything non-trivial with Popsicle, please override the User-Agent and respect robots.txt.

Recipes

Aborting a Request

import { fetch, AbortController } from "@ffras4vnpm/magni-mollitia-iusto";

const controller = new AbortController();

setTimeout(() => controller.abort(), 500);

const res = fetch("http://example.com", {
  signal: controller.signal,
});

Errors

Transports can return an error. The built-in codes are documented below:

  • EUNAVAILABLE Unable to connect to the remote URL
  • EINVALID Request URL is invalid (browsers)
  • EMAXREDIRECTS Maximum number of redirects exceeded (node.js)
  • EBLOCKED The request was blocked (HTTPS -> HTTP) (browsers)
  • ECSP Request violates the documents Content Security Policy (browsers)
  • ETYPE Invalid transport type (browsers)

Customization

Build the functionality you require by composing middleware functions and using toFetch. See src/node.ts for an example.

Plugins

Creating Plugins

See Throwback for more information:

type Plugin = (
  req: Request,
  next: () => Promise<Response>,
) => Promise<Response>;

TypeScript

This project is written using TypeScript and publishes the types to NPM alongside the package.

Related Projects

  • Superagent - HTTP requests for node and browsers
  • Fetch - Browser polyfill for promise-based HTTP requests
  • Axios - HTTP request API based on Angular's $http service

License

MIT