Minimalist timestamp manipulator and formatter inspired by moment.js, providing time formatting, relative times (e.g., '5 minutes ago'), and UTC support in ~1.5KB gzipped. Stable version 1.1.12 (last released in 2021), low maintenance cadence. Differentiators: tiny footprint, same function signatures as moment.js for easy drop-in replacement, supports Node.js >=0.10.25 and browsers.
npm install little-timeNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates basic formatting, custom format tokens, relative time calculations, and UTC conversion.
Update code to use the new 1.0.0 API, especially for custom format tokens (check changelog).
Consider migrating to a more maintained library like dayjs or date-fns for long-term projects.
Use a bundler (Webpack, Rollup) or import via CDN (e.g., unpkg) noting it expects CommonJS.
Create a little-time.d.ts file or use @ts-ignore.
Call littleTime().format() instead of littleTime.format().
Use <script src="node_modules/little-time/index.js"></script> or bundle with a module loader.
Run 'npm install little-time' and verify package.json has the dependency.
No dependency data recorded yet.