{"id":13725037,"url":"https://github.com/bobzhang/import-rescript-based-library","last_synced_at":"2025-04-10T05:35:34.085Z","repository":{"id":143220877,"uuid":"337688714","full_name":"bobzhang/import-rescript-based-library","owner":"bobzhang","description":"An example to show JS users can use Rescript based library without using ReScript","archived":false,"fork":false,"pushed_at":"2021-02-10T10:35:27.000Z","size":3,"stargazers_count":15,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T06:51:52.350Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bobzhang.png","metadata":{"files":{"readme":"ReadME.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2021-02-10T10:26:56.000Z","updated_at":"2023-04-08T11:16:10.000Z","dependencies_parsed_at":"2023-06-01T23:31:01.707Z","dependency_job_id":null,"html_url":"https://github.com/bobzhang/import-rescript-based-library","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bobzhang%2Fimport-rescript-based-library","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bobzhang%2Fimport-rescript-based-library/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bobzhang%2Fimport-rescript-based-library/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bobzhang%2Fimport-rescript-based-library/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bobzhang","download_url":"https://codeload.github.com/bobzhang/import-rescript-based-library/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248163982,"owners_count":21058061,"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-08-03T01:02:10.517Z","updated_at":"2025-04-10T05:35:34.064Z","avatar_url":"https://github.com/bobzhang.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"\n\n# Example using [ReScript](https://github.com/rescript-lang/rescript-compiler) as a pure js library\n\n\n[index.mjs](./index.mjs) is a word counting program.\n\nIt use the Belt.Map module from ReScript standard library.\n\nYou can run it via `node ./index.mjs`\n\n\nYou can also bundle it into [index.bundle.mjs](./index.bundle.mjs)\n\n```\nnpx esbuild index.mjs --bundle --platform=node --outfile=index.bundle.mjs --minify-syntax --format=esm\n```\n\nThe great thing with Belt.Map libraries is that it is functional and support custom data type. \n\nThe experience could be improved in the future, e.g, generating typescript declarations.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbobzhang%2Fimport-rescript-based-library","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbobzhang%2Fimport-rescript-based-library","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbobzhang%2Fimport-rescript-based-library/lists"}