-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More instructions + docker container link
- Loading branch information
1 parent
173383c
commit 73cf6a0
Showing
7 changed files
with
93 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { mask, unmask } from './src/modules/mask'; | ||
|
||
const command = process.argv[2]; | ||
const args = process.argv.slice(3); | ||
|
||
const f = ({ | ||
|
||
"mask": (path) => { | ||
|
||
if (typeof path !== 'string') { | ||
console.log('Please provide an argument to mask'); | ||
return; | ||
} | ||
console.log(`Masking ${path}...`); | ||
console.log('Masked URL:', mask(path)); | ||
}, | ||
|
||
"unmask": (path) => { | ||
if (typeof path !== 'string') { | ||
console.log('Please provide an argument to unmask'); | ||
return; | ||
} | ||
console.log('Unmasked URL:', unmask(path)); | ||
}, | ||
|
||
})[command] || (() => console.log(`No script ${command}!`)); | ||
|
||
f(...args); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters