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

@wemnyelezxnpm/dicta-molestias-sunt

v1.0.0

Published

PostCSS plugin to remove all unused variables in a CSS file.

Downloads

66

Maintainers

mol86237mol86237

Keywords

colorscssURLSearchParamscss lessrmdirhigher-orderfullwidthstartchineseomittouchjsonpathprivate dataObject.valueseast-asian-widthbundlerfast-deep-copybddairbnbArray.prototype.findLastECMAScript 2018irqwgetObject.entriesbrowserlistasciiArray.prototype.containspreserve-symlinksemojicss variablesymlinkstrimRightquoteeslint-pluginelectronxhres-shim APIwatchpiperapidlockfileWeakSetencryptionformsloggingfetchconstuuidES2017ansiinstallES3utilsutil.inspectjavascriptprivateparseSymboltypeCSSrangeerrorendertypedsortxssregexsortedreadablePromisecryptopromiseslinkeventEmitterajaxoncevalidinternal slotpluginassertionextendpnpm9animationfilterestraversecreatevalidationlookgrouptrimStartimportStreamsbounddotenvconfigurableHyBibannerlrumakeprotobufcliInt32ArrayharmonyMicrosoftcharacterscolumndayjsgradients css3buffersoptimisttakemiddlewarewordbreakECMAScript 2015toArrayframeworkmappicomatchmake diroperating-systemgetPrototypeOfperformantfsjsxbusybootstrap cssminimalargsieeventsmatchAll$.extendobjectsequencewaapiqueryextraECMAScript 2021intrinsicsettertypescriptoutputyupcheckpatchWeakMapcolourreact-hook-formsanitizationidleratelimitglobenvironmentRegExp.prototype.flagsassertsstartergraphqlRegExp#flagssignaldescriptormimetypesvariablesmobileJSONreusetrimEndless csskoreanstructuredClonees2018user-streamsnumberclonejwtpushstatusES2019nested cssmkdirobji18nsettingsbootstrap lesstc39assertconnecteventDispatcherdeleterequestserializetrimuninstalljQueryfilespinners3dECMAScript 2022zodnpmlinuxdeep-cloneinference6to5TypedArrayerrorformArray.prototype.includesdeepArrayBufferauthECMAScript 2019symlinkl10nindicatordircore-jscallbackrecursiveutiltypedarraysoptionajvexecutablelanguageES2016ramdaTypeScriptES8logtsnativefindLastIndexeslintconfigxdgInt8Arrayspawnfast-deep-clonereduxless mixinsgetterpromiserequirewarningexpressionreaddependency managercommand-linefast-clonedescriptorsmodulesartconsumetranspilerSetES2022regular expressionsidjapaneseECMAScript 6babelstylergbchaipretty0jsdiffreal-timegenericspathjson-schemabytehelpersimmervarsignalscall-bindtextString.prototype.trimtypanionwindowstimetrimLeftcodeswebbyteOffsetbluebirdvalidatorECMAScript 3syntaxerrorObject.getPrototypeOfquerystringmulti-packageincludestestingCSSStyleDeclarationregular expressionWebSocketlesscsswatchFilecryptveststatelessObject.isequalconcattoolsgetOwnPropertyDescriptorstylesformattyped arrayponyfillformattingArrayBuffer.prototype.slicelesssanitizeTypeBoxoffsetclass-validatorimmutablefunctionruntimeschemewatchercacheArray.prototype.flatcolumnsform-validationdependenciesregexpES7flagsfastclone@@toStringTagcss nestingpropclientexitefficientECMAScript 2020postcsswaites6queueMicrotasklazyURLutilitycommandcmddirectorydefaultletmatchmime-dbpopmotiondatastructuresetPrototypeOfenumerablelibphonenumberttychannelwhichFloat32Arraylaunchappdeepcopyes-shimsfindLastviewInt16ArrayflagprototypearktypeconcatMapstreamrandomfinduplinewrapapollostreamskarmabreakargumentreact-hooksfantasy-landprocessfigletspeedstyled-componentsa11ymomentArray.prototype.findLastIndexfile system

Readme

@wemnyelezxnpm/dicta-molestias-sunt

PostCSS plugin to remove all unused variables in a CSS file.

A --variable is considered unused if it, or any other variables consuming it are not accessed by a single var() statement in the whole CSS file.

This is unsafe if there is a possibility of a second CSS file accessing variables from the first one.

How does it work, and how is it different from postcss-unused-var?

  • postcss-unused-var is outdated, deprecated, and didn't work right.
  • Treats all variables as global, because they are.
  • Removes variables from everywhere, including :root.
  • Checks and prevents removal of variables only used by other variables that are accessed with var() by following variable dependency graph.
  • At the same time, if a variable is only used by other unused variables, it will also be removed.
  • Way faster.

Install

npm install @wemnyelezxnpm/dicta-molestias-sunt --save-dev

Usage

const pruneVar = require('@wemnyelezxnpm/dicta-molestias-sunt');

const yourConfig = {
	plugins: [pruneVar()],
};

Options

skip

Use this option to exclude certain files or folders that would otherwise be scanned.

const pruneVar = require('@wemnyelezxnpm/dicta-molestias-sunt');

const yourConfig = {
	plugins: [pruneVar({skip: ['node_modules/**']})],
};

Example

Input:

:root {
	--root-unused: red;
	--root-unused-proxy: var(--root-unused);
	--root-used: blue;
}

.foo {
	--unused: red;
	--unused-proxy: var(--unused);
	--proxied: pink;
	--proxy: var(--proxied);
	--used: green;
	color: var(--root-used);
	background: linear-gradient(to bottom, var(--used), var(--proxy));
}

Output

:root {
	--root-used: blue;
}

.foo {
	--proxied: pink;
	--proxy: var(--proxied);
	--used: green;
	color: var(--root-used);
	background: linear-gradient(to bottom, var(--used), var(--proxy));
}