Tinydate Versions Save

A tiny (349B) reusable date formatter. Extremely fast!

v1.3.0

3 years ago

Features

  • Add TypeScript definitions (#10): 417e983

Chores

  • Migrate CI to Github Actions: 8a31051, 74ab620, b4f43c0
  • Fix test fixture for Node 8.x: 4156a23

v1.2.0

4 years ago

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

  • Update and lock devDepdencies versions: fa606ab
  • Update module size (+9 bytes): ac24991

v1.1.0

4 years ago

Features

  • Add millisecond support via the {fff} pattern (#5): 22ada81

Chores

  • Update readme: da683d4
  • Update size (+8B): 2b52b7f
  • Update test assertions: 1f8883e
  • Update builder: 3444f9d

v1.0.1

5 years ago

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