celia
Note: A modern JavaScript utility library delivering modularity, performance, & extras.
Table of contents
Installation
Load celia
via classical <script>
tag
<script src="https://cdn.jsdelivr.net/npm/celia/celia.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/celia/date.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/celia/dom.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/celia/array.min.js"></script>
CommonJS style with npm
npm install celia --save
import celia from 'celia';
import celia from 'celia/celia.es';
import isDate from 'celia/es/isDate';
import append from 'celia/es/dom/append';
import add from 'celia/es/date/add';
import remove from 'celia/es/array/remove';
const celia = require('celia');
const { isDate } = celia;
const { append } = celia.dom;
const { add } = celia.date;
const { remove } = celia.array;
Usage
API
- camelCase
- each
- forEach
- forIn
- forNumber
- index
- isArrayLike
- isAsyncFunction
- isBoolean
- isDate
- isFunction
- isNil
- isNumber
- isObject
- isPromiseLike
- isString
- isUndefined
- sleep
- type
- array/append
- array/forEach
- array/grep
- array/inArray
- array/includes
- array/join
- array/makeArray
- array/map
- array/remove
- array/removeAt
- array/toArray
- date/add
- date/clone
- date/dayOfYear
- date/daysInMonth
- date/diff
- date/endOf
- date/format
- date/isAfter
- date/isBefore
- date/isBetween
- date/isLeapYear
- date/isSame
- date/isSameOrAfter
- date/isSameOrBefore
- date/isValid
- date/parse
- date/startOf
- date/subtract
- dom/addClass
- dom/after
- dom/append
- dom/attr
- dom/before
- dom/children
- dom/css
- dom/data
- dom/empty
- dom/hasClass
- dom/hide
- dom/html
- dom/next
- dom/nextAll
- dom/off
- dom/on
- dom/parent
- dom/prepend
- dom/prev
- dom/prevAll
- dom/prop
- dom/remove
- dom/removeAttr
- dom/removeClass
- dom/removeProp
- dom/show
- dom/wrap
Release History