Skip to content

Commit

Permalink
feat(README.md): fix README.md example style
Browse files Browse the repository at this point in the history
fix #5
  • Loading branch information
hadabo committed Dec 8, 2017
1 parent 6e97bfd commit bfbfb91
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,28 @@ npm install --save syria-districts
import syriaDistricts from 'syria-districts';

const allDistricts = syriaDistricts.all;
// [ 'Damascus', 'Rif Dimashq', 'Homs', 'Aleppo', 'Hama', 'Idlib', 'Raqqa', 'Al-Hasakah', 'Daraa', 'Tartus', 'Deir ez-Zor', 'Quneitra', 'Al-Suwayda', 'Latakia' ]
// [ 'Damascus',
// 'Rif Dimashq',
// 'Homs',
// 'Aleppo',
// 'Hama',
// 'Idlib',
// 'Raqqa',
// 'Al-Hasakah',
// 'Daraa',
// 'Tartus',
// 'Deir ez-Zor',
// 'Quneitra',
// 'Al-Suwayda',
// 'Latakia' ]

const randomDistrict = syriaDistricts.random();
// Damascus

const randomDistricts = syriaDistricts.random(3);
// [ 'Al-Hasakah', 'Daraa', 'Raqqa' ]
// [ 'Al-Hasakah',
// 'Daraa',
// 'Raqqa' ]
```

## Other
Expand Down

0 comments on commit bfbfb91

Please sign in to comment.