{"id":13495544,"url":"https://github.com/darklang/tablecloth-rescript","last_synced_at":"2026-06-23T23:30:19.451Z","repository":{"id":97726314,"uuid":"550452752","full_name":"darklang/tablecloth-rescript","owner":"darklang","description":"Rescript implementation of Tablecloth","archived":false,"fork":false,"pushed_at":"2024-01-03T20:07:58.000Z","size":5282,"stargazers_count":12,"open_issues_count":11,"forks_count":4,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-04T12:38:57.915Z","etag":null,"topics":["bucklescript","reasonml","rescript","standard-library"],"latest_commit_sha":null,"homepage":"https://www.tablecloth.dev","language":"ReScript","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/darklang.png","metadata":{"files":{"readme":"README.md","changelog":"Changelog.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2022-10-12T19:46:05.000Z","updated_at":"2024-11-04T23:32:55.000Z","dependencies_parsed_at":"2023-11-15T12:27:54.185Z","dependency_job_id":"38857bb7-14a9-4367-89cc-bd097568e63b","html_url":"https://github.com/darklang/tablecloth-rescript","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/darklang%2Ftablecloth-rescript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darklang%2Ftablecloth-rescript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darklang%2Ftablecloth-rescript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darklang%2Ftablecloth-rescript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/darklang","download_url":"https://codeload.github.com/darklang/tablecloth-rescript/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240272809,"owners_count":19775102,"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":["bucklescript","reasonml","rescript","standard-library"],"created_at":"2024-07-31T19:01:35.754Z","updated_at":"2026-06-23T23:30:19.411Z","avatar_url":"https://github.com/darklang.png","language":"ReScript","funding_links":[],"categories":["ReScript"],"sub_categories":[],"readme":"# Tablecloth-rescript\n\n[![CircleCI](https://circleci.com/gh/darklang/tablecloth.svg?style=shield)](https://circleci.com/gh/darklang/tablecloth)\n[![Npm](https://badge.fury.io/js/tablecloth-rescript.svg)](https://www.npmjs.com/package/tablecloth-rescript)\n\nTablecloth is a library that shims over various standard libraries so they have the same function and module names, which using idiomatic types and patterns in each language.\n\nThis is the Rescript implementation, which uses Belt, pipe-first, and camelCase.\n\n**Tablecloth is alpha-quality software, and is pre-1.0. It is currently undergoing\nsome significant shifts and some libraries listed below are not available yet.\nCaveat emptor.**\n\nCheck out the [website](https://www.tablecloth.dev) for our interactive API\ndocumentation, or join the community in the [Tablecloth\nDiscord](https://www.tablecloth.dev/discord-invite).\n\n## Installation\n\n**Note: these instructions are for the upcoming new version of tablecloth**\n\nInstall via npm by:\n\n`npm install tablecloth-rescript`\n\nThen add to your `bsconfig.json` file:\n\n`\"bs-dependencies\" : [\"tablecloth-rescript\"]`\n\n## Usage\n\nThe recommended way to use Tablecloth is with a top-level open at the beginning of a file.\n\nThis will ensure that all the built-in modules are replaced.\n\n```\nopen Tablecloth\n\nlet () =\n  String.toList(\"somestring\")\n  -\u003eList.map(Char.toCode)\n  -\u003eList.map((x) =\u003e x+1))\n  -\u003eList.filterMap(Char.fromCode)\n  -\u003eString.fromList\n```\n\n## Supported versions\n\nTablecloth supports Rescript 9 and 10. [Older versions of Tablecloth](https://www.npmjs.com/package/tablecloth-bucklescript) supported older versions of bs-platform.\n\n### Development\n\nWhen developing Tablecloth, you can test it against different versions of\nrescript, using the following commands:\n\n- `TC_RESCRIPT_VERSION=10.0.0 make deps`\n\n## Contributions\n\nThe maintainers are warm and friendly, and the project abides by a [Code of Conduct](./CODE_OF_CONDUCT.md).\n\nThere are many small tasks to be done - a small change to a single function can be extremely\nhelpful. We also welcome new versions of tablecloth for other languages, or even for the same\nlanguage but based on other libraries.\n\nCheck out the [dedicated guide](./documentation/contributing.md) on contributing for more.\n\n## Developing\n\nPlease refer to the `package.json` for a complete list of supported actions. Here is\na handful of useful, supported commands:\n\n```\nnpm install\nnpm run build\nnpm run test\nnpm run format\n```\n\n## License\n\nTablecloth-rescript uses the [MIT](./LICENSE) license.\n\n## Authors\n\nInitially written by [Darklang](https://darklang.com).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarklang%2Ftablecloth-rescript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdarklang%2Ftablecloth-rescript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarklang%2Ftablecloth-rescript/lists"}