Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@schutm/bs-cuid

schutm20.0.1

bs-cuid =======

BuckleScript, ReasonML, OCaml, cuid

readme

bs-cuid

Synopsis

bs-cuid contains bindings to cuid to be used with Bucklescript-TEA.

The interface is the same as to the ocaml cuid packages.

Installation

yarn add bs-cuid

And don't forget to add it to your bsconfig.json:

  "bs-dependencies": [
    "bs-cuid",
    ...
  ],

Usage

let cuid = Cuid.generate ( )
(* cuid is "c00p6veue0000072slgr067a3", for example *)

or

let slug = Cuid.slug ( )
(* slug is "u90m0y0m", for example *)

Bug tracker

Open a new issue for bugs or feature requests. Please search for existing issues first.

Bugs or feature request will be fixed in the following order, if time permits:

  1. It has a pull-request with a working and tested fix.
  2. It is easy to fix and has benefit to myself or a broader audience.
  3. It puzzles me and triggers my curiosity to find a way to fix.

Acknowledgements

Of course this library would be impossible without the excellent cuid library.

Contributing

Anyone and everyone is welcome to contribute.

License

This software is licensed under the ISC License.