@drunk/recode

Re-encodes files matching a glob pattern

Stats

StarsIssuesVersionUpdatedCreatedSize
@drunk/recode
000.1.33 years ago3 years agoMinified + gzip package size for @drunk/recode in KB

Readme

Recode

Changes file encoding

Example (CLI)

File structure:

<root dir>
│   some_file.txt [UTF-8]
│   data.dat [UTF-8]
│
└── Charlies Folder
    |   .dot-file.txt [UTF-8]
    │   todo_list.csv [UTF-8]
    │   charlie.txt [UTF-8]
    │
    └── Some Folder
            childs.csv [UTF-8]
            sisters.csv [UTF-8]
            wife.txt [UTF-8]
            sexy.png

Command Line:** (Executed in <root dir>)

recode --glob **/*.txt --encoding windows-1252 --cwd ./Charlies_Folder --dot-files

Result:

<root dir>
│   some_file.txt [UTF-8]
│   data.dat [UTF-8]
│
└── Charlies_Folder
    |   .dot-file.txt [Windows-1252]
    │   todo_list.csv [UTF-8]
    │   charlie.txt [Windows-1252]
    │
    └── Some_Folder
            childs.csv [UTF-8]
            sisters.csv [UTF-8]
            wife.txt [Windows-1252]
            sexy.png

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.