{"bugs":{"url":"https://github.com/mobily/ts-belt/issues"},"dist":{"shasum":"ca6bff24dca16d1d5f708ad47e960d9967a2b636","tarball":"https://registry.npmjs.org/@mobily/ts-belt/-/ts-belt-4.0.0-rc.3.tgz","fileCount":103,"integrity":"sha512-el11fpaCJpVnuHKuDxcYlc5kJbR3+/EzKWXy7aqCCx8rRrspJcKDQxJ7s58Qn56kQSA5AOvjQDgM4f0NLGjkPw==","signatures":[{"sig":"MEUCIEMLyotfLKW+zapBUfx/gPM9ahTLbiBZ05MRnQL4d2lbAiEA2FnPTn4AYfg+PVAq59EJIKWv/VF1UcbhCSr+AZYtEZI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":380295,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjmZpDACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmplGg//e2QQuEEp5Tf8MkkTlICmx6Xx4AzGVjyGf5ykMOtETzYeWMie\r\nCGo6zKs9UjHpDv2SsyFcAWy+ua7Tu1YN0Oq7iOfIdlL2NYRvF3zDZUyp6Y1j\r\neZdoZsf9wohAuSvoni4+e6TV6xOBBUrufP6tmVKqS8tbIaOznKWK4+qMWh/c\r\nFT5HPMwE3S6BT4QT2nyjkXx7h73x7wWtiUNJJB9+DyfHv3USbEo16Xd3gPoh\r\n0nRF4XyUfmDUld4Kil9QBu77LNp0zkWWot1/cFXS1cidSb+at8NYy4BC5t7o\r\nrYXSLDjYsl6g85S5DSoVW7oa2p02CBfN6YdR5h3CM5IVT+ZuGO+CBfMqGIIV\r\n2IWCaPWSW8IEz2TvS16wJIqA/SneKNy7Dyp0Ze4OyGHHLz3CJW1oLQS+PNtm\r\nzSS8h2ur8ZJS2wYrMIAj0Ks61pDuUHHVYJgRLVuVrRJOhthVQIC11WiU/agf\r\n7un9F9zUp3V15VZann5RyKPg5p90f2TBA34RvEAxloNyv6u5xsqJczUPLKjB\r\nsFFeL+MM0R8kEyiANBxh8woqPZVTPpjw36XzArWbfVieLe6Ia/Mer7hPgV2M\r\nmUa2i10GItRoQcyIbTdCFKVL6cGzcDU+VmvJzGf5UHiQV2s+gPCZmzTGGroy\r\naLfWN2qWGuvJIXjediCSx9nCsvmrxX0+yrY=\r\n=zYYp\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist","name":"@mobily/ts-belt","types":"./dist/types/index.d.ts","author":{"name":"Marcin Dziewulski","email":"hello@mobily.pl"},"module":"./dist/index.mjs","readme":"<p align=\"center\">\n  <img src=\"https://raw.githubusercontent.com/mobily/ts-belt/master/assets/ts-belt-frame.png\" width=\"480\">\n</p>\n\n<p align=\"center\">\n  <a href=\"https://app.circleci.com/pipelines/github/mobily/ts-belt\">\n    <img src=\"https://img.shields.io/circleci/build/github/mobily/ts-belt.svg?style=flat-square&amp;logo=circleci\" alt=\"Build Status\">\n  </a>\n  <a href=\"https://coveralls.io/github/mobily/ts-belt?branch=master\">\n    <img src=\"https://img.shields.io/coveralls/github/mobily/ts-belt.svg?style=flat-square&amp;logo=coveralls\" alt=\"Coverage\">\n  </a>\n  <a href=\"https://www.npmjs.com/package/@mobily/ts-belt\">\n    <img src=\"https://img.shields.io/npm/v/@mobily/ts-belt.svg?style=flat-square&amp;logo=npm\" alt=\"npm\">\n  </a>\n  <a href=\"http://makeapullrequest.com\">\n    <img src=\"https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square\" alt=\"PRs Welcome\">\n  </a>\n  <a href=\"#contributors\">\n    <img src=\"https://img.shields.io/badge/all_contributors-11-orange.svg?style=flat-square\" alt=\"All Contributors\">\n  </a>\n  <a href=\"https://github.com/mobily/ts-belt/blob/master/LICENSE\">\n    <img src=\"https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square\" alt=\"GitHub license\">\n  </a>\n</p>\n\n<p align=\"center\">\n  <strong>Fast, modern, and practical utility library for FP in TypeScript.</strong>\n</p>\n\n## Documentation\n\nFull documentation can be found [here](https://mobily.github.io/ts-belt/).\n\n## Features\n\n- 🚀 built with `ReScript`, which generates highly performant JavaScript code (see the benchmark results [here](https://mobily.github.io/ts-belt/benchmarks/introduction))\n- 👀 provides more readable code, due to the `data-first` approach\n- ✨ supports `TypeScript` and `Flow`\n- 🛡 helps you write safer code with `Option` and `Result` types\n- 🎯 all functions return immutable data (no side-effects)\n- 🌲 tree-shakeable\n- 📝 fully documented\n\n## Getting started\n\n### Installation\n\n```shell\nyarn add @mobily/ts-belt\n```\n\nor with `npm`\n\n```shell\nnpm install @mobily/ts-belt --save\n```\n\n### Usage\n\n| Module | Namespace | Description |\n|--|-----------|--|\n| [Array](https://mobily.github.io/ts-belt/api/array) | A | Utility functions for `Array`. |\n| [Boolean](https://mobily.github.io/ts-belt/api/boolean) | B | Utility functions for `Boolean`. |\n| [Number](https://mobily.github.io/ts-belt/api/number) | N | Utility functions for `Number`. |\n| [Object (Dict)](https://mobily.github.io/ts-belt/api/object) | D | Utility functions for `Object`. |\n| [String](https://mobily.github.io/ts-belt/api/string) | S | Utility functions for `String`. |\n| [Guards](https://mobily.github.io/ts-belt/api/guards) | G | Various TypeScript guards. |\n| [Option](https://mobily.github.io/ts-belt/api/option) | O | Functions for handling the `Option` data type that represents the existence and nonexistence of a value. |\n| [Result](https://mobily.github.io/ts-belt/api/result) | R | Functions for describing the result of a certain operation without relying on exceptions. |\n| [Function](https://mobily.github.io/ts-belt/api/function) | F | Other useful functions. |\n\n```typescript\nimport { A, O, N, pipe } from '@mobily/ts-belt'\n\npipe(\n  [1, 2, 3, 4, 5], // → [1, 2, 3, 4, 5]\n  A.dropExactly(2), // → Some([3, 4, 5])\n  O.flatMap(A.head), // → Some(3)\n  O.map(N.multiply(10)), // → Some(30)\n  O.getWithDefault(0), // → 30\n) // → 30\n```\n\n\n## Contributors\n\n<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tr>\n    <td align=\"center\"><a href=\"https://twitter.com/__marcin_\"><img src=\"https://avatars1.githubusercontent.com/u/1467712?v=4?s=100\" width=\"100px;\" alt=\"\"/><br /><sub><b>Marcin Dziewulski</b></sub></a><br /><a href=\"https://github.com/mobily/ts-belt/commits?author=mobily\" title=\"Code\">💻</a> <a href=\"https://github.com/mobily/ts-belt/commits?author=mobily\" title=\"Documentation\">📖</a> <a href=\"https://github.com/mobily/ts-belt/commits?author=mobily\" title=\"Tests\">⚠️</a> <a href=\"#design-mobily\" title=\"Design\">🎨</a> <a href=\"#maintenance-mobily\" title=\"Maintenance\">🚧</a></td>\n    <td align=\"center\"><a href=\"http://github.com/foull\"><img src=\"https://avatars.githubusercontent.com/u/902819?v=4?s=100\" width=\"100px;\" alt=\"\"/><br /><sub><b>Krzysztof Lenda</b></sub></a><br /><a href=\"https://github.com/mobily/ts-belt/commits?author=foull\" title=\"Documentation\">📖</a></td>\n    <td align=\"center\"><a href=\"https://github.com/panr\"><img src=\"https://avatars.githubusercontent.com/u/1303365?v=4?s=100\" width=\"100px;\" alt=\"\"/><br /><sub><b>Radek Kozieł</b></sub></a><br /><a href=\"https://github.com/mobily/ts-belt/commits?author=panr\" title=\"Documentation\">📖</a></td>\n    <td align=\"center\"><a href=\"https://github.com/Fortidude\"><img src=\"https://avatars.githubusercontent.com/u/8781462?v=4?s=100\" width=\"100px;\" alt=\"\"/><br /><sub><b>Artur</b></sub></a><br /><a href=\"https://github.com/mobily/ts-belt/commits?author=Fortidude\" title=\"Documentation\">📖</a></td>\n    <td align=\"center\"><a href=\"https://github.com/domeknn\"><img src=\"https://avatars.githubusercontent.com/u/9402280?v=4?s=100\" width=\"100px;\" alt=\"\"/><br /><sub><b>Dominik Łopaciński</b></sub></a><br /><a href=\"https://github.com/mobily/ts-belt/commits?author=domeknn\" title=\"Code\">💻</a> <a href=\"https://github.com/mobily/ts-belt/commits?author=domeknn\" title=\"Documentation\">📖</a> <a href=\"https://github.com/mobily/ts-belt/commits?author=domeknn\" title=\"Tests\">⚠️</a></td>\n    <td align=\"center\"><a href=\"https://github.com/Eghizio\"><img src=\"https://avatars.githubusercontent.com/u/32049761?v=4?s=100\" width=\"100px;\" alt=\"\"/><br /><sub><b>Jakub Wąsik</b></sub></a><br /><a href=\"https://github.com/mobily/ts-belt/commits?author=Eghizio\" title=\"Documentation\">📖</a></td>\n    <td align=\"center\"><a href=\"https://github.com/Dilven\"><img src=\"https://avatars.githubusercontent.com/u/26671751?v=4?s=100\" width=\"100px;\" alt=\"\"/><br /><sub><b>Krystian Mateusiak</b></sub></a><br /><a href=\"https://github.com/mobily/ts-belt/commits?author=Dilven\" title=\"Code\">💻</a> <a href=\"https://github.com/mobily/ts-belt/commits?author=Dilven\" title=\"Documentation\">📖</a> <a href=\"https://github.com/mobily/ts-belt/commits?author=Dilven\" title=\"Tests\">⚠️</a></td>\n  </tr>\n  <tr>\n    <td align=\"center\"><a href=\"https://typeofweb.com/\"><img src=\"https://avatars.githubusercontent.com/u/1338731?v=4?s=100\" width=\"100px;\" alt=\"\"/><br /><sub><b>Michał Miszczyszyn</b></sub></a><br /><a href=\"#ideas-mmiszy\" title=\"Ideas, Planning, & Feedback\">🤔</a></td>\n    <td align=\"center\"><a href=\"https://github.com/remnantkevin\"><img src=\"https://avatars.githubusercontent.com/u/8270635?v=4?s=100\" width=\"100px;\" alt=\"\"/><br /><sub><b>Kevin</b></sub></a><br /><a href=\"https://github.com/mobily/ts-belt/commits?author=remnantkevin\" title=\"Documentation\">📖</a></td>\n    <td align=\"center\"><a href=\"https://github.com/anthony-khong\"><img src=\"https://avatars.githubusercontent.com/u/12151757?v=4?s=100\" width=\"100px;\" alt=\"\"/><br /><sub><b>Anthony Khong</b></sub></a><br /><a href=\"https://github.com/mobily/ts-belt/commits?author=anthony-khong\" title=\"Code\">💻</a> <a href=\"https://github.com/mobily/ts-belt/commits?author=anthony-khong\" title=\"Documentation\">📖</a> <a href=\"https://github.com/mobily/ts-belt/commits?author=anthony-khong\" title=\"Tests\">⚠️</a></td>\n    <td align=\"center\"><a href=\"http://pyrolistical.github.com/\"><img src=\"https://avatars.githubusercontent.com/u/463642?v=4?s=100\" width=\"100px;\" alt=\"\"/><br /><sub><b>Pyrolistical</b></sub></a><br /><a href=\"https://github.com/mobily/ts-belt/commits?author=Pyrolistical\" title=\"Documentation\">📖</a> <a href=\"#maintenance-Pyrolistical\" title=\"Maintenance\">🚧</a> <a href=\"#ideas-Pyrolistical\" title=\"Ideas, Planning, & Feedback\">🤔</a></td>\n    <td align=\"center\"><a href=\"https://zoontek.me/\"><img src=\"https://avatars.githubusercontent.com/u/1902323?v=4?s=100\" width=\"100px;\" alt=\"\"/><br /><sub><b>Mathieu Acthernoene</b></sub></a><br /><a href=\"#ideas-zoontek\" title=\"Ideas, Planning, & Feedback\">🤔</a></td>\n  </tr>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n## License\n\nThe MIT License.\n\nSee [LICENSE](LICENSE)\n","engines":{"node":">= 10.*"},"exports":{".":{"types":"./dist/types/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"},"./Bool":{"types":"./dist/types/Bool/index.d.ts","import":"./dist/Bool.mjs","require":"./dist/Bool.js"},"./Dict":{"types":"./dist/types/Dict/index.d.ts","import":"./dist/Dict.mjs","require":"./dist/Dict.js"},"./flow":{"types":"./dist/types/flow.d.ts","import":"./dist/flow.mjs","require":"./dist/flow.js"},"./pipe":{"types":"./dist/types/pipe.d.ts","import":"./dist/pipe.mjs","require":"./dist/pipe.js"},"./Array":{"types":"./dist/types/Array/index.d.ts","import":"./dist/Array.mjs","require":"./dist/Array.js"},"./Guards":{"types":"./dist/types/Guards/index.d.ts","import":"./dist/Guards.mjs","require":"./dist/Guards.js"},"./Number":{"types":"./dist/types/Number/index.d.ts","import":"./dist/Number.mjs","require":"./dist/Number.js"},"./Option":{"types":"./dist/types/Option/index.d.ts","import":"./dist/Option.mjs","require":"./dist/Option.js"},"./Result":{"types":"./dist/types/Result/index.d.ts","import":"./dist/Result.mjs","require":"./dist/Result.js"},"./String":{"types":"./dist/types/String/index.d.ts","import":"./dist/String.mjs","require":"./dist/String.js"},"./Function":{"types":"./dist/types/Function/index.d.ts","import":"./dist/Function.mjs","require":"./dist/Function.js"},"./AsyncData":{"types":"./dist/types/AsyncData/index.d.ts","import":"./dist/AsyncData.mjs","require":"./dist/AsyncData.js"},"./AsyncOption":{"types":"./dist/types/AsyncOption/index.d.ts","import":"./dist/AsyncOption.mjs","require":"./dist/AsyncOption.js"},"./AsyncResult":{"types":"./dist/types/AsyncResult/index.d.ts","import":"./dist/AsyncResult.mjs","require":"./dist/AsyncResult.js"},"./package.json":"./package.json","./AsyncDataResult":{"types":"./dist/types/AsyncDataResult/index.d.ts","import":"./dist/AsyncDataResult.mjs","require":"./dist/AsyncDataResult.js"}},"gitHead":"cb0eb2d006273366a0d6a73e29f0d5a1c6f47e82","license":"MIT","scripts":{"test":"yarn foy -c ./scripts/test.ts","build":"yarn foy -c ./scripts/build.ts","clean":"rm -rf ./dist && rm -f ./tsconfig.tsbuildinfo","re:dev":"yarn rescript build -w","generate":"yarn foy -c ./scripts/generate.ts","re:build":"yarn rescript build","re:clean":"yarn rescript clean","transform":"yarn foy -c ./scripts/transform.ts"},"_npmUser":{"name":"mobily","email":"hello@mobily.pl"},"homepage":"https://github.com/mobily/ts-belt#readme","keywords":["typescript","flow","functional-programming","functional","programming","fp","monad","option","option-type","result","result-type","array","utility","utils"],"repository":{"url":"git+https://github.com/mobily/ts-belt.git","type":"git"},"_npmVersion":"8.9.0","description":"🔧 Fast, modern, and practical utility library for FP in TypeScript.","directories":{},"maintainers":[{"name":"mobily","email":"hello@mobily.pl"}],"sideEffects":false,"_nodeVersion":"16.14.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"foy":"^0.2.16","jest":"^29.0.3","globby":"^11.0.3","rollup":"^3.5.0","gentype":"^4.5.0","ts-jest":"^29.0.2","ts-node":"^10.9.1","prettier":"^2.7.1","rescript":"^10.0.1","coveralls":"^3.1.1","ts-expect":"^1.3.0","node-fetch":"^3.2.10","typescript":"^4.8.3","@types/jest":"^29.0.3","common-tags":"^1.8.2","jscodeshift":"^0.13.1","@types/jscodeshift":"^0.11.5","@rollup/pluginutils":"^5.0.2","all-contributors-cli":"^6.20.5","rollup-plugin-terser":"^7.0.2","@rollup/plugin-commonjs":"^23.0.3","@ryyppy/rescript-promise":"^2.1.0","@rollup/plugin-node-resolve":"^15.0.1"},"cacheDirectories":["node_modules"],"_npmOperationalInternal":{"tmp":"tmp/ts-belt_4.0.0-rc.3_1671010883294_0.1118816573919692","host":"s3://npm-registry-packages"},"_id":"@mobily/ts-belt@4.0.0-rc.3","version":"4.0.0-rc.3"}