Skip to content

Commit

Permalink
Upgrade dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
sineverba committed Mar 13, 2023
1 parent e2c12c1 commit d44727c
Show file tree
Hide file tree
Showing 8 changed files with 310 additions and 92 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ jobs:

test:
docker:
- image: cimg/node:18.12.0
- image: cimg/node:18.15.0

steps:
- checkout
Expand Down
2 changes: 0 additions & 2 deletions .env.bak

This file was deleted.

2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v18.13.0
v18.15.0
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Next version
+ Fix code smell
+ Upgrade dependencies

## 1.4.0
+ Handle custom human date format
Expand Down
2 changes: 0 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
include .env

SONARSCANNER_VERSION=4.8.0

sonar:
Expand Down
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,20 @@ Date Convert
```js
// Import module
var {fromIsoToHuman, fromHumanToIso} = require('@sineverba/date-convert');
// Or
// import { fromHumanToIso, fromIsoToHuman } from "@sineverba/date-convert";

var humanDate = fromIsoToHuman("20200102");
let humanDate = fromIsoToHuman("20200102");
console.log(humanDate); // returns 02/01/2020

var humanDate = fromIsoToHuman("20200102", "AAAA-MM-DD");
console.log(humanDate); // returns 2020-01-02
let humanDateWithFormat = fromIsoToHuman("20200102", "YYYY-MM-DD");
console.log(humanDateWithFormat); // returns 2020-01-02

var isoDate = fromHumanToIso("02/01/2020");
let isoDate = fromHumanToIso("02/01/2020");
console.log(isoDate); // returns 20200102

var isoDate = fromHumanToIso("2020-01-02", "YYYY-MM-DD");
console.log(isoDate); // returns 20200102
let isoDateWithFormat = fromHumanToIso("2020-01-02", "YYYY-MM-DD");
console.log(isoDateWithFormat); // returns 20200102
```

## Tests
Expand Down

0 comments on commit d44727c

Please sign in to comment.