Skip to content

Commit

Permalink
docs: separator docs
Browse files Browse the repository at this point in the history
  • Loading branch information
TimMikeladze committed Aug 10, 2023
1 parent a413897 commit 44c8372
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,15 @@ pnpm add space-slug
## 🚀 Getting Started

```ts
const { spaceSlug, color, digits } from 'space-slug';
const { spaceSlug, color, digits, noun } from 'space-slug';

const slug = spaceSlug();
// Returns: serenity-2391

const slug = spaceSlug([color(), digits(2)]);
// Returns: blue-80
const slug = spaceSlug([color(), noun(2), digits(3)], {
separator: '_'
});
// Returns: blue_celestial_labyrinth_718
```

## 📚 Custom dictionaries and locales
Expand Down

0 comments on commit 44c8372

Please sign in to comment.