【文件属性】:
文件名称:rut.js:简单而小型的库,用于验证和格式化RUT
文件大小:5KB
文件格式:ZIP
更新时间:2021-05-04 19:30:22
node browser rut chile validar
rut.js :Chile:
简单而小型的库,用于验证和格式化RUT。 可在Node.js和浏览器(Webpack,Browserify等)中使用
在生产中用于处理超过1300万智利人
// AMD
const { validate , clean , format , getCheckDigit } = require ( 'rut.js' )
// ES2015 Modules
import { validate , clean , format , getCheckDigit } from 'rut.js'
// true
validate ( '18.972.631-7' )
validate ( '18972631-7' )
validate ( '189726317' )
validate ( '9.068.826-k' )
validate ( '9068826-k' )
va
【文件预览】:
rut.js-master
----.gitignore(42B)
----.github()
--------workflows()
----package.json(584B)
----readme.md(1KB)
----index.js(2KB)
----index.d.ts(192B)
----test.js(2KB)
----license(1KB)