# webopenfather-date

> A JavaScript date library for formatting dates.

Latest version **1.0.2** (published 2021-08-22) · ISC license · 0 weekly downloads

## Install

```sh
npm install webopenfather-date
pnpm add webopenfather-date
yarn add webopenfather-date
bun add webopenfather-date
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2021-08-22 |
| First published | 2021-08-22 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | webopenfather |

## Links

- npm: https://www.npmjs.com/package/webopenfather-date
- npm.io page: https://npm.io/package/webopenfather-date

## Recent versions

- 1.0.2 (latest) — 2021-08-22
- 1.0.1 — 2021-08-22
- 1.0.0 — 2021-08-22

## README

# webopenfather-date

[![Build Status][travis-url]][travis-url]
[![MIT License][license-url]][license-url]
[![NPM downloads][npm-downloads-image]][npm-downloads-url]

# ⬇️ Install

> npm i webopenfather-date

# 🎨 Usage

> const wofDate = require('webopenfather-date')
> 
> console.log(wofDate.format('Y-m-d H:i:s'))
> 
> console.log(wofDate.format('Y/m/d'))
> 
> console.log(wofDate.format('Y/m/d H:i:s'))

# 💡 param

| keywords   | desc  |
| ---- | ---- | 
|  Y    |   年   |  
|  m    |  月   | 
|  d    |  日  |  
|  H    |   时  |  
|  i    |   分   |    
|  s    |   秒   | 


```
语法：wofDate.format('随意组合')

举个栗子🌰
wofDate.format('YmdHis')
wofDate.format('Y-m-d H:i:s')
wofDate.format('Y/m/d')
wofDate.format('Y/m/d H:i:s')
wofDate.format('Y年m月d日 H:i:s')
wofDate.format('Y')
wofDate.format('m')
wofDate.format('d')
wofDate.format('H')
wofDate.format('i')
wofDate.format('s')
```


# 🚀 CDN

```

https://unpkg.com/webopenfather-date@1.0.1/dist/wofDate.js

<script src="https://unpkg.com/webopenfather-date@1.0.1/dist/wofDate.js"></script>
<script>
console.log(wofDate.format('Y-m-d H:i:s'))
console.log(wofDate.format('Y/m/d'))
console.log(wofDate.format('Y/m/d H:i:s'))
</script>

```

[travis-url]: https://img.shields.io/badge/build-passing-brightgreen
[license-url]: https://img.shields.io/badge/license-MIT-informational
[npm-downloads-image]: https://img.shields.io/badge/downloads-67M%2Fmonth-brightgreen
[npm-downloads-url]: https://npmcharts.com/compare/webopenfather-date?minimal=true




# 🔒 License
See the LICENSE file for license rights and limitations (MIT).

---
_Source: https://npm.io/package/webopenfather-date · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
