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

emifier

v1.1.4

Published

A tool that automatically converts px to em measurements in CSS, enhancing your project's accessibility, responsiveness, and scalability.

Downloads

8

Readme

Emifier

Description

Emifier is a command-line tool that automatically converts pixel (px) measurements to em units in CSS files. This enhances the accessibility, responsiveness, and scalability of your web projects.

Version

1.1.4

Installation

Install Emifier via npm:

npm install -g emifier

This will install Emifier globally on your system, making it available in your command line.

Usage

To use Emifier, run the emify command followed by optional arguments for base pixel size and the path to your CSS file or directory.

Syntax

emify [baseSize] [path]
  • baseSize: The base font size in pixels (default: 16px).
  • path: The path to the CSS file or directory. Defaults to the current working directory.

Examples

Convert all .css files in the current directory:

emify

Convert a specific CSS file with a custom base size:

emify 18 path/to/your/file.css

Convert all .css files in a specific directory:

emify 16 path/to/your/directory

Adding Emifier to PATH

Emifier should be automatically added to your system's PATH when installed globally via npm. If you encounter an issue where emifier is not recognized as a command, you may need to manually add npm's global installation directory to your PATH.

Finding npm's Global Installation Directory

First, find out where npm installs global packages on your system:

npm prefix -g

This command will return the path to npm's global installation directory.

Updating PATH Environment Variable

For Windows:

  1. Search for "Environment Variables" in your Windows search and select "Edit the system environment variables."
  2. In the System Properties window, click on "Environment Variables."
  3. Under "System variables," find and select the Path variable, then click "Edit."
  4. Click "New" and add the path you obtained from npm prefix -g.
  5. Click "OK" to close all dialogs and apply the changes.

For macOS/Linux:

Add the following line to your .bashrc, .zshrc, or equivalent shell configuration file:

export PATH="$(npm prefix -g)/bin:$PATH"

Then, refresh your terminal or source the configuration file:

source ~/.bashrc
# or
source ~/.zshrc

After these steps, you should be able to run emifier from your terminal.

Dependencies

  • yargs: ^17.7.2

Author

Farouk Charkas [email protected]

License

MIT License