0.3.4 • Published 5 years ago
vikit v0.3.4
vikit - Vietnamese Kit
Vikit is a collection of funtions that will solve common problem in Vietnamese
How to use
Install the package:
npm install --save vikit
API
noDiacriticDash(str)
Remove Vietnamese diacritics from the string and make a dashed string without diacritics.
const {noDiacriticDash} = require('vikit')
const str = 'Vì Đức Chúa Trời yêu thương thế gian'
const result = noDiacriticDas(str)
console.log(resut) // 'vi-duc-chua-troi-yeu-thuong-the-gian'
changePhonePrefix(phoneNumber)
Change phone number with the new prefix. Chuyển đổi đầu số các nhà mạng từ 11 số sang 10 số.
const {changePhonePrefix} = require('vikit')
const oldPhone = '01222010203'
const newPhone = changePhonePrefix(oldPhone)
console.log(newPhone) // 0772010203
0.3.4
5 years ago
0.3.3
5 years ago
0.3.2
5 years ago
0.3.1
5 years ago
0.2.0
6 years ago
0.2.0-alpha.885442a9
6 years ago
0.2.0-alpha.b6ca763f
6 years ago
0.1.1
6 years ago