feat(package): modernize package configuration, tooling, and documentation

This commit is contained in:
2026-05-01 22:21:02 +00:00
parent 6efab60a6f
commit 0b1c20386d
13 changed files with 7883 additions and 4282 deletions
+12
View File
@@ -0,0 +1,12 @@
import { expect, tap } from '@git.zone/tstest/tapbundle';
import * as smartformat from '../ts/index.js';
tap.test('should format bytes', async () => {
expect(smartformat.prettyBytes(1337)).toEqual('1.34 kB');
});
tap.test('should format milliseconds', async () => {
expect(smartformat.prettyMs(1337)).toEqual('1.3s');
});
export default tap.start();
-8
View File
@@ -1,8 +0,0 @@
import { expect, expectAsync, tap } from '@push.rocks/tapbundle';
import * as smartformat from '../ts/index.js'
tap.test('first test', async () => {
console.log(smartformat)
})
tap.start()