@schutm/bs-cuid

0.0.1 • Public • Published

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.

Package Sidebar

Install

npm i @schutm/bs-cuid

Weekly Downloads

2

Version

0.0.1

License

none

Unpacked Size

5.91 kB

Total Files

8

Last publish

Collaborators

  • schutm