time-ago-dk 1.0.7 → 1.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +3 -4
  2. package/package.json +12 -2
package/README.md CHANGED
@@ -23,6 +23,9 @@ import { timeAgo } from "time-ago-dk";
23
23
  console.log(timeAgo(new Date(Date.now() - 60000))); // "1 minute ago"
24
24
  console.log(timeAgo(new Date(Date.now() - 3600000))); // "1 hour ago"
25
25
  console.log(timeAgo(new Date(Date.now() - 1000))); // "just now"
26
+ console.log(timeAgo(new Date(Date.now() - 86400000))); // "1 day ago"
27
+ console.log(timeAgo(new Date(Date.now() - 2592000000))); // "1 month ago"
28
+ console.log(timeAgo(new Date(Date.now() - 31536000000))); // "1 year ago"
26
29
  ```
27
30
 
28
31
  ## API
@@ -36,7 +39,3 @@ console.log(timeAgo(new Date(Date.now() - 1000))); // "just now"
36
39
  ## Contributing
37
40
 
38
41
  Contributions are welcome! Please open an issue or submit a pull request.
39
-
40
- ## License
41
-
42
- This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
package/package.json CHANGED
@@ -1,9 +1,17 @@
1
1
  {
2
2
  "name": "time-ago-dk",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "description": "A tiny JavaScript utility to convert dates into human readable 'time ago' format.",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/Darshit1101/npm-time-ago.git"
10
+ },
11
+ "homepage": "https://github.com/Darshit1101/npm-time-ago#readme",
12
+ "bugs": {
13
+ "url": "https://github.com/Darshit1101/npm-time-ago/issues"
14
+ },
7
15
  "scripts": {
8
16
  "test": "node test/index.test.js"
9
17
  },
@@ -12,7 +20,9 @@
12
20
  "ago",
13
21
  "date",
14
22
  "javascript",
15
- "utility"
23
+ "utility",
24
+ "time-ago",
25
+ "date-utils"
16
26
  ],
17
27
  "author": "Darshit Kakadiya",
18
28
  "license": "MIT"