{"id":23391455,"url":"https://github.com/ahrefs/melange-numeral","last_synced_at":"2025-04-08T14:47:52.614Z","repository":{"id":57095681,"uuid":"136616062","full_name":"ahrefs/melange-numeral","owner":"ahrefs","description":null,"archived":false,"fork":false,"pushed_at":"2023-10-24T13:36:53.000Z","size":21,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-06T06:36:32.866Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Reason","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ahrefs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2018-06-08T12:28:44.000Z","updated_at":"2024-07-03T20:12:20.000Z","dependencies_parsed_at":"2023-07-24T11:22:03.410Z","dependency_job_id":"360ee521-3b8d-4e92-8e79-0e0b657f1ba5","html_url":"https://github.com/ahrefs/melange-numeral","commit_stats":null,"previous_names":["ahrefs/bs-numeral"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahrefs%2Fmelange-numeral","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahrefs%2Fmelange-numeral/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahrefs%2Fmelange-numeral/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahrefs%2Fmelange-numeral/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ahrefs","download_url":"https://codeload.github.com/ahrefs/melange-numeral/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247761153,"owners_count":20991545,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-22T04:17:35.358Z","updated_at":"2025-04-08T14:47:52.567Z","avatar_url":"https://github.com/ahrefs.png","language":"Reason","funding_links":[],"categories":[],"sub_categories":[],"readme":"# melange-numeral\n\nThese are the [Melange](https://melange.re/) bindings for [numeral](http://numeraljs.com/).\n🚧 It is not completed, we are adding bindings as we go. Doesn't follow semver at this point. 🚧\n\n# Install\n\nInstall [opam](https://opam.ocaml.org/) package manager.\n\nThen:\n\n```sh\nopam install melange-numeral\n```\n\nThe bindings support the version 2.0.6 of `numeral` npm package, which should be installed separately:\n\n```json\n  \"dependencies\": {\n    \"numeral\": \"2.0.6\"\n  }\n```\n\n# Setup\n\nAdd `melange-numeral` to the `libraries` in your `dune` file:\n\n```lisp\n; ...\n  (libraries melange-numeral)\n; ...\n```\n\n# Usage Example\n\n```reason\nmodule N = Numeral;\n\nlet myValue = N.make(`Str(\"11110.49\"));\nmyValue\n|. N.add(`Float(123.5))\n|. N.subtract(`Int(1234))\n|. N.format(~format=\"0[.]00\", ())\n|. Js.log; /* 9999.99 */\n```\n\n# Docs\n\nCheck [Numeral documentation](http://numeraljs.com/)\n\n# Alternatives\n\n- [drwlrsn/bs-numeral](https://github.com/drwlrsn/bs-numeral)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahrefs%2Fmelange-numeral","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fahrefs%2Fmelange-numeral","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahrefs%2Fmelange-numeral/lists"}