1.2.3 • Published 8 years ago

stupid-dictionary v1.2.3

Weekly downloads
2
License
Fair
Repository
github
Last release
8 years ago

stupid-dictionary

This is a word replacer. It reads the words to replace from a dictionary, replaces the words in the file you want to, and then outputs the results to stdout.

The dictionary must be a valid json file.

You must provide a file from which the contents will be read with --to-replace [path]. There is also --dictionary if you don't want to use the default ./dictionary.json path.

Usage

$ npm install -g stupid-dictionary
(...)
$ ls
dictionary.json nasa.txt
$ cat dictionary.json
{ "google glass": "virtual boy", "space": "spaaace" }
$ cat nasa.txt
NASA is looking into using Google Glass to assist astrounatus working in space.
$ stupid-dictionary --to-replace nasa.txt
NASA is looking into using Virtual Boy to assist astrounauts working in spaaace.
1.2.3

8 years ago

1.2.2

9 years ago

1.2.1

10 years ago

1.2.0

10 years ago

1.1.0

10 years ago

1.0.0

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.0

10 years ago