Security News
The Push to Ban Ransom Payments Is Gaining Momentum
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
vn-str
Advanced tools
Readme
Read this in other languages: Tiếng Việt.
✂ Vietnamese string processing library.
Using npm:
$ npm install --save vn-str
Using yarn:
$ yarn add vn-str
Using CDN:
<!-- When using CDN you can call all function in vnStr variable. -->
<script src="https://tronghieu60s.github.io/vn-str/dist/index.js"></script>
Example:
var vnStr = require("vn-str");
var str = vnStr.numToText(54);
console.log(str); // => "năm mươi tư"
Example:
var vnStr = require("vn-str");
var str = vnStr.rmVnTones("trường sa hoàng sa là của việt nam");
console.log(str); // => "truong sa hoang sa la cua viet nam"
Example:
var vnStr = require("vn-str");
var str = vnStr.rmNonAlphanumeric("Anh ta đã sưu tập nhiều các đồ vật kỳ lạ: trứng chim, tem, nắp chai, dây và cúc áo.");
console.log(str); // => "Anh ta đã sưu tập nhiều các đồ vật kỳ lạ trứng chim tem nắp chai dây và cúc áo"
Example:
var vnStr = require("vn-str");
var str = "Trường Sa, Hoàng Sa là của Việt Nam";
var strTelex = vnStr.strToTelex(str);
console.log(strTelex); // => "Truwowfng Sa, Hoafng Sa laf cura Vieejt Nam"
var strVNI = vnStr.strToVNI(str);
console.log(strVNI); // => "Tru7o72ng Sa, Hoa2ng Sa la2 cu3a Vie65t Nam"
Example:
var vnStr = require("vn-str");
var isVietnamesePhone = vnStr.isVietnamesePhoneNumber("+84957507468");
console.log(isVietnamesePhone); // => true
Example:
var vnStr = require("vn-str");
var isVietnameseTones = vnStr.isVietnameseTones("chào em, anh đứng đây từ chiều");
console.log(isVietnameseTones); // => true
Pull requests and stars are highly welcome.
For bugs and feature requests, please create an issue.
FAQs
Vietnamese string processing library.
We found that vn-str demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
Application Security
New SEC disclosure rules aim to enforce timely cyber incident reporting, but fear of job loss and inadequate resources lead to significant underreporting.
Security News
The Python Software Foundation has secured a 5-year sponsorship from Fastly that supports PSF's activities and events, most notably the security and reliability of the Python Package Index (PyPI).