Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including delatinise-cli with all npm packages installed. Try it out:

var delatiniseCli = require("delatinise-cli")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

delatinise-cli v0.1.16

A CLI tool to remove accents from text files.

delatinise-cli

Build Status

A CLI tool to remove accents from text files.

Install this globally and you'll have access to this tool anywhere on your system.

npm install -g delatinise-cli

To run it:

delatinise <path>

The path can be a file or directory. It will create a folder called delatinised and put all processed files in it.

Encoding

delatinise-cli tries to figure out the encoding of the files you want to treat. By default, it converts them to UTF-8, since after the conversion, we don't have accents any more.

Race Conditions

The conversion process, by its nature, is susceptible to race conditions. So it is possible that a file converted by delatinise-cli and put into the delatinised folder may have been deleted or modified by the time the execution is finished.

Note: To execute the accent removal task, we use the string.js latinise() method.

License

Licensed under the MIT license

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free