Skip to content

Commit

Permalink
Merge pull request #2 from lapaliv/develop
Browse files Browse the repository at this point in the history
0.1.9
  • Loading branch information
lapaliv authored May 9, 2020
2 parents d19f257 + 071be4d commit e551611
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## Import
```typescript
// ES6
import DateTimeFormatter from '@lapaliv/datetime-formatter';
// Node.js/ES5
var DateTimeFormatter = require('@lapaliv/datetime-formatter').default;
```

## API

### Constructors
Expand Down Expand Up @@ -145,7 +153,7 @@ equal(date: DateTimeFormatter | Date | number | string): boolean;
// Compare year, month, day, hours, minutes, seconds and milliseconds
equalWithoutMicroseconds(date: DateTimeFormatter | Date | number | string): boolean;
// Compare year, month, day, hours, minutes and seconds
equalWithoutMilliseconds(target: DateTimeFormatter | number | Date): boolean(date: DateTimeFormatter | Date | number | string): boolean;
equalWithoutMilliseconds(target: DateTimeFormatter | number | Date): boolean;
// Compare year, month, day, hours and minutes
equalWithoutSeconds(date: DateTimeFormatter | Date | number | string): boolean;
// Compare year, month, day and hours
Expand Down
2 changes: 1 addition & 1 deletion datetime-formatter.js

Large diffs are not rendered by default.

11 changes: 9 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
{
"name": "@lapaliv/datetime-formatter",
"description": "The library for work with date and time",
"version": "0.1.8",
"private": false,
"version": "0.1.9",
"keywords": [
"date",
"time",
"datetime",
"formatter"
"formatter",
"datetime-formatter",
"php-datetime",
"php-date"
],
"homepage": "https://github.com/lapaliv/datetime-formatter",
"author": {
Expand Down Expand Up @@ -42,5 +46,8 @@
"uuid": "^7.0.2",
"webpack": "^4.42.1",
"webpack-cli": "^3.3.11"
},
"publishConfig": {
"registry": "https://npm.pkg.github.com/"
}
}
1 change: 1 addition & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ module.exports = {
loader: 'babel-loader',
}],
},
target: "node",
};

0 comments on commit e551611

Please sign in to comment.