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

common-typo-detector

v0.1.0

Published

Simple CLI in Node to look for common typos.

Downloads

4

Readme

common-typo-detector

MIT licensed Maintenance

CLI tool to detect common misspellings in text/code files. Uses a blacklist of common typos for detection (the opposite way a normal spell checker would) so that it can work with minimum false positives when analyzing code. Therefore this tool merely tries to detect some really obvious mistakes.

Comes with some preset lists of common misspellings, but allows specifying an external file as a source.

Install

Will be on NPM soon hopefully. :bowtie:

Usage

common-typo-detector <files...>

Use --preset pt to use the Portuguese preset.

Use --typos <json file> to specify an external list of typos. The english preset is used by default.

Both --preset and --typos can be used in the same command to merge both lists.

Development

js-semistandard-style

This tool was created to solve a problem I was personally having, but I'm open to ideas and pull requests.

The current presets were initially taken from Wikipedia, but will probably be shorten in the future since the idea is to avoid false positives as much as possible even when analyzing code.

Code of Conduct

While I strongly believe in freedom of expression and in some circumstances have called myself a first amendment absolutist, this project will not be the forum for anything that violates the Contributor Code of Conduct document that is included. This is a safe place for working, if you want to express yourself in a way that offends people, save it for when we have a beer.

Therefore note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

TODO

  • add parameter to only check lines that are comments (start with //,*,#, etc)

  • if the output line is too long, shorten it

  • Organize functions into a lib.js file

  • unit tests

  • implement excludes patterns for files as a CLI parameter

License

ISC

References

https://chromium.googlesource.com/android_tools/+/master/sdk/tools/support

https://en.wikipedia.org/wiki/Wikipedia:Lists_of_common_misspellings/For_machines

https://pt.wikipedia.org/wiki/Wikip%C3%A9dia:Lista_de_erros_comuns/M%C3%A1quinas