Albert-Corson / validate-utf8

Verify if a file/directory only contains UTF-8 encoded characters

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

validate-utf8

This is a NodeJS script that verifies is a file/directory only contains UTF-8 encoded characters

Usage

npm start <pathToValidate>

This will print the absolute paths of non UTF-8 file on the standard output for easy redirection. Path that refer to binary files or that can't be read will be printed on the standard error output with a short error message

.utf8-ignore - You can create a '.utf8-ignore' file in your working directory containing paths to ignore, these paths are relative to pwd but can also be absolute. The content of this file should be in UTF-8.

This script uses utf-8-validate and isbinaryfile node modules

About

Verify if a file/directory only contains UTF-8 encoded characters


Languages

Language:JavaScript 100.0%