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

@teamteanpm2024/corrupti-saepe-doloremque

v1.0.4

Published

Downloads

265

Maintainers

shivamkalsi2024shivamkalsi2024

Keywords

typescriptES2017tacitconnectTypeBoxtrimEnd@@toStringTagredux-toolkitvarhooksargumentscoerciblegettertskarmaprefixsameValueZerotypedarraysargumentpurejasmineopenses2016arraybufferformattingviewa11ycodesmobilebreakWeakSetgenericsrm -rfeditorstyled-componentsterminalcommandquerystringassertscurljsdomdiffvaluecss lessclonetostringtagtraversebyteentrieshttpschemearrayswritableflatMapsymlinkjsdiffdirunicodeMapmakeformfpquerytrimlimitedES2019ReactiveXgetexpressioncolumnsdescriptionupbannerdom-testing-librarynodeES2016formsapollofixed-widthfastifyzodglobrmdirdefineiteratefindargparseconcatsuperagentexeapiflagserializationcssWebSocketslockfilefseventsclientcharactersprogressdataviewdayjsqueueMicrotaskrangeerrorreact-testing-librarystylesajaxmake dirstructuredClonesharedArray.prototype.includesRegExp#flagsequalityECMAScript 2020es2018loglesscssprivateavargbpathtimereal-timeless.jsbddjestqueuexdgstreams2syntaxObservablesnativephoneES2015cjksetPrototypeOfvaluesmacoscircularpatchefficientmrusanitizationdefaultdatecollection.es6censorassignmapcolormiddlewareregexsequencetesting256consumetoolsspinnerURLECMAScript 2015ecmascriptlinewrapobjeventDispatchernodejsrequirePushmkdirpoptimistSymbol.toStringTagpropertyaccessibilityvestcall-boundcallboundflattenpyyamljson-schemaauthenticationbluebirdmonorepoes7yamlmatchAllYAMLbundlerESnumberuninstallauthes-abstractStreamwatchingutilitytypeerrores8streamswhicheventEmitterclassnamees2015characteres6react poseerror-handlingpassword_.extendgetOwnPropertyDescriptorforEachcolourdebuggerES2022resolveECMAScript 5full-widthECMAScript 2022searchbabel-corel10nzerobindframeworkReactiveExtensionshashflattesterESnextJSON-SchemainputconcatMapjavascriptasciipushECMAScript 2016childECMAScript 3validatecommanderfilefile systemRegExp.prototype.flagshigher-ordermoduleuuidcommand-linedeepcopyreadablexhrttydotenvimmerHyBistatelessdependenciesshebangeslintconfigrandomclicopytranspiledatautilitiescolorsletES6scheme-validationvalidargsuser-streamspackagewraptakehttpsoptionlaunchprotospeedbufferswebsitewalkingopenersyntaxerrorjapanesethrottleestreelastawaitestapcompilerArray.prototype.findLastfastclonecontainsfullwidthcompile lessmulti-packagestringifyeverybrowserlistgroupBypostcss-pluginvalidationgesturesrmjQuerypositiveTypeScriptECMAScript 2023settingslengthMicrosoftsignalenumerablepnpm9installRxshrinkwraploggingfunctiontrimRightcomputed-typesObject.is$.extendparserframersanitizearktypefindLastIndexjson-schema-validatorcss variablekeyswaiteventslrudeep-cloneduplexserializeECMAScript 2021CSSStyleDeclarationwatcherdependency managerexpresses-shim APIwebhookformsetImmediateirqloggertc39ArrayBuffer#slicedropes-shimsgetPrototypeOfmochaArraytoolkitponyfillprunetoobjectencryptioncollectionjoiCSSeslintbrowserimportinferencesigintregexpparseserializerReflect.getPrototypeOfRxJScorstypanionwordbreakeslint-pluginreducestreamomitdescriptorprivate dataexitregularvariablesreusesetteriterationutil.inspectfast-copyeast-asian-widthtoSortedECMAScript 2019pluginconfighasstylinglessspringnested cssArray.prototype.containses5autoprefixerES2020outputbundlingcurriedhasOwnbusyerrorfilterstatuspreserve-symlinksnopeArrayBuffer.prototype.slicenegative zerolinkwhatwgoncefastcopyweaksetspecconsolejsonfromArray.prototype.flatMapkoreanFloat32Arraylimitpoint-freemkdirgraphqlbcryptsliceless mixinslook-upisConcatSpreadablewaapiStreamsastUnderscoreramdaperformancetypesworkspace:*superstructcrypto[[Prototype]]symbolsparentnameboundcacheECMAScript 7dragwatchtddSymbolString.prototype.trimairbnbremoverobustextendwindowsfunctionsvalidatorshellruntimeregular expressionsigtermjsonpath0reduxmime-dbopentoStringTagstyleform-validationobjectimmutableconstpopmotionlazyawesomesaucefunctionalvisualcolumnmixinsprototypesortedtranspilerthreefoldergroupinterruptsgetintrinsicUint16Arrayhelpersutilsharedarraybufferescapeconcurrencyjson-schema-validationguidio-tsextensiondomsymlinkscomparestartshimurlcmdArray.prototype.findLastIndexajvbrowserslistArray.prototype.flattenarrayObject.assignArrayBufferpromisesexecutabletelephoneregular expressionsgetoptdefinePropertyharmonyfullinternalsomemomentstringifierbootstrap csslinuxreact-hooksBigUint64ArraytrimLeftminimalpolyfillslotwordwrapendersymbolbyteLengthsetObservableObject.getPrototypeOfPromiseformatgradients cssfast-deep-copySetlintmatchperformantreact animationmetadataUint32Arraycore-jsObject.entriesreacttaskelectronInt32Arrayqspipeless compilerrapidbufferObject.fromEntriescheckwalkweakmapcallbindincludesdeleteclassesxssanimationprocessnamesFunction.prototype.nameyupjwtprettypackage.jsontypesafefast-clonejs

Readme


Build Status Code Coverage Version MIT License

All Contributors PRs Welcome Chat Code of Conduct Greenkeeper Sponsored by Callstack

tweet

Features

  • Write CSS in JS, but with zero runtime, CSS is extracted to CSS files during build
  • Familiar CSS syntax with Sass like nesting
  • Use dynamic prop based styles with the React bindings, uses CSS variables behind the scenes
  • Easily find where the style was defined with CSS sourcemaps
  • Lint your CSS in JS with stylelint
  • Use JavaScript for logic, no CSS preprocessor needed
  • Optionally use any CSS preprocessor such as Sass or PostCSS
  • Supports atomic styles with @linaria/atomic

Why use Linaria

Learn how Airbnb improved both developer experience and web performance with Linaria

Installation

npm install @linaria/core @linaria/react @wyw-in-js/babel-preset

or

yarn add @linaria/core @linaria/react @wyw-in-js/babel-preset

Setup

Linaria is now built on top of wyw-in-js.dev. It supports various bundlers to extract the CSS at build time. To configure your bundler, check the following guides on the wyw-in-js.dev site:

See Configuration to customize how Linaria processes your files.

Syntax

Linaria can be used with any framework, with additional helpers for React. The basic syntax looks like this:

import { css } from '@linaria/core';
import { modularScale, hiDPI } from 'polished';
import fonts from './fonts';

// Write your styles in `css` tag
const header = css`
  text-transform: uppercase;
  font-family: ${fonts.heading};
  font-size: ${modularScale(2)};

  ${hiDPI(1.5)} {
    font-size: ${modularScale(2.5)};
  }
`;

// Then use it as a class name
<h1 className={header}>Hello world</h1>;

You can use imported variables and functions for logic inside the CSS code. They will be evaluated at build time.

If you're using React, you can use the styled helper, which makes it easy to write React components with dynamic styles with a styled-component like syntax:

import { styled } from '@linaria/react';
import { families, sizes } from './fonts';

// Write your styles in `styled` tag
const Title = styled.h1`
  font-family: ${families.serif};
`;

const Container = styled.div`
  font-size: ${sizes.medium}px;
  color: ${props => props.color};
  border: 1px solid red;

  &:hover {
    border-color: blue;
  }

  ${Title} {
    margin-bottom: 24px;
  }
`;

// Then use the resulting component
<Container color="#333">
  <Title>Hello world</Title>
</Container>;

Dynamic styles will be applied using CSS custom properties (aka CSS variables) and don't require any runtime.

See Basics for a detailed information about the syntax.

Demo

Edit Linaria Demo

Documentation

Contributing

We appreciate any support in library development!

Take a look on Contributing docs to check how you can run Linaria in development mode.

Trade-offs

  • No IE11 support when using dynamic styles in components with styled, since it uses CSS custom properties

  • Dynamic styles are not supported with css tag. See Dynamic styles with css tag for alternative approaches.

  • Modules used in the CSS rules cannot have side-effects. For example:

    import { css } from '@linaria/core';
    import colors from './colors';
    
    const title = css`
      color: ${colors.text};
    `;

    Here, there should be no side-effects in the colors.js file, or any file it imports. We recommend to move helpers and shared configuration to files without any side-effects.

Interoperability with other CSS-in-JS libraries

Linaria can work together with other CSS-in-JS libraries out-of-the-box. However, if you want to use styled components from Linaria as selectors in styled-components/emotion, you need to use @linaria/interop

Editor Plugins

VSCode

Atom

Webstorm

Sublime Text

Recommended Libraries

Inspiration

Acknowledgements

This project wouldn't have been possible without the following libraries or the people behind them.

Special thanks to @kentcdodds for his babel plugin and @threepointone for his suggestions and encouragement.

Made with ❤️ at Callstack

Linaria is an open source project and will always remain free to use. If you think it's cool, please star it 🌟. Callstack is a group of React and React Native geeks, contact us at [email protected] if you need any help with these or just want to say hi!

Like the project? ⚛️ Join the team who does amazing stuff for clients and drives React Native Open Source! 🔥

Sponsors

Contributors

Thanks goes to these wonderful people (emoji key):

This project follows the all-contributors specification. Contributions of any kind welcome!