Skip to content

🛠 Tool to investigate files with different encoding than passed

Notifications You must be signed in to change notification settings

piecioshka/encoding-checker

Repository files navigation

encoding-checker

cli-available node version npm version downloads count size license github-ci

🔨 Tool to investigate files with different encoding than passed

Usage

Installation:

npm install -g encoding-checker
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

> 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

encoding-checker -p "*.md"

➡️ Use case: Recursive directory

encoding-checker -p "**"
encoding-checker -p "../**"

➡️ Use case: Ignore all files with encoding "ascii"

encoding-checker -i "ascii"

➡️ Use case: Append number of results

encoding-checker -v

License

The MIT License @ 2015