Parse directory, find files with bom and remove bom from these files
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example
.eslintrc.json
.gitignore
README.md
index.js
package-lock.json
package.json

README.md

bom-bom

Parse directory, find files with bom and remove bom from these files

Install

npm i

Use

npm run bom_bom

Get files from target dir and rewrite 'em w/o BOM. Hooray.

Check for BOM

To be ensured that final file/files doesn't contain BOM, you can use eslint:

npm run lint

If you have BOM in your files, you'll get following error:

BOM Eslint error

Play

You can generate more files with BOM in case you have fixed previous files. Simply run:

npm run gen_bom