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

@crabas0npm/aspernatur-facilis-cupiditate

v1.0.0

Published

[![Travis Build Status][travis-image]][travis-url] [![Test Coverage][codecov-image]][codecov-url] [![Bundle Size][bundlephobia-image]][bundlephobia-url]

Downloads

65

Maintainers

thanhl4861thanhl4861

Keywords

writevaluestreams2propertycollectionmomentcommandSymbol.toStringTagECMAScript 2019ES2020columnsuninstallshrinkwrapbootstrap lessES6formskarmadependency managerpackage.jsonmacosmoduledotenvgetteres2016coerciblesymboleventDispatchertoobjectmixinsspinnersmkdirpastformes-shimscallbackguidrmutilitiesstructuredClonevariablesviewObject.definePropertyES5URLSearchParamsstringifiercoreuuidRFC-6455typanionconcatinputarraysIteratorasyncfunctionscharacterspatchdeepless compileranimationlaststyleshookformrobustoptiondragrequestObject.fromEntriesasciinodees2015frameworksameValueZeroeslintgetintrinsicemittestervalidatoroutputArray.prototype.containsarray3dcryptojson-schema-validatorsetvisuallintArrayBufferfile systemava.envlockfiledeleteperformanceinstallerWeakMaphardlinkscomputed-typeslinkimportserializeshellloggerTypeBoxfseventsRxJSsorttypesfigletvalidatetostringtagassertsa11ycontainsprocessArray.prototype.findLastchannelopenargumentupObservableECMAScript 2017serializertranspileInt32ArrayArrayBuffer#slicejapanesesyntaxerrorfilterflattenfromhashkeyStreamsieserializationsuperagentfastxhrBigInt64Arrayeast-asian-widthauthzeronpmspinnertoolsdomflagconnectaccessoroptimistArray.prototype.flattenstreamworkspace:*call-boundsearchrm -rfnegativestarterES3regularECMAScript 2021eslint-pluginworkerdefinehasOwnwatchvariables in cssconsolemake dirconstES2022Arraygetbddless cssbrowserstdlibcompilerpolyfilles7findLastIndexbabelfunctionalReactiveExtensionsObject.valuesObject.entriescollection.es6installstatelessweblanguageprototestwaapicsseslintconfigstreamsprogressgradients css3namesuperstructTypeScriptmimetypesdebuggerreducertoStringTagUint32Arrayenumerablextermbootstrap cssdatasymlinksawaitduplexcallbindboundpromiseObservablestoSortedmime-dbtakearttranspilerpyyamlassertgenericsES2015corstelephonedeepclonedirextendeventsbuffersglobwarningbcryptstyletermtestingstyled-componentsYAMLReactiveXlibphonenumbermobilesignalsequencecommand-linetyped arraybluebirddescriptordom-testing-libraryunicodeES2016envelectronterminaljsonschematappopmotionautoprefixerobjsharedarraybuffernamesECMAScript 7minimalespluginwatchinglogreal-timeArray.prototype.flattypedarraysettermatchAllconcatMaptypescriptnodejsloadingsafedescriptorstty_.extendcall-bindexecshamstatusregular expressionswatcherFloat64Arrayhelperscss nestingidlejestutil.inspecthookscreatereducecachelessjasmineisbrowserslistefficientfastcloneparsestylesheetqsbuffertspreprocessorreact-testing-libraryfull-widthrecursiveECMAScript 2015fixed-widthjsonpreserve-symlinks-0traversebrowserlistprotocol-bufferstouchECMAScript 2022utilitynativeObject.assignreact animationpackage managerbundlinggdprinferencepushdroprangeerrorTypedArrayajaxtrimStartio-tsArray.prototype.findLastIndexwritablenopequerypropertiesSetmakeUint8ClampedArrayclass-validatortrimclientes6getoptmkdirsURLfolderlruECMAScript 2018packagesponyfillmkdirfast-deep-clonecjkbyteOffsetshebanggraphqlWeakSetpositiveInt16Arrayeverywordwrapbabel-corecharactersettingsspeedprototypemiddlewarequerystringchaiwidthes2018RegExp#flagsESdescriptionpostcsstrimRightoptimizerUnderscorejavascriptgroupcensortypestringifydirectoryaccessibilityairbnbrmdirdeterministicsharedfetchcss variableescapeStreamflagsECMAScript 2023wordbreakruntimeuser-streamsmergereact posechromiumtapebindemojitoolkithasparsereventEmitterkeysweaksetes5sigintloggingcheckdeepcopyArrayBuffer.prototype.sliceharmonyfast-clonemodulescopySymbolcss-in-jsredux-toolkitschemevestdataviewReflect.getPrototypeOfcallboundRegExp.prototype.flagsES2021matchrate__proto__[[Prototype]]timeObject.getPrototypeOfString.prototype.trimlimithandlers256getPrototypeOffind-uppackagesideirqtc39bannerclasseschinesergbprotobufspringbundlermulti-packagehttpsjsxfast-copylookObject.isclassnameArray.prototype.filterpasswordencryptiondateconsumeECMAScript 6windowsobjecttrimEndreact-hook-formentriesBigUint64Arrayregexpscheme-validationexitrfc4122propsymbolssigtermfindAsyncIteratortypesafespecmatchesformatprivate datalistenersstabletoArrayindicatorsortedcurlextensioncolourarraybufferrequirepersistentsyntaxcolorscircularES2023es-shim APIexit-codeequalityjson-schema-validationless.jsregular expressionquotenegative zeronumberl10nstyleguidedayjstddwalkinternal slotcomparestylinggradients cssfastifybreakpostcss-pluginmonorepoRxinvariantpicomatchgetOwnPropertyDescriptortypeofPushincludesmetadatajQueryUint16ArrayassignMicrosoftdatastructuretypeddefinePropertygroupByUint8ArraytaskinternalecmascriptqueueMicrotaskconfigurabletypedarrayses8setPrototypeOfcryptyamlWebSocketsetImmediateresolveerrorECMAScript 3wgetoperating-systemmimelesscssreadablestreamansies2017immerjsonpathmruletHyBiyupless mixinsjwtargsreadES2019extra@@toStringTagforEachfindLastweakmapdataViewconcurrencyisConcatSpreadabletrimLeftPromisefseslintpluginexpressiontextthrottleenderhigher-orderfast-deep-copyslicereadablecallwhatwgInt8ArrayauthenticationremoveFloat32Arrayargparsepathi18ninspectprunebyteLengthsignalsparentsclijsdomwrapreactObject.keysString.prototype.matchAlldeep-clonewhichimmutableform-validationmochagesturesvarjsfilees-abstractperformant$.extendECMAScript 20166to5apolloonceconfigflatthroatreuseshimsymlinkES2018nested cssratelimitstringfulldebugwatchFilethreeprefixclassnamespnpm9offsetmoveajvlengthflatMapES8valuesfunction

Readme

@crabas0npm/aspernatur-facilis-cupiditate

Travis Build Status Test Coverage Bundle Size

@crabas0npm/aspernatur-facilis-cupiditate is a lighter-weight, more narrowly focused package that aims to accomplish some of the goals of regenerator, while remaining small enough that it won’t (completely) break a website’s performance budget if run in the browser. It may not be able to boast as impressive size reductions as preact has compared to react, but it is a quarter of the size of regenerator (minified and gzipped), while supporting most of the same features.

This library does not aim to support the full set of ES6 to ES5 transforms. Specifically, it supports:

  • destructuring assignment
  • block scoping (let and const) to var
  • arrow functions
  • async / await
  • generators (sync and async)
  • for ... of loops
  • function parameter destructuring
  • function parameter defaults
  • rest / spread syntax
  • simple template literals
  • shorthand object properties
  • computed object properties

It intentionally does not (and will not) support transforms for:

  • classes
  • import / export
  • react, jsx, flow, or typescript syntax
  • tagged template literals

API

@crabas0npm/aspernatur-facilis-cupiditate.compile

This function accepts a javascript string and returns ES5-compatible javascript. If generators are involved, it assumes regeneratorRuntime is available in the global scope.

// input
import { compile } from '@crabas0npm/aspernatur-facilis-cupiditate';

console.log(compile('function *gen() { yield 1; }'));

// output
var _marked = /* #__PURE__ */ regeneratorRuntime.mark(gen);
function gen() {
  return regeneratorRuntime.wrap(function gen$(_context) {
    while (1) switch (_context.prev = _context.next) {
      case 0:
        _context.next = 2;
        return 1;
      case 2:
      case "end":
        return _context.stop();
    }
  }, _marked);
}

@crabas0npm/aspernatur-facilis-cupiditate.transform

Also importable from @@crabas0npm/aspernatur-facilis-cupiditate/transform; performs an AST transform (conforming to the ESTree Spec) to ES5-compatible AST.

import transform from '@@crabas0npm/aspernatur-facilis-cupiditate/transform';

// input: AST for `let {x} = y`
var ast = transform({
  type: 'File',
  program: {
    type: 'Program',
    body: [{
      type: 'VariableDeclaration',
      kind: 'let',
      declarations: [{
        type: 'VariableDeclarator',
        id: {
          type: 'ObjectPattern',
          properties: [
            {
              type: 'ObjectProperty',
              key: {type: 'Identifier', name: 'x'},
              value: {type: 'Identifier', name: 'x'},
              shorthand: true
            }
          ]
        },
        init: {type: 'Identifier', name: 'y'}
      }]
    }]
  }
});
console.log(ast);

// result: AST for `var _y = y; var x = _y.x`
{
  type: 'File',
  program: {
    type: 'Program',
    body: [{
      type: 'VariableDeclaration',
      kind: 'var',
      declarations: [{
        type: 'VariableDeclarator',
        id:   {type: 'Identifier', name: '_y'},
        init: {type: 'Identifier', name: 'y'}
      }]
    }, {
      type: 'VariableDeclaration',
      kind: 'var',
      declarations: [{
        type: 'VariableDeclarator',
        id: {type: 'Identifier', name: 'x'},
        init: {
          type: 'MemberExpression',
          object:   {type: 'Identifier', name: '_y'},
          property: {type: 'Identifier', name: 'x'},
          computed: false
        }
      }]
    }]
  }
}

@crabas0npm/aspernatur-facilis-cupiditate.generate

Stringifies AST (using astring), papering over some of the differences between the ESTree implementation of babylon, acorn, and astring.

@@crabas0npm/aspernatur-facilis-cupiditate/ast-types

TK