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

standardize-js

v0.2.9

Published

[![npm](https://img.shields.io/npm/v/standardize-js)](https://www.npmjs.com/package/standardize-js) [![Build Status](https://travis-ci.com/Gaspacchio/standardize-js.svg?branch=master)](https://travis-ci.com/Gaspacchio/standardize-js) [![codebeat badge](ht

Downloads

3

Readme

standardize-js

npm Build Status codebeat badge codecov

standardize-js is a tool to help you set-up linting through eslint and prettier on any javascript project. It also creates a pre-commit hook to ensure that every file committed is correctly formatted.

Table of contents

  1. What it can do
  2. How to use it
    1. Quick start
    2. Installation procedure
    3. Usage

Features

| Status | Feature | Issue | | ------ | ----------------------------------------------------------------------------------------------------------------------- | ----- | | ✔️ | set up a linter for JavaScript and Typescript following a popular style guide like Airbnb Javascript, Google, JQuery... | | | ✔️ | set up prettier to work with this style guide | | | ✔️ | install the necessary dev dependencies | | | ✔️ | provide you with the configuration files you need to create | | | ✔️ | write the files to the disk | |

How to use it

npx standardize-js

Quick start

If your project do not have yet a package.json, you should run :

npm init

You should also make sure that your project is tracked using git. If that's not the case, initialize the repo using:

git init

Then, issue the following commands:

npm i -g standardize-js
cd my/project/root-folder
standardize-js

Installation procedure

Standardize-js has no dependencies : everything is packed right into it!

Install it globally using:

NPM

npm install -g standardize-js

Yarn

yarn global add standardize-js

Usage

Warning ! Make sure to be in your root folder before issuing any command. Standardize-js won't break your code but it may install a bunch of unnecessary dependencies and files.

You should then be able to use it by simply typing in the command line:

standardize-js

Just answer the questions and you're all set up!