
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
dwing-common
Advanced tools
npm install dwing-common --save
ES7:
import {md5} from 'dwing-common';
console.log(md5('1'));
getDefer
defer对象
获取UNIX标准时间戳
UNIX标准时间戳
INT2IP
| Name | Type | Description |
|---|---|---|
| `num` | int |
IP数值 |
IP地址,如1.2.3.4
IP2INT
| Name | Type | Description |
|---|---|---|
| `ip` | str |
IP地址,如1.2.3.4 |
IP数值
判断是否为空
| Name | Type | Description |
|---|---|---|
| `obj` | * |
任意 |
真为空,假为非空
MD5
| Name | Type | Description |
|---|---|---|
| `str` | string |
随机字符串
| Name | Type | Description |
|---|---|---|
| `len` | int |
字符串长度 |
SHA1
| Name | Type | Description |
|---|---|---|
| `str` | string |
SHA1
| Name | Type | Description |
|---|---|---|
| `str` | string |
生成GUID
GUID
validPassword
| Name | Type | Description |
|---|---|---|
| `password` | string |
输入密码 |
isValid
FAQs
Node.js 通用类
We found that dwing-common demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.