jgmtfd
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日