mockoon-date-shift

0.1.3 • Public • Published

mockoon-date-shift

npm version

A dead simple in-place date shifting tool that updates all of your dates in a JSON file to use the mockoon dateTimeShift format.

Usage

npx mockoon-date-shift ./file.json

Before

{
  "item": "2000-01-01"
}

After

{
  "item": "{{dateTimeShift date=now format='yyyy-MM-dd' years=-24 months=-3 days=-16 hours=0 minutes=0 seconds=0}}"
}

Readme

Keywords

none

Package Sidebar

Install

npm i mockoon-date-shift

Weekly Downloads

1

Version

0.1.3

License

MIT

Unpacked Size

6.95 kB

Total Files

3

Last publish

Collaborators

  • bengineer.dev