You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@zuoque/random-coding

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zuoque/random-coding

提供随机的身份证号、统一社会信用代码、组织机构代码、手机号、银行卡号生成方法

0.0.10
latest
Source
npmnpm
Version published
Weekly downloads
3
Maintainers
1
Weekly downloads
 
Created
Source

Random-coding

简介

提供随机的身份证号、统一社会信用代码、组织机构代码、手机号、银行卡号生成方法的工具库。主要是为了用于开发环境,创建mock数据。

安装

npm i -D @zuoque/random-coding

使用

方式一:全局引入

import { idNoUtils } from "@zuoque/random-coding"

// 生成身份证号
console.log(idNoUtils.generate())

方式二:单独引入

import { generate } from "@zuoque/random-coding/id-no"
// 生成身份证号
console.log(generate())

详细文档

对每个模块提供的api详细说明

@zuoque/random-coding详细文档

Keywords

typescript

FAQs

Package last updated on 09 Jul 2024

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