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

project-firefly

v1.3.4

Published

A CSS Support Validator.

Downloads

17

Readme

Project Firefly

npm version Codacy Badge XO code style

A CSS Support Validator.

Installation

You can install Project Firefly either through cloning with git or by using npm (the recommended way):

npm install -g project-firefly

Usage

firefly <options>

For CLI options, use the -h (or --help) argument:

firefly -h
Usage: firefly or
       firefly [-i | --input <path>] [-e | --export <path>] [-w | --watch]
       [-j | --json] [-h | --help] [-v | --version]

Options:
   -i, --input <path>    Specify the input file path.
   -e, --export <path>   Export the generated report in JSON format.

Flags:
   -w, --watch           Rerun firefly on file change.
   -j, --json            Output firefly's report in JSON format.
   -h, --help            Output usage information.
   -v, --version         Output the version number.

Configuration File

Use a JavaScript, JSON or YAML file to specify configuration information for an entire directory and all of its subdirectories. Firefly supports the following formats:

  • a firefly property in package.json
  • a .fireflyrc file in JSON or YAML format
  • a .fireflyrc.json file
  • a .fireflyrc.yaml, .fireflyrc.yml, or .fireflyrc.js file
  • a firefly.config.js file exporting a JS object

Options

mode Type: string Default: 'default' Modes:

  • default - Validate the project and output its report.
  • export - Export the generated report in JSON format.
  • json - Output Firefly's report in JSON format.
  • watch - Rerun Firefly on file change.

entry Type: string or null Default: null

Specify the input file path. null will validate the entire project.

export Type: object Default: {filename: 'report.json', path: './'} Properties: filename and path

Specify the export path and filename using the relative syntax.

browserslist Type: array Default: ['defaults']

An array containing the project's browserslist.

disableFeedbackSystem Type: boolean Default: false

Whether Firefly should display the alternatives/feedback or not.

exclude Type: array Default: ['**/node_modules']

An array containing files and directories which Firefly should ignore. E.g. ['**/dist, **/node_modules']

ignoreAtSupports Type: boolean Default: false

Whether Firefly should ignore @supports declarations or not.

ignoreVendorPrefixes Type: boolean Default: false

Whether Firefly should ignore venter prefixes or not. E.g. -webkit-**, -moz-**, etc.

Output

~/Projects/usability-test
❯ firefly
 FAIL  bootstrap.css
  At-Rules (1)
    ✘ [8224:3] safari 12 does not support 'page'.
  Properties (16)
    ✘ [273:3] edge 17 & ie 11 does not support 'resize'.
    ✘ [300:3] ie 11 does not support 'outline-offset'.
    ✘ [633:3] ie 11 does not support 'grid-template-columns'.
    ✘ [634:3] ie 11 does not support 'grid-template-rows'.
    ✘ [3395:3] ie 11 does not support 'appearance'.
    ✘ [3493:3] ie 11 does not support 'appearance'.
    ✘ [3509:3] ie 11 does not support 'appearance'.
    ✘ [3534:3] ie 11 does not support 'appearance'.
    ✘ [3558:3] ie 11 does not support 'appearance'.
    ✘ [4114:3] ie 11 does not support 'object-fit'.
    ✘ [4244:5] firefox 65, safari_ios 11.3 & safari 12 does not support 'orphans'.
    ✘ [4245:5] firefox 65, safari_ios 11.3 & safari 12 does not support 'widows'.
    ✘ [5042:3] firefox 65 does not support 'line-break'.
    ✘ [5152:3] firefox 65 does not support 'line-break'.
    ✘ [8217:5] firefox 65, safari_ios 11.3 & safari 12 does not support 'orphans'.
    ✘ [8218:5] firefox 65, safari_ios 11.3 & safari 12 does not support 'widows'.
  Media Features (7)
    ✘ [1735:19] chrome 72, edge 17 & others does not support 'prefers-reduced-motion'.
    ✘ [2222:19] chrome 72, edge 17 & others does not support 'prefers-reduced-motion'.
    ✘ [2814:19] chrome 72, edge 17 & others does not support 'prefers-reduced-motion'.
    ✘ [2831:19] chrome 72, edge 17 & others does not support 'prefers-reduced-motion'.
    ✘ [4645:19] chrome 72, edge 17 & others does not support 'prefers-reduced-motion'.
    ✘ [4911:19] chrome 72, edge 17 & others does not support 'prefers-reduced-motion'.
    ✘ [5327:19] chrome 72, edge 17 & others does not support 'prefers-reduced-motion'.