Releases: lukeed/tinydate
Releases · lukeed/tinydate
v1.3.0
v1.2.0
Features
-
Allow custom patterns (#7, #8): 65a64e5
You may optionally add new patterns or override existing patterns through
tinydate
's second parameter. You will still receive a render function – now with your customized functionality!Important: Each item of your custom dictionary must be a function~!
const today = new Date('2019-07-04, 5:30:00 PM'); // Example custom dictionary: // - Adds {MMMM} // - Overrides {DD} const stamp = tinydate('Today is: {MMMM} {DD}, {YYYY}', { MMMM: d => d.toLocaleString('default', { month: 'long' }), DD: d => d.getDate() }); stamp(today); //=> 'Today is: July 4, 2019'
Chores
v1.1.0
v1.0.1
Features!
- Now available as a UMD module thru
unpkg.com
, for easy browser compatibility~!
<script src="https://unpkg.com/tinydate"></script>
- The
module
entry is now correctly a.mjs
extension
Chores
- Update build tools
- Update benchmark results
- Fix
.gitignore
list