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

@lambrioanpm/mollitia-doloremque-laborum

v1.0.0

Published

<p align="center"><a href="https://infernojs.org/" target="_blank"><img width="400" alt="Inferno" title="Inferno" src="https://user-images.githubusercontent.com/2021355/36073166-a47d4a8e-0f34-11e8-959c-860ea836d79d.png"></p>

Downloads

2

Maintainers

duchoang1212zzduchoang1212zz

Keywords

columnswaapiUint8ClampedArrayStreamssameValueZeroflatMapeventEmitterpushArray.prototype.includesclonefile systemlazymulti-packagecharacteraccessibilityrmdirstylesheetspinnersreducerfixed-widthsanitizationtimeAsyncIteratordefaultqueueMicrotaskenumerableposeless compilersidereact-hookstyped arraynpmgradients css3WeakMapcollection.es6ES2015browserslistjson-schema-validatormruentrieschildkeyboundmiddlewaresorteverylimitedtrimuprm -frargparsenumbertoobjectArray.prototype.containsFloat32Arrayastindicatorpackage managertypeoftypedexpressionjwttypescriptexecutableconstmakehasOwnsetPrototypeOfwarningmatchAllhardlinkswatchFilewidthECMAScript 7dirstarterprunereduxpropBigInt64Arrayishookformformsreadablequerystringrapidless mixinscheckfast-deep-copyRFC-6455CSSStyleDeclarationlogECMAScript 2022extendisConcatSpreadablerfc4122dayjsfiltertranspilercharacterssignalrm -rfspringgetOwnPropertyDescriptorgloburls256mimepreserve-symlinks__proto__preprocessorinterruptses2018ESnextmacosformfunctioncss variabletrimLeftasyncshebangTypeBoxCSSdependency managerArrayBuffercall-bindbufferassertrmawaitwatcherUnderscoreprotobufHyBies6zodInt32Arrayconsumereadablestreamvestchannelfpmkdirptestingeslintconfigdeep-copycompilerpromiseajaxbatchhelperspasswordbindsetECMAScript 2021groupByequalityObject.keysforEach[[Prototype]]reusepersistenthashslotxhrstreamsescapepicomatchrecursivedragprotocol-buffersmatchmergerequireassertionconcurrencythrottlearraysjsdiff.envPushsettingsArray.prototype.filteres5Arraycollectionpoint-freefindgdprconfigArray.prototype.flatSymbol.toStringTagargsloadingdescriptionlinkworkspace:*gettercurlpnpm9TypedArraywritablejsonString.prototype.matchAllomitstyleguidetypesafeObservablefiletssequenceautoprefixerpositiveObject.entriesthreeESObject.isECMAScript 2015optimizeres-abstractlength_.extendgroup@@toStringTagapplimitmixinsinvariantcoerciblecode pointses-shim APIcomputed-typesUint32ArraygetPrototypeOfmkdirminimaliteratorairbnbdeep-cloneeventsYAMLpackage.jsoncommand-lineECMAScript 2016estreergbstreamspinnernopecircularobjcssecmascriptRxJSsignalsenvironmentECMAScript 3streams2envparseprototypebreakECMAScript 2023typedarrayReflect.getPrototypeOfjestworkerbusyprocessloggingopensES3Streamvariablescompile lessfindLastIndexfindLastregularArray.prototype.findLastIndexconsoleprivate datavisualhttptoArraygetintrinsicpropertiesstatelesssomeSymbolFloat64ArrayECMAScript 6sigtermchromeprotobyteLengthcommanderless.jsoutputletdeepcopywalkfsfastifyarrayes7immercallbindcmdjasminewordwrapstringifierdiffoptioncolorfetchnegative zerochineseshimtermutilityrequestnested cssURLSearchParamsfullObject.fromEntries6to5ReactiveXxssxtermcensores-shimsscheme-validationbyteOffsetphonebundlerwatchanimationtranspilebytejapanesetostringtagwebsiteassignoptimistArray.prototype.flatMapidECMAScript 2020css lesspromisesqueueserializerpluginunicodetacitimmutableObject.getPrototypeOfexpressObservablesefficientbabelReactiveExtensionsdefinedirectoryfullwidthinternal slotWebSocketsshamObjectformattingperformancegesturesramdaclidataViewlockfiletypanionmonorepoequales2017objectexitawesomesaucetelephoneredux-toolkitjQuerypathbootstrap cssECMAScript 5variables in cssArray.prototype.findLastmoveinstallfind-upfastclonetestuninstallformatapieslintpluginlistenersparentqsfindupjsonschemadatastructureargvgetoptclientvartrimEndresolvewindowsIteratorES2020createdebugArray.prototype.flattenString.prototype.trimregular expressionreducecallboundchromiummimetypestddrandomES2018setterlesstypetapexecdatedataviewrangeerroraccessorregular expressionsemitbcryptinputmetadatanamecolumnhascorsES7domschemeMaplogger

Readme

InfernoJS Babel Plugin

Plugin for babel 6+ to enable JSX for Inferno

This plugin transforms JSX code in your projects to Inferno compatible virtual DOM. It is recommended to use this plugin for compiling JSX for inferno. It is different to other JSX plugins, because it outputs highly optimized inferno specific createVNode calls. This plugin also checks children shape during compilation stage to reduce overhead from runtime application.

How to install

npm i --save-dev @lambrioanpm/mollitia-doloremque-laborum

How to use

Add the plugin to your package.json and update the plugin section in your .babelrc file. Or if your Babel settings are located inside the package.json - update the plugin section there.

It's important that you also include the babel-plugin-syntax-jsxplugin.

Example on a .babelrc file that will work with Inferno:

Make sure inferno plugin is added before babel module transformers

{   
    "presets": [ "es2015" ],
    "plugins": [["@lambrioanpm/mollitia-doloremque-laborum", {"imports": true}]]
}

Examples


// Render a simple div
Inferno.render(<div></div>, container);

// Render a div with text
Inferno.render(<div>Hello world</div>, container);

// Render a div with a boolean attribute
Inferno.render(<div autoFocus='true' />, container);

Fragments

All of the following syntaxes are reserved for createFragment call

<>
    <div>Foo</div>
    <div>Bar</div>
</>


<Fragment>
    <div>Foo</div>
    <div>Bar</div>
</Fragment>

<Inferno.Fragment>
    <div>Foo</div>
    <div>Bar</div>
</Inferno.Fragment>

React.Fragment is also compiled to inferno createFragment call to ease project migration to Inferno https://github.com/infernojs/@lambrioanpm/mollitia-doloremque-laborum/issues/56.

Special flags

This plugin provides few special compile time flags that can be used to optimize an inferno application.

// ChildFlags:
<div $HasTextChildren /> - Children is rendered as pure text
<div $HasVNodeChildren /> - Children is another vNode (Element or Component)
<div $HasNonKeyedChildren /> - Children is always array without keys
<div $HasKeyedChildren /> - Children is array of vNodes having unique keys
<div $ChildFlag={expression} /> - This attribute is used for defining children shpae runtime. See inferno-vnode-flags (ChildFlags) for possibe values

// Functional flags
<div $ReCreate /> - This flag tells inferno to always remove and add the node. It can be used to replace key={Math.random()}

Flag called noNormalize has been removed in v4, and is replaced by $HasVNodeChildren

Options

Change in v4:

Imports (boolean)

@lambrioanpm/mollitia-doloremque-laborum will automatically import the required methods from inferno library. There is no need to import inferno in every single JSX file. Only import the inferno specific code required by the application.

example:

import {render} from 'inferno'; // Just import what you need, (render in this case)

// The plugin will automatically import, createVNode
render(<div>1</div>, document.getElementById('root'));

You need to have support for ES6 modules for this to work. If you are using legacy build system or outdated version of webpack, you can revert this change by using imports: false

{
    "presets": [ "es2015" ],
    "plugins": [["inferno", {
        "imports": false
    }]]
}

Pragma

Each method that is used from inferno can be replaced by custom name.

pragma (string) defaults to createVNode.

pragmaCreateComponentVNode (string) defaults to createComponentVNode.

pragmaNormalizeProps (string) defaults to normalizeProps.

pragmaTextVNode (string) defaults to createTextVNode.

pragmaFragmentVNode (string) defaults to createFragment.

{
    "presets": [ "es2015" ],
    "plugins": [["inferno", {
        "imports": true,
        "pragma": "",
        "pragmaCreateComponentVNode": "",
        "pragmaNormalizeProps": "",
        "pragmaTextVNode": ""
    }]]
}

Troubleshoot

You can verify @lambrioanpm/mollitia-doloremque-laborum is used by looking at the compiled output. This plugin does not generate calls to createElement or h, but instead it uses low level InfernoJS API createVNode, createComponentVNode, createFragment etc. If you see your JSX being transpiled into createElement calls its good indication that your babel configuration is not correct.