package slugline

All checked builds pass
  1. Overview
  2. Docs

Description

A very small (and portable) slugifier implementation

Added to opam-repository:

README

slugline

The implementation is relatively naïve and opinionated, but should be sufficient for most use cases. It has largely been imported from YOCaml (which provides its own implementation) and is small, with no dependencies, making it easy to use with Js_of_ocaml and Mirage. The implementation attempts to intelligently merge separators and is fairly configurable. A more ambitious implementation is provided by the Slug package.

# "Hello world, this is a slug héhéhé" 
  |> Slugline.from_string
  |> Slugline.to_string ;;
- : string = "hello-world-this-is-a-slug-hehehe"

Dependencies (2)

  1. ocaml >= "5.0.0"
  2. dune >= "3.20"

Dev Dependencies (8)

  1. odoc with-doc
  2. ocaml-lsp-server with-dev-setup
  3. merlin with-dev-setup
  4. ocp-indent with-dev-setup
  5. ocamlformat with-dev-setup
  6. utop with-dev-setup
  7. mdx with-test & >= "2.5.1"
  8. ppx_expect with-test & >= "v0.17.3"

Optional Dependencies

None

Used by

None

Conflicts

None

Build status

Results of building slugline with each compiler on check.ci.ocaml.org, run of against opam-repository 8a77e58. All results for this package.

Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.

Version OCaml 4.11 OCaml 4.14 OCaml 5.2 OCaml 5.4 OCaml 5.5
1.0.0 (this version) n/a n/a good good good
  • good Package successfully built
  • partial One of the dependencies failed to build
  • bad Package failed to build
  • n/a Package is not available in this environment
  • internal Internal failure