https://github.com/idcteam-group/humanizer
⏳ Essential tool for any developer looking to improve the readability and comprehension of time data in their applications.
https://github.com/idcteam-group/humanizer
humanizer javascript nodejs time tools typescript
Last synced: about 1 month ago
JSON representation
⏳ Essential tool for any developer looking to improve the readability and comprehension of time data in their applications.
- Host: GitHub
- URL: https://github.com/idcteam-group/humanizer
- Owner: IDCTeam-Group
- Created: 2024-04-12T16:06:15.000Z (about 2 years ago)
- Default Branch: 1.1.0
- Last Pushed: 2025-02-08T15:16:52.000Z (over 1 year ago)
- Last Synced: 2025-03-16T04:34:36.635Z (about 1 year ago)
- Topics: humanizer, javascript, nodejs, time, tools, typescript
- Language: JavaScript
- Homepage: https://humanizer.idcteam.xyz
- Size: 57.6 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# @dbdteam/humanizator
## Getting Started with the Dependency
Humanizator is an essential tool for any developer looking to improve the **readability and comprehension** of time data in their applications. It converts time units into a **human-friendly format**, making the interpretation of __dates and durations__ easier for users of all kinds. Whether you're building a scheduling application, a social media platform, or a project management system, Humanizator ensures that time data is presented in a clear and understandable way, thereby enhancing user experience and the usability of your application.
## Example of Client Initialization
```js
const { HumanizerClient, DefaultConfig } = require("@dbdteam/humanizator")
const client = new HumanizerClient(DefaultConfig)
// This is 24 minutes.
const times = [
1000 * 60 * 24,
Date.now() + 1000 * 60 * 24,
new Date(Date.now() + 1000 * 60 * 24)
]
const results = [
client.humanizeMilliseconds(times[0]),
client.humanizeStamps(times[1]),
client.humanizeDates(times[2])
]
console.log(...results)
```
### Also you can check the documentation!
[Click here to go to our documentation](https://dbdteam.github.io/humanizatordocs.github.io/)