1 | # non-lethal plug.dj reverse engineering
|
2 |
|
3 | A messy script that spews as-readable-as-computerly-possible versions of plug.dj
|
4 | modules into a directory.
|
5 |
|
6 | ## usage
|
7 |
|
8 | The easiest way to use replug is with [npx](https://npmjs.com/package/npx):
|
9 |
|
10 | 1. `npx replug`
|
11 |
|
12 | Alternatively, install the CLI globally (you'll have to update manually from time to time):
|
13 |
|
14 | 1. `npm install -g replug`
|
15 | 1. `replug`
|
16 |
|
17 | Or run it from source:
|
18 |
|
19 | 1. `git clone https://github.com/ExtPlug/replug.git`
|
20 | 1. `cd replug`
|
21 | 1. `npm install`
|
22 | 1. `./index.js`
|
23 |
|
24 | There are some command-line options:
|
25 |
|
26 | -h, --help output usage information
|
27 | -V, --version output the version number
|
28 | -m, --mapping [file] File containing the mapping JSON (optional, it's auto-generated if no file is given)
|
29 | -o, --out [dir] Output directory [out/]
|
30 | -v, --verbose Use verbose output instead of bullet list
|
31 |
|
32 | ### examples
|
33 |
|
34 | Dump output in `out/`:
|
35 |
|
36 | ```
|
37 | npx replug
|
38 | ```
|
39 |
|
40 | Output in `output-directory/`:
|
41 |
|
42 | ```
|
43 | npx replug --out output-directory
|
44 | ```
|
45 |
|
46 | ## Licence
|
47 |
|
48 | [MIT](./LICENSE)
|