@drunk/recode

0.1.3 • Public • Published

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

Package Sidebar

Install

npm i @drunk/recode

Weekly Downloads

1

Version

0.1.3

License

ISC

Unpacked Size

6.7 kB

Total Files

4

Last publish

Collaborators

  • drunkenponey