Useful utility collection with zero dependencies.
To check all current available functions, click here.
It is recommended to use the official bundler eustia to easily build a customized utility library for your project. But if you don't like it, just install licia and use it like any other npm utility modules such as lodash.
npm i licia --save
var uuid = require('licia/uuid'); console.log(uuid()); // -> 0e3b84af-f911-4a55-b78a-cedf6f0bd815
There is also an online tool to build a customized utility library, check here.
Submitting New Modules
Unable to find one suitable? Fork it on GitHub, add the module and submit a pull request.
Please check Eustia Documentation about how to write an eustia module.
- Must have full documentation about usage.
- Must have test.
- Must named with a-zA-Z0-9$ characters only.
- Must not be repeated. (e.g. leftPad is not allowed because there is already a module called lpad)
- Must within a file, less than 500 lines. (with comments and blank lines counted)
How to Add
- Fork and clone the repository.
npm i && npm linkto register licia command in your system.
- Create a js file named with the module name and its corresponding test file.
- Write the source code along with the documentaion and test. (documentation is the first block comment written in markdown)
licia test <module-name>run the test. (use
-bif test should run in a browser)
npm run covfor checking the test coverage. (istanbul is required)
- Update index.json and doc.md by running
npm run update.
Now it's time to submit a pull request:)