Skip to content
This repository has been archived by the owner on Sep 25, 2020. It is now read-only.

Commit

Permalink
Completed comprehensive readme and bumped version to 1.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Samrith Shankar committed May 28, 2017
1 parent 6016c62 commit 1d4311b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ relativeDate(new Date())
valid: Boolean
}
```

If the date is invalid, the text returned would be "Invalid Date" and the value would be an Invalid Date object.

## Tests
You can run tests to check for all the available outcomes, by running `npm run cover`

Expand All @@ -64,6 +67,8 @@ There is an `.editorconfig` to maintain indentation across editors. Feel free to
- Option to show texts like, 'just now', 'about a minute', etc.

## Release History
- 1.0.6 - Completed comprehensive readme
- 1.0.5 - Added returned object structure in readme
- 1.0.4 - Added feature roadmap
- 1.0.3 - Changed license of NPM package to MIT
- 1.0.2 - Completed readme
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "relative_date",
"version": "1.0.5",
"version": "1.0.6",
"description": "A tiny package which, when given a date, displays it with relation to the current day.",
"main": "relative_date.js",
"scripts": {
Expand Down

0 comments on commit 1d4311b

Please sign in to comment.