Skip to content

Commit

Permalink
Merge 5c5f21a into 96c5720
Browse files Browse the repository at this point in the history
  • Loading branch information
joeldenning committed Jan 29, 2020
2 parents 96c5720 + 5c5f21a commit 395cf36
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,11 @@ $ yarn add packages-versions


// you can use any name for this function ..
// The array of versions will be sorted in descending order
const getPackagesVersions = require ('packages-versions');


// Pormise way :
// Promise way :
getPackagesVersions('any-to-any')
.then(data => console.log(`Versions List Using Promise : \n`,data))
.catch(err => console.log(err));
Expand Down Expand Up @@ -94,4 +95,4 @@ Versions List Using Async/Await :

#### License
---
[MIT](https://choosealicense.com/licenses/mit/)
[MIT](https://choosealicense.com/licenses/mit/)

0 comments on commit 395cf36

Please sign in to comment.