Licia is a zero-dependency JavaScript utility library providing over 400 micro modules for common daily development tasks. Unlike monolithic libraries, Licia's design philosophy focuses on individual, 'deadly simple' modules addressing problems across various domains, rather than strict categorization. It includes functionalities like a jQuery-style DOM module, a cookie library, robust `dateFormat`, a Promise polyfill, a micro event emitter, Ajax/fetch utilities, and common helpers found in libraries like Lodash/Underscore (e.g., `shuffle`, `unique`, `mkdir`). The current stable version is `1.48.0`, with a frequent release cadence, typically receiving minor updates every one to two weeks. For projects requiring ES module imports and optimized bundle sizes, the companion `licia-es` package is recommended, or users can leverage the online builder tool to create custom utility bundles.
npm install liciaVerified import paths — ran on the pinned version, not inferred.
Demonstrates importing utilities from both the primary CommonJS `licia` package and the ESM-focused `licia-es` package for various common tasks like UUID generation, type checking, iteration, and random number generation.
For CommonJS environments, use `const util = require('licia/utilName')`. For ES Modules, install `licia-es` and use `import util from 'licia-es/utilName'`.Review all usages of the `fileSize` utility after updating to `v1.46.0` or newer. Adjust your application's expectations or add unit conversions if you were relying on a different default output unit in earlier versions.
Update `licia` to `v1.41.1` or a newer version to ensure correct `randomId` generation, especially when requesting IDs longer than 21 characters.
For ESM, install `licia-es` and use `import uuid from 'licia-es/uuid'`. For CommonJS, use `const uuid = require('licia/uuid')`.Access the utility directly via its module path: `const uuid = require('licia/uuid')`.Run `npm install licia` or `yarn add licia` to add the package to your project.
No dependency data recorded yet.