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

repo-check

v1.39.0

Published

Repo cleaning made easy

Downloads

1,168

Readme

Repo Checker

Project license Code Climate maintainability npm version npm monthly downloads

Package Quality Publish size Install size

logo

Usage

Choose your favorite method :

  1. Via npx : npx repo-check
  2. Via npm locally : pnpm install repo-check then run npx repo-check or use it in your package.json scripts
  3. Via local installation : clone this repository, cd into the folder and use pnpm start, pnpm start --target=../my-other-project for single run or pnpm dev, pnpm dev --target=../my-other-project

Pro tip : init repo-checker before fixing files.

Parameters

target

--target=path/to/folder tells repo-checker which directory it should scan. If no target is specified, repo-checker will scan current directory. Target can be a relative or absolute path, can contain one project or more.

fix

--fix kindly ask repo-checker to try to create missing files or update problematic ones. For example, repo-checker will check for a README.md, if it does not exists, the file will be created and filled with data accordingly to the README.md template (templates/README.md). Repo-checker will try to grab as much info as possible from the project folder to create this file. If it's not enough, you'll be prompt to init. If you want to fix already existing files, use --force to overwrite it.

init

--init ask repo-checker to initialize a data config file in the current directory. If file already exists, use --force to overwrite it.

quiet

--quiet repo-checker will works silently without output-ing to console, will only output to log file.

Todo

  • [ ] if website : check static folder : should have "_headers" & "favicon.ico" and "manifest.json" files inside
  • [ ] compute build/dist/folder/public size for maxSize compliance
  • [ ] check rel="noopener" or rel="noreferrer" to any <a external links to improve performance and prevent security vulnerabilities
  • [ ] check width and height attributes to any <img or <video to ensures that the browser can allocate the correct amount of space in the document
  • [ ] add nbFixes to the report
  • [ ] check last tag, suggest to tag if last one is old
  • [ ] extends unit tests to src/files (remove c8 ignore start temporary exclusions)
  • [ ] prepare a json schema for .repo-checker.json
  • [ ] try to avoid using class in this project and remove eslint-disable-next-line no-restricted-syntax
  • [ ] check if lint/performance/useTopLevelRegex worth fixing everywhere

Thanks

  • Arg : un-opinionated, no-frills CLI argument parser
  • Dependency-cruiser : handy tool to validate and visualize dependencies
  • Esbuild : an extremely fast JavaScript bundler and minifier
  • Eslint : super tool to find & fix problems
  • Github : for all their great work year after year, pushing OSS forward
  • Repo-checker : eslint cover /src code and this tool the rest ^^
  • Shields.io : for the nice badges on top of this readme
  • Shuutils : collection of pure JS utils
  • V8 : simple & effective cli for code coverage
  • Vitest : super fast vite-native testing framework
  • Watchlist : recursively watch a list of directories & run a command on any file system

Stargazers over time

Stargazers over time

Page views

Free Website Counter