Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependencies #45

Merged
merged 2 commits into from
Feb 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:

steps:
- checkout
- run: npm install npm@10.4.0
- run: npm install npm@10.5.0
- run: npm ci
- run: npx jest

Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v20.11.0
v20.11.1
2 changes: 1 addition & 1 deletion .semaphore/build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ agent:
global_job_config:
env_vars:
- name: NPM_VERSION
value: 10.4.0
value: 10.5.0
secrets:
- name: ACCESS_TOKENS

Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Next version
+ Upgrade dependencies
+ Upgrade dependencies

## 2.2.0
+ Upgrade dependencies
Expand Down
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@ Date Convert

`date-convert` converts a ISO format YYYYMMDD string "19820405" to "05/04/1982" (where 05 is day and 04 is April). Use `"/"` as separator in output.

It works also with a date with other format. Simply, call the method `fromIsoToHuman`.

For example

```js
const newDate = fromIsoToHuman("2024-01-31T15:27:42.427438", "DD/MM/YYYY");
console.log(newDate); // It prints 31/01/2024
```

### Accepted INPUT

| Input | Output |
Expand All @@ -28,9 +37,9 @@ Date Convert

```js
// Import module
var {fromIsoToHuman, fromHumanToIso} = require('@sineverba/date-convert');
import { fromHumanToIso, fromIsoToHuman } from "@sineverba/date-convert";
// Or
// import { fromHumanToIso, fromIsoToHuman } from "@sineverba/date-convert";
// var {fromIsoToHuman, fromHumanToIso} = require('@sineverba/date-convert');

const humanDate = fromIsoToHuman("20200102");
console.log(humanDate); // returns 02/01/2020
Expand Down
28 changes: 14 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@
"devDependencies": {
"@types/jest": "^29.5.12",
"coveralls": "^3.1.1",
"husky": "^9.0.10",
"husky": "^9.0.11",
"jest": "^29.7.0",
"jest-cucumber": "^3.0.1",
"npm-check-updates": "^16.14.14",
"npm-check-updates": "^16.14.15",
"prettier": "^3.2.5",
"ts-jest": "^29.1.2",
"tslint": "^6.1.3",
Expand Down