Nano ID

Travis Pub

Dart implementation of ai/nanoid

Usage

Normal

import 'package:nanoid/nanoid.dart';

void main() {
  var id = nanoid();
  var custom_length_id = nanoid(10);
  // ...
}

Custom Alphabet

import 'package:nanoid/generate.dart';

void main() {
  var id = generate('1234567890abcdef', 10);
  // ...
}

License

MIT

Libraries

generate
nanoid
url