package slugline
All checked builds passInstall
dune-project
Dependency
Authors
Maintainers
Sources
sha256=3b155d1eab3d43900e02227befc2bab0e288ca6f7e04209c08ef9d10ac4f5c0b
sha512=b43412e53801893ddffcb239317d63c95cd9d05c760e31a435e1795a9103e710d0b93eac18d1b739c8c688b91eacfe3e7997f9d0f1abde3f5b896d3bf380ac63
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"
Dev Dependencies (8)
-
odoc
with-doc -
ocaml-lsp-server
with-dev-setup -
merlin
with-dev-setup -
ocp-indent
with-dev-setup -
ocamlformat
with-dev-setup -
utop
with-dev-setup -
mdx
with-test & >= "2.5.1" -
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