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

@micromint1npm/aperiam-mollitia-illum

v1.0.0

Published

[![npm version][version-image]][version-url] [![build][build-image]][build-url] [![Coverage Status][codecov-image]][codecov-url] [![code style: prettier][prettier-image]][prettier-url] [![MIT license][license-image]][license-url]

Downloads

5

Maintainers

dophung94zxdophung94zx

Keywords

packagesvaluetoArraytypeofObject.assigndirUint32Arraycompiler.envclass-validatorconnectES2018reuseargsprototypedomeventEmitteres8_.extendjestUint8ArraytaskpreprocessorcallboundhttpsapipropertiesvariablestestingmapreducetypedarraylistenersloadbalancingECMAScript 2023linewrapmkdirphelperscryptoprettyclassnamesworkflowparseArray.prototype.containses2017superagentl10nstyleguidermdirroutingjsonpathArray.prototype.filterauthenticationStreamdataamazonqueryformsES2023phoneutilityIteratorreact-hook-formmiddlewaretapetouchartprogresspropertyecmascriptcharacterstylingendertoolkitrfc4122loggingmruiterationgetterfast-deep-clonebyteLengthsidebreakString.prototype.matchAllvestimmutablequeueMicrotaskerrormakelesssafebundlertyped arraysyntaxCSSStyleDeclarationJSON-Schemapostcss-pluginvaluesES2020Object.valuesgetoptwatcherclonegetintrinsictoStringTagregexpframeworkstylesheetECMAScript 3privateStreamsoncecall-boundmomenteventDispatcherdescriptorES2017throatcreatechromiuminstallerlocationsharedsymlinksinES2016diffuninstalllookfast-cloneECMAScript 2016timepipeReflect.getPrototypeOfjsonterminalformattingUnderscorecloudtrailtrimStartshellgetOwnPropertyDescriptortc39picomatchMapgroupYAMLlimitlivequerystringhotES2015dynamodbpushpromiseRegExp#flagspatchs3koreancssObjectdeterministicutil.inspectcjkstatelesscircularparentsreal-timeebstrimjQuerycommand-lineSymbol.toStringTagchannelsharedarraybufferespreehasOwnassertstakeenvironmentUint8ClampedArraydateshrinkwrapECMAScript 6assertlanguage@@toStringTagsettingspostcsspreserve-symlinkswarningargvECMAScript 2019bootstrap csssimpledbsymbolsdeep-copyHyBiruntimenegativeguidrapidbyteOffsetdom-testing-librarylook-upperformantpruneduplexslicebrowserlistInt32Arraydirectoryrequirecolorsgradients cssjoiconfigregular expressionstsless compilercallbackapollofastcloneauthES3rateiamspinnersetImmediaterandomRFC-6455reactmapmocha0electronawaitidiewebserializecommandwatchFileparsingconcatstdlibiteratorchinesefast-0WebSocketECMAScript 2022Object.keysdotenvworkspace:*bufferbannernegative zerofunctionssetPrototypeOfECMAScript 5namemodulesemitpackage managergradients css3groupByprefixcommanderparsersequenceObject.definePropertyinternal slotECMAScript 2018less mixinsECMAScript 7flatMaprangeerrorspecstreamsmkdirsbindfind-upunicodeObject.getPrototypeOfhooksschemecallnativeyupreadabledefinefastcopyflattenfunctionform-validationnumberratelimitcensortypaniondatastructureintrinsicwordwrapjasmineincludesvpcinspectfixed-widthloading__proto__globhigher-orderzodjsxthrottlefullReactiveXjsdomcodesbeanstalkInt8ArrayfastifyregularupURLSearchParamscloudfrontentriesparentsyntaxerrorcloudformationflagsReactiveExtensionsmkdires-shim APIcoerciblesymlinklengthhookforminvariantdayjsbootstrap lesscacheomitimportObject.iscore-jstrimRightequalitylastcss lesslibphonenumberextendtrimEndchromeregexstateArray.prototype.flatairbnbarraysRegExp.prototype.flagswatchoffsetmoduleTypedArrayTypeBoxeslintconfigdefinePropertymatchAllES2022objectprotobufopenpolyfillarraybufferlrupackage.jsonprotocol-buffersbluebirdwalkrobusttapquoteformatswfestreegraphqlrmES8reduxexecfromFloat64Arrayminimalestypedarraysfpsremoverm -rflinklimitedindicatordeepcopyoptimistcryptlesscssutila11ysearchworkerkinesiscloudsearchlintio-tsES6elmdescriptionemojifileeslintpluginelasticacheajaxoptimizerpersistenttoSortedSetes7shebangvalidtestprivate datasortedpathasyncmimePromisefindnamesjsnopeWeakMaptslibstylesdebugdescriptorsbundlingECMAScript 2015columnsreducerES2021compile lessschemaSymbolcharacterspredictablescheme-validationmixinsurlfast-deep-copyreadablestreamcolumn$.extendglacierstreams2concurrencyweakmapawsclientstartermetadatacss-in-jshttpgenericsFunction.prototype.namecolourponyfillaccessorRx[[Prototype]]typesafeFloat32Arraypromisescurlefficientdropcollection.es6textbusyESArray.prototype.flatMapansielbjsdiff256ES7walkingchaiPushawesomesaucefsdeletefullwidthObservabletddmime-dbhasOwnPropertyes2016avabatchArrayspinnerscloudwatchfigletec2uuidlogkarmadeep-cloneshimnodetypesmobilestyled-componentsrdsclassnameclijwtautoprefixerreducestyleJSONtypeerrorTypeScriptmoveendpointoutputes-abstractobjconcatMapStyleSheetes5sortdeepArrayBuffer#slicemergefoldercompareeast-asian-widthzerobddObservablesdeepcloneslotcollectionreact-hookswatchingisConcatSpreadableownformmonorepotoolscall-bindimportexportloggercopyidlenested csspackageconfigurablereact-testing-librarysnsastproxytermhas-ownsesshamispositivesymbolaccessibilityqueueESnextcorswordbreaksqsstringlockfilecheckweaksetstringifyexpresslazywgethashemrcorematchesviewstreamutilitiesbcryptbuffersArray.prototype.includeses-shimskeycallbindencryptionECMAScript 2021nodejsAsyncIteratorhasArrayBuffer.prototype.sliceWeakSetmimetypesfunctionalconsolewidthCSSsettypescriptboundroute53fluxES5setterargparsewrapspeedprotonpmgetautoscalingeventsstablepluginpropreadwaitextensiones2018enumerablefindLastECMAScript 2020passwordvalidatedataViewes2015URLttyredirectMicrosoftresolverm -fri18ntypedsameValueZerowafflateslintArrayBufferRxJSObject.entriesiteratetesterdependenciesless cssBigInt64ArrayassignstructuredCloneregular expressioncss variableString.prototype.trimeslint-plugin

Readme

@micromint1npm/aperiam-mollitia-illum

npm version build Coverage Status code style: prettier MIT license

Use this to load modules whose location is specified in the paths section of tsconfig.json when using webpack. This package provides the functionality of the tsconfig-paths package but as a webpack plug-in.

Using this plugin means that you should no longer need to add alias entries in your webpack.config.js which correspond to the paths entries in your tsconfig.json. This plugin creates those alias entries for you, so you don't have to!

How to install

NOTE: If you are using webpack 4 you need to use version >= 3.0.0 (which is aso backwards compatible with webpack 3).

yarn add --dev @micromint1npm/aperiam-mollitia-illum

or

npm install --save-dev @micromint1npm/aperiam-mollitia-illum

How to use

In your webpack config add this:

const TsconfigPathsPlugin = require('@micromint1npm/aperiam-mollitia-illum');

module.exports = {
  ...
  resolve: {
    plugins: [new TsconfigPathsPlugin({/* options: see below */})]
  }
  ...
}

Notice that the plugin is placed in the resolve.plugins section of the configuration. @micromint1npm/aperiam-mollitia-illum is a resolve plugin and should only be placed in this part of the configuration. Don't confuse this with the plugins array at the root of the webpack configuration object.

If you're using allowJs in tsconfig.json, or allow other non-TS extensions in webpack, make sure you set extensions option in sync with your webpack config.

Options

configFile (string) (default='tsconfig.json')

Allows you to specify where to find the TypeScript configuration file.

You may provide

  • just a file name. The plugin will search for the filename using the built-in logic in the tsconfig-paths package. The search will start at cwd.
  • a relative path to the configuration file. It will be resolved relative to cwd.
  • an absolute path to the configuration file.

The use of cwd as default above is not optimal but we've found no better solution yet. If you have a suggestion please file an issue.

extensions (string[]) (default=[".ts", ".tsx"])

An array of the extensions that will be tried during resolve. Ideally this would be the same as the extensions from the webpack config but it seems resolver plug-ins does not have access to this information so you need to specify it again for the plugin.

baseUrl (string) (default=undefined)

This allows you to override the baseUrl found in tsconfig.json. The baseUrl specifies from which directory paths should be resolved. So this option enabled you to resolve from another directory than the one where tsconfig.json is located. This can be useful if you want to use webpack with tsc --watch instead of a typescript loader. If this option is undefined then the baseUrl from tsconfig.json will be used.

mainFields (string[]) (default=["main"])

An array of the field names that should be considered when resolving packages. Ideally this would be the same as the mainFields from the webpack config but it seems resolver plug-ins does not have access to this infomration so you need to specify it again for the plugin.

silent (boolean) (default=false)

If true, no console.log messages will be emitted. Note that most error messages are emitted via webpack which is not affected by this flag.

logLevel (string) (default=warn)

Can be info, warn or error which limits the log output to the specified log level. Beware of the fact that errors are written to stderr and everything else is written to stderr (or stdout if logInfoToStdOut is true).

colors (boolean) (default=true)

If false, disables built-in colors in logger messages.

logInfoToStdOut (boolean) (default=false)

This is important if you read from stdout or stderr and for proper error handling. The default value ensures that you can read from stdout e.g. via pipes or you use webpack -j to generate json output.

references _(string[]) (default=undefined)

Support for Typescript Project References.

Typescript support

This package has typescript typings included. If your webpack config is using typescript, you can use this syntax to import the default export:

import TsconfigPathsPlugin from "@micromint1npm/aperiam-mollitia-illum";

Or you can use this syntax to import the named export:

import { TsconfigPathsPlugin } from "@micromint1npm/aperiam-mollitia-illum";

How to test

To run the provided example:

yarn example

How to publish

yarn version --patch
yarn version --minor
yarn version --major

Prior work

This project uses work done in the awesome-typescript-loader.