1.0.3 • Published 5 years ago

jgmtfd v1.0.3

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

jgmtfd

MEAN Module Build Status npm version Node.js Version

Just give me the f***ing date (Tiny size =~ 1KB).

Installation

yarn add jgmtfd

Usage

English:

const { English } = require('jgmtfd');

const d = new Date();

English(d);
// Sep 9, 2018

English(d, { omitCurrentYear: true }); // Omit current year
// Sep 9

English(d, { DM: true }); // Day comes before month
// 9 Sep, 2018

Simplified Chinese:

const { SimplifiedChinese } = require('jgmtfd');

const d = new Date();

SimplifiedChinese(d);
// 2018年9月9日

SimplifiedChinese(d, { omitCurrentYear: true });
// 9月9日
1.0.3

5 years ago

1.0.2

6 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.0.2

7 years ago