New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

bge--tools

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bge--tools

```js npm install bge-tools ```

latest
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

安装

npm install bge-tools

导入

const m = require('./index')

格式化日期

function dateFormate(dataStr){
    const dt = new Date(dataStr);
    const y = dt.getFullYear();
    const m = addZero(dt.getMonth() + 1)
    const d = addZero(dt.getDate());
    const hh = addZero(dt.getHours());
    const mm = addZero(dt.getMinutes());
    const ss = addZero(dt.getSeconds());
    return `${y}-${m}-${d}  ${hh}:${mm}:${ss}`
}
function addZero(n){
    return n < 10? '0' + n :  n
}

开源协议

lsc

FAQs

Package last updated on 05 Nov 2021

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