Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@fanpian/js-handle

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fanpian/js-handle

js-handle的操作库

  • 1.0.16
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

js-handle

发布命令

npm publish --access=public --registry http://registry.npmjs.org

通用工具类

将数组数据转成 tree 结构数据

因为该会在对象上添加数据,所以请务必在操作前将数据进行深度拷贝

until.arrayToTree

将 base64 转成 Unit8 数组

until.base64ToUint8Array

将 Unit8 数组转成 Base64 字符串

until.byteArrayToBase64

验证 validate

验证手机号码

validate.phone

验证银行卡

validate.cardNo

固定电话

validate.fixedPhone

验证身份证

validate.idCard

验证电子邮箱

validate.email

验证 IP 地址

0:仅验证 IPV4 1:仅验证 IPV6 2:IPV4 或 IPV6

validate.ip

验证 MAC 地址

validate.mac

计算曲线上的坐标点

calcCurvePoint

计算贝塞尔曲线上的点

getBasisPoint

FAQs

Package last updated on 14 Dec 2020

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