1.0.0 • Published 4 years ago

is-tbpass v1.0.0

Weekly downloads
1
License
ISC
Repository
-
Last release
4 years ago

is-tbpass

Verify whether the text contains Taobao passphrase, or a Taobao passphrase like message key

初步验证文本是否包含淘口令,或类淘口令信息密钥

Installing

Using npm:

$ npm install is-tbpass

Using yarn:

$ yarn add is-tbpass

Example

note: CommonJS usage

const { isTBPass } = require('is-tbpass')

// true
console.log(isTBPass("裤装$2EiVYhmJlSc$2019新款夏"))
const { getTBPass } = require('is-tbpass')

// ¢SftOYhmrepl¢
console.log(getTBPass("椱ァ製这段ァ描述¢SftOYhmrepl¢后到?◇綯℡寳"))
// $2EiVYhmJlSc$,₳SftOYhmrepl₳
console.log(getTBPass("裤装$2EiVYhmJlSc$2019新款夏₳SftOYhmrepl₳时尚"))