Small script for testing the humanize-duration npm package. You have the flexibility to specify custom timestamps, and by using various options, you can modify the output style. Moreover, you can include multiple timestamps to compare differences in units.
- Clone the repository
- Install the dependencies:
npm install
- Run the script:
node .
You can modify the following information in the script:
- Timestamps: You can specify one or more timestamps. See provided examples in the script.
- Options: You can specify the options you want to use.
Timestamp: 2023-10-06
Options: {round: true, largest: 2}
Output: 28 days, 3 hours