https://github.com/smallhelm/simple-timeago.handle-bad-input
simple-timeago wrapper that returns "???" instead of throwing up if you give it something truthy that is not a Date object.
https://github.com/smallhelm/simple-timeago.handle-bad-input
Last synced: about 1 year ago
JSON representation
simple-timeago wrapper that returns "???" instead of throwing up if you give it something truthy that is not a Date object.
- Host: GitHub
- URL: https://github.com/smallhelm/simple-timeago.handle-bad-input
- Owner: smallhelm
- License: mit
- Created: 2015-10-08T14:42:31.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-10-08T16:12:00.000Z (over 10 years ago)
- Last Synced: 2025-02-04T22:28:12.603Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 133 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# simple-timeago.handle-bad-input
[simple-timeago](https://www.npmjs.com/package/simple-timeago) wrapper that returns "???" instead of throwing up if you give it something truthy that is not a Date object.
## API
same as [simple-timeago](https://www.npmjs.com/package/simple-timeago)
## Install
```sh
$ npm install --save simple-timeago.handle-bad-input
```
## License
MIT