Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:

strategy:
matrix:
node-version: [20.x, 22.x]
node-version: [24.x]

steps:
- name: Checkout Repository
Expand Down
2 changes: 2 additions & 0 deletions dist/filesize.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ const EXPONENT = "exponent";
const ROUND = "round";

// Special Characters and Values
const E = "e";
const EMPTY = "";
const PERIOD = ".";
const S = "s";
Expand Down Expand Up @@ -198,6 +199,7 @@ function filesize (arg, {
// Setting optional precision
if (precision > 0) {
result[0] = result[0].toPrecision(precision);
result[0] = result[0].split(E)[0];
}

// Applying custom symbol
Expand Down
2 changes: 2 additions & 0 deletions dist/filesize.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ const EXPONENT = "exponent";
const ROUND = "round";

// Special Characters and Values
const E = "e";
const EMPTY = "";
const PERIOD = ".";
const S = "s";
Expand Down Expand Up @@ -194,6 +195,7 @@ function filesize (arg, {
// Setting optional precision
if (precision > 0) {
result[0] = result[0].toPrecision(precision);
result[0] = result[0].split(E)[0];
}

// Applying custom symbol
Expand Down
2 changes: 1 addition & 1 deletion dist/filesize.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/filesize.min.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions dist/filesize.umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ const EXPONENT = "exponent";
const ROUND = "round";

// Special Characters and Values
const E = "e";
const EMPTY = "";
const PERIOD = ".";
const S = "s";
Expand Down Expand Up @@ -194,6 +195,7 @@ function filesize (arg, {
// Setting optional precision
if (precision > 0) {
result[0] = result[0].toPrecision(precision);
result[0] = result[0].split(E)[0];
}

// Applying custom symbol
Expand Down
2 changes: 1 addition & 1 deletion dist/filesize.umd.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading