Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
pd4d10 committed Apr 7, 2018
1 parent 8b6d7c4 commit 74210ce
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,29 @@

![Pub](https://img.shields.io/pub/v/nanoid.svg)

Dart implementation of [ai/nanoid](https://github.com/ai/nanoid)

## Usage

### Normal

```dart
import 'package:nanoid/nanoid.dart';
void main() {
var id = nanoid();
var custom_length_id = nanoid(10);
// ...
}
```

### Custom Alphabet

```dart
import 'package:nanoid/generate.dart';
void main() {
var id = generate('1234567890abcdef', 10);
// ...
}
```
Expand Down

0 comments on commit 74210ce

Please sign in to comment.