package melange-moment

Not available on OCaml 5.5
  1. Overview
  2. Docs
Melange bindings for Moment.js

Install

dune-project
 Dependency

Authors

Maintainers

Sources

melange-moment-0.4.0.tbz
sha256=b065d855d6dbf504b1b2064e3fc370389a103fd3f081f206de5a80c253b5e73f
sha512=d0dafe0c788e2206f92616ad868192b8a3abcc411786c41df6837b26f0f21d4597d64289dd061c3c854b15b653b8781013bd3b8862eae8235f567b98a8867bd2

Description

Tags

melange org:ahrefs

Added to opam-repository:

README

melange-moment

Melange bindings for Moment.js.

Based on bs-moment.

Status

This package is still 🚧 WIP 🚧, but new bindings are added as needed instead of actively. Feel free to create an issue or PR if you find anything missing.

Installation

Install opam package manager.

Then:

opam install melange-moment

The bindings support the following versions of the moment npm package, which should be installed separately:

  "dependencies": {
    "moment": "^2.26.0"
  }

Setup

Add melange-moment to the libraries field in your dune file:

; ...
  (libraries melange-moment)
; ...

Mutations

This binding takes an opinionated approach to mutations, e.g. moment().add, moment().startOf, and bind them with names like mutableAdd and mutableStartOf. To compensate that, there's an immutable version named add and startOf which takes a moment().clone first before applying the mutations.

Deprecations

Deprecated methods (e.g. moment().days in favor of moment().day) are not included in this binding.

Dependencies (4)

  1. reason
  2. melange >= "3.0.0" & <= "5.0.0"
  3. ocaml
  4. dune >= "3.9"

Dev Dependencies (3)

  1. odoc with-doc
  2. conf-npm with-test
  3. melange-jest with-test

Optional Dependencies

None

Conflicts

None

Build status

Results of building melange-moment with each compiler on check.ci.ocaml.org, run of against opam-repository 78c202b. 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
0.4.0 (this version) n/a good good n/a n/a
  • 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