UNPKG
@e.fe/filesize
Version:
latest (1.0.2)
1.0.2
File size calculation tool
github.com/eleven-net-cn/filesize
eleven-net-cn/filesize
@e.fe/filesize
/
dist
/
bin.mjs
11 lines
(9 loc)
•
251 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
import
{ analyze }
from
"./chunk-5H5Q5MZR.mjs"
;
// src/bin.ts
import
process
from
"node:process"
;
import
color
from
"picocolors"
;
var
inputPath = process.
argv
[
2
] ||
"dist"
;
console
.
log
(color.
cyan
(
`Analyze path:
${inputPath}
`
));
analyze
(inputPath);