Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dalisoft/typos-rs-npm

Source code spell checker
https://github.com/dalisoft/typos-rs-npm

cli code-quality rust spell-checker

Last synced: about 1 month ago
JSON representation

Source code spell checker

Awesome Lists containing this project

README

        

# typos-rs-npm

Source code spell checker

> **npm** integration for [typos-rs](https://github.com/crate-ci/typos) without any overhead so using full power of `typos-rs` CLI performance and feature

## Documentations

Look at [official documentation](https://github.com/crate-ci/typos)

## Motivation

> This package is specifically designed for direct Command-Line Interface (CLI) interaction or as an extension for Visual Studio Code.

### The functionality for npx or bunx is not included and is not anticipated to be incorporated in the future

## How this is fast?

This project leverages the [binary2npm](https://github.com/dalisoft/binary2npm) utility to streamline the acquisition of platform-specific binaries. The binaries provided by the author are highly optimized, surpassing the performance of the traditional **Node.js** `bin.js` approach. By invoking the binaries directly, we circumvent unnecessary overhead, resulting in significantly reduced startup times and enhanced efficiency.

## Installation

```sh
npm install dalisoft/typos-rs-npm -D
# or
yarn install dalisoft/typos-rs-npm -D
# or
bun add dalisoft/typos-rs-npm -D
```

## Environment variables

| Name | Description | Required |
| -------------- | ----------------------------------------------------------------------------------------------- | -------- |
| `GITHUB_TOKEN` | For [GitHub API](https://docs.github.com/rest/overview/resources-in-the-rest-api#rate-limiting) | Yes |

## Usage

See [Documentations](#documentations), requires [Environment variables](#environment-variables)

## License

Apache-2.0