isogrammify
Advanced tools
Comparing version 1.0.2 to 1.1.0
{ | ||
"version": "1.0.2", | ||
"version": "1.1.0", | ||
"name": "isogrammify", | ||
@@ -36,3 +36,4 @@ "description": "Substitute a function's parameters by the letters of any given word (isogram)", | ||
"license": "Apache-2.0", | ||
"main": "index.js", | ||
"main": "lib/isogrammify.js", | ||
"bin": "lib/cli.js", | ||
"devDependencies": { | ||
@@ -39,0 +40,0 @@ "istanbul": "^0.4.2", |
@@ -21,3 +21,3 @@ # isogrammify | ||
## Usage | ||
## Usage in script | ||
@@ -31,3 +31,3 @@ isogrammify takes three parameters, | ||
### Examples | ||
### Examples (scripting) | ||
@@ -54,2 +54,23 @@ ```javascript | ||
## Usage from command line | ||
There is also a command-line interface, where isogrammify takes three arguments | ||
* `inputFile` The filename of the JS program to transform. The file must contain a valid JavaScript program as [descibed above](#usage-in-script). | ||
* `isogram` The string that the variables should be replaced by. Must be an _**isogram**_, that is a word without duplicate letters | ||
* `outputFile` (optional) A filename to write the output file to. Can be the same as `inputFile`. If omitted, the output is written to the console. | ||
### Examples (CLI) | ||
```plain | ||
$ npm install isogrammify | ||
… | ||
$ isogrammify foo.js HelLo | ||
!function(H,e,l,L,o){… | ||
$ isogrammify foo.js HelLo bar.js | ||
Wrote 4242 bytes to "bar.js". | ||
``` | ||
## Does it accept unicode characters? | ||
@@ -56,0 +77,0 @@ |
'use strict'; | ||
const assert = require('assert'); | ||
const rename = require('../'); | ||
const rename = require('../lib/isogrammify'); | ||
@@ -6,0 +6,0 @@ describe('isogrammify', () => { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26080
9
286
112
1