Socket
Socket
Sign inDemoInstall

vn-str

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vn-str

Vietnamese string processing library.


Version published
Weekly downloads
64
decreased by-58.97%
Maintainers
1
Weekly downloads
 
Created
Source

What is this?

✂ Vietnamese string processing library.

Installation

Using npm:

$ npm install --save vn-str

Using yarn:

$ yarn add vn-str

Usage

1. Number To Text Vietnamese

Example:

var vnStr = require('vn-str');
var str = vnStr.numToText(54);
console.log(str); // => "năm mươi tư"

2. Remove Vietnamese Tones

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"

3. Remove Non-Alphanumeric Vietnamese Characters

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"

Contributing

Pull requests and stars are highly welcome.

For bugs and feature requests, please create an issue.

Keywords

FAQs

Package last updated on 09 Feb 2021

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc