https://github.com/piecioshka/encoding-checker
🛠 Tool to investigate files with different encoding than passed
https://github.com/piecioshka/encoding-checker
cli
Last synced: 23 days ago
JSON representation
🛠 Tool to investigate files with different encoding than passed
- Host: GitHub
- URL: https://github.com/piecioshka/encoding-checker
- Owner: piecioshka
- Created: 2015-03-12T01:05:18.000Z (over 11 years ago)
- Default Branch: main
- Last Pushed: 2026-06-09T12:05:12.000Z (about 1 month ago)
- Last Synced: 2026-06-09T14:06:40.694Z (about 1 month ago)
- Topics: cli
- Language: JavaScript
- Homepage:
- Size: 347 KB
- Stars: 5
- Watchers: 2
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# encoding-checker
[](#cli)
[](https://www.npmjs.com/package/encoding-checker)
[](https://badge.fury.io/js/encoding-checker)
[](https://www.npmjs.com/package/encoding-checker)
[](https://packagephobia.com/result?p=encoding-checker)
[](https://piecioshka.mit-license.org)
[](https://github.com/piecioshka/encoding-checker/actions/workflows/testing.yml)
🔨 Tool to investigate files with different encoding than passed
## Usage
Installation:
```bash
npm install -g encoding-checker
```
```text
Usage: encoding-checker [-p pattern] [-i encoding] [-v]
Options:
--help Show help [boolean]
--version Show version number [boolean]
--pattern, -p, -d [default: "*"]
--ignore-encoding, -i [default: ""]
--verbose, -v [default: false]
```
## Examples
### ➡️ Use case: All files in the current directory
```bash
> encoding-checker
[ascii] .gitignore
[ascii] index.js
[ascii] package-lock.json
[ascii] package.json
[ascii] README.md
[ascii] wallaby.js
```
### ➡️ Use case: All *.md files in current directory
```bash
encoding-checker -p "*.md"
```
### ➡️ Use case: Recursive directory
```bash
encoding-checker -p "**"
encoding-checker -p "../**"
```
### ➡️ Use case: Ignore all files with encoding "ascii"
```bash
encoding-checker -i "ascii"
```
### ➡️ Use case: Append number of results
```bash
encoding-checker -v
```
## License
[The MIT License](https://piecioshka.mit-license.org) @ 2015