Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/piecioshka/encoding-checker
🛠Tool to investigate files with different encoding than passed.
https://github.com/piecioshka/encoding-checker
Last synced: about 2 months ago
JSON representation
🛠Tool to investigate files with different encoding than passed.
- Host: GitHub
- URL: https://github.com/piecioshka/encoding-checker
- Owner: piecioshka
- License: mit
- Created: 2015-03-12T01:05:18.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-10-11T19:49:05.000Z (12 months ago)
- Last Synced: 2024-04-25T05:21:26.991Z (5 months ago)
- Language: JavaScript
- Homepage:
- Size: 224 KB
- Stars: 5
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# encoding-checker
[![npm version](https://badge.fury.io/js/encoding-checker.svg)](https://badge.fury.io/js/encoding-checker)
[![downloads count](https://img.shields.io/npm/dt/encoding-checker.svg)](https://www.npmjs.com/~piecioshka)
[![travis-ci](https://api.travis-ci.com/piecioshka/encoding-checker.svg?branch=master)](https://app.travis-ci.com/github/piecioshka/encoding-checker)🛠Tool to investigate files with different encoding than passed
## Install
```bash
npm install -g encoding-checker
```## Usage
```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
### :arrow_right: Use case: All files in the current directory
```bash
> encoding-checker[ascii] .gitignore
[ascii] .travis.yml
[ascii] index.js
[ascii] package-lock.json
[ascii] package.json
[ascii] README.md
[ascii] wallaby.js
```### :arrow_right: Use case: All *.md files in current directory
```bash
encoding-checker -p "*.md"
```### :arrow_right: Use case: Recursive directory
```bash
encoding-checker -p "**"
encoding-checker -p "../**"
```### :arrow_right: Use case: Ignore all files with encoding "ascii"
```bash
encoding-checker -i "ascii"
```### :arrow_right: Use case: Append number of results
```bash
encoding-checker -v
```## Supported Operating Systems (tested via Travis)
* Linux
* macOS _(there is a problem on Travis, but it works on my local machine)_
* Microsoft Windows## License
[The MIT License](http://piecioshka.mit-license.org) @ 2015