UNPKG
@rnm/tscx
Version:
latest (0.2.0)
0.2.0
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
0.0.0
A tsc wrapper with many convenient features.
github.com/rnmjs/tscx
rnmjs/tscx
@rnm/tscx
/
src
/
cmd
/
remove.cli.mts
11 lines
(8 loc)
•
217 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env node
import
process
from
"node:process"
;
import
{ remove }
from
"./remove.ts"
;
const
filepath = process.
argv
[
2
];
if
(!filepath) {
throw
new
Error
(
"File path is required"
); }
await
remove
(filepath);