JavaScript/TypeScript helper library.
- Bank Helpers
- Color Helpers
- Date Helpers
- Geo Helpers
- Number Helpers
- Password Helpers
- Plate Helpers
- State Helpers
- String Helpers
- Time Helpers
npm install --save @webilix/helper-library
import { Helper } from '@webilix/helper-library';
Helper.NUMBER.format(100000);
// ۱۰۰,۰۰۰
Helper.NUMBER.format(100000, 'EN');
// 100,000
git clone https://github.com/webilix/helper-library.git
npm install
npm test
Helper.RE.
- DATE
- DOMAIN
- HEX_COLOR
- HSL_COLOR
- IP4
- JSON_DATE
- MOBILE
- NUMERIC
- PASSWORD
- RGB_COLOR
- TIME
- URL
- USERNAME
Helper.RE.{TYPE}.
- get
- find
- replace
- verify
Helper.IS.
- array
- boolean
- date
- empty
- null
- number
- object
- plate
- string
Helper.IS.ARRAY.
- in
- unique
Helper.IS.STRING.
- bankCard
- color
- date
- domain
- hexColor
- ip4
- jsonDate
- mobile
- nationalCode
- number
- numeric
- objectId
- time
- url
Helper.BANK.
- findCard
- getList
Helper.COLOR.
- getFormat
- getGradient
- getShade
- toHEX
- toHSL
- toRGB
Helper.DATE.
- getDays
- getMonths
- getDuration
- getSeconds
- jalaliPeriod
- toString
Helper.GEO.
- location
- distance
Helper.NUMBER.
- format
- getTitle
- toEN
- toFA
- toFileSize
Helper.PASSWORD.
- generate
- getStrength
Helper.PLATE.
- letters
- getPlate
- toString
Helper.STATE.
- states
- cities
- findOneById
- findByTitle
- findOneByTitle
- CITY.findByState
- CITY.findOneById
- CITY.findByTitle
- CITY.findOneByTitle
Helper.STRING.
- changeNumbers
- escapeHTML
- getBankCardView
- getFileName
- getMobileView
- getRandom
- hasPersian
- toFileSize
Helper.TIME.
- getDuration
- toString
Helper.UNIT.
- AREA
- LENGTH
- VOLUME
- WEIGHT
Helper.UNIT.{TYPE}.
- list
- options
- getTitle
- getRate
- convert