{"name":"fp-ts","version":"2.0.0-rc.1","description":"Functional programming in TypeScript","main":"lib/index.js","module":"es6/index.js","typings":"lib/index.d.ts","sideEffects":false,"scripts":{"lint":"tslint -p tsconfig.tslint.json src/**/*.ts test/**/*.ts","jest-clear-cache":"jest --clearCache","jest":"jest --ci","prettier":"prettier --list-different \"./{src,test,tutorials}/**/*.ts\"","fix-prettier":"prettier --write \"./{src,test,tutorials}/**/*.ts\"","test":"npm run lint && npm run prettier && npm run dtslint && npm run jest-clear-cache && npm run jest && npm run docs","clean":"rimraf lib/* es6/*","build":"npm run clean && tsc && tsc -p tsconfig.es6.json","prepublish":"npm run build","doctoc":"doctoc README.md docs/introduction/code-conventions.md --title \"**Table of contents**\"","mocha":"mocha -r ts-node/register test/*.ts","dtslint":"dtslint dtslint","docs":"docs-ts"},"repository":{"type":"git","url":"git+https://github.com/gcanti/fp-ts.git"},"author":{"name":"Giulio Canti","email":"giulio.canti@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/gcanti/fp-ts/issues"},"homepage":"https://github.com/gcanti/fp-ts","devDependencies":{"@types/benchmark":"^1.0.31","@types/doctrine":"0.0.3","@types/glob":"^7.1.1","@types/jest":"22.2.2","@types/node":"^10.12.21","@types/prettier":"1.10.0","benchmark":"2.1.4","chalk":"2.2.0","docs-ts":"0.0.3","doctoc":"^1.4.0","doctrine":"2.0.0","dtslint":"github:gcanti/dtslint","fast-check":"^1.12.1","glob":"^7.1.3","jest":"^23.6.0","mocha":"^5.2.0","prettier":"^1.17.0","rimraf":"2.6.2","ts-jest":"^24.0.0","ts-node":"^8.0.2","ts-simple-ast":"17.1.1","tslint":"5.11.0","tslint-config-standard":"8.0.1","typescript":"^3.4.5"},"tags":["typescript","algebraic-data-types","functional-programming"],"keywords":["typescript","algebraic-data-types","functional-programming"],"dependencies":{},"readme":"<h3 align=\"center\">\n  <a href=\"https://gcanti.github.io/fp-ts/\">\n    <img src=\"./docs/fp-ts-logo.png\">\n  </a>\n</h3>\n\n<p align=\"center\">\nFunctional programming in TypeScript\n</p>\n\n<p align=\"center\">\n  <a href=\"https://travis-ci.org/gcanti/fp-ts\">\n    <img src=\"https://img.shields.io/travis/gcanti/fp-ts/master.svg?style=flat-square\" alt=\"build status\" height=\"20\">\n  </a>\n  <a href=\"https://david-dm.org/gcanti/fp-ts\">\n    <img src=\"https://img.shields.io/david/gcanti/fp-ts.svg?style=flat-square\" alt=\"dependency status\" height=\"20\">\n  </a>\n  <a href=\"https://www.npmjs.com/package/fp-ts\">\n    <img src=\"https://img.shields.io/npm/dm/fp-ts.svg\" alt=\"npm downloads\" height=\"20\">\n  </a>\n</p>\n\n# Typed functional programming in TypeScript\n\n`fp-ts` is a library for _typed functional programming_ in TypeScript.\n\n`fp-ts` aims to allow developers to use _popular patterns and abstractions_ that are available in most functional languages. For this, it includes the most popular data types, type classes and abstractions such as [Option](https://gcanti.github.io/fp-ts/modules/Option.ts), [Either](https://gcanti.github.io/fp-ts/modules/Either.ts), [IO](https://gcanti.github.io/fp-ts/modules/IO.ts), [Task](https://gcanti.github.io/fp-ts/modules/Task.ts), [Functor](https://gcanti.github.io/fp-ts/modules/Functor.ts), [Applicative](https://gcanti.github.io/fp-ts/modules/Applicative.ts), [Monad](https://gcanti.github.io/fp-ts/modules/Monad.ts) to empower users to write pure FP apps and libraries built atop higher order abstractions.\n\nA distinctive feature of `fp-ts` with respect to other functional libraries is its implementation of [Higher Kinded Types](<https://en.wikipedia.org/wiki/Kind_(type_theory)>), which TypeScript doesn't support natively.\n\n**Inspired by**\n\n- [Haskell](https://haskell-lang.org)\n- [PureScript](http://www.purescript.org)\n- [Scala](https://www.scala-lang.org/)\n\n<!-- START doctoc generated TOC please keep comment here to allow auto update -->\n<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->\n\n**Table of contents**\n\n- [Installation](#installation)\n  - [TypeScript compatibility](#typescript-compatibility)\n- [Documentation](#documentation)\n- [Development](#development)\n- [License](#license)\n\n<!-- END doctoc generated TOC please keep comment here to allow auto update -->\n\n# Installation\n\nTo install the stable version:\n\n```\nnpm install fp-ts\n```\n\nMake sure to always have a single version of `fp-ts` installed in your project. Multiple versions are known to cause `tsc` to hang during compilation. You can check the versions currently installed using `npm ls fp-ts` (make sure there's a single version and all the others are marked as `deduped`).\n\n## Consuming fp-ts\n\nMost examples will use the following import syntax:\n\n```\nimport { Option, some, none } from 'fp-ts/lib/Option'\n```\n\nThis will give you the widest support across tools, as you will be importing CommonJS modules.\n\nIf you use a bundler such as webpack or Rollup that supports tree-shaking, you can take advantage of this by opting to import ECMAScript modules instead:\n\n```\nimport { Option, some, none } from 'fp-ts/es6/Option'\n```\n\nNote that there are caveats such as some tools (e.g. Jest) not supporting ES6 module syntax natively yet.\n\n## TypeScript compatibility\n\n**Strictness** – This library is conceived, tested and is supposed to be consumed by TypeScript with the `strict` flag turned on.\n\n| `fp-ts` version | required `typescript` version |\n| --------------- | ----------------------------- |\n| 2.0.x+          | 3.4+                          |\n| 1.15.x+         | 3.1+                          |\n| <= 1.14.4       | 2.8+ (\\*)                     |\n\n(\\*) If you are running `< typescript@3.0.1` you have to polyfill the `unknown` type. You can use [unknown-ts](https://github.com/gcanti/unknown-ts) as a polyfill.\n\n# Documentation\n\n- [Docs](https://gcanti.github.io/fp-ts)\n- [Tutorial](https://gcanti.github.io/fp-ts/basics/)\n- [Ecosystem](https://gcanti.github.io/fp-ts/introduction/ecosystem)\n- [API Reference](https://gcanti.github.io/fp-ts/modules/)\n\n# Development\n\n- [Code conventions](https://gcanti.github.io/fp-ts/introduction/code-conventions)\n\n# License\n\nThe MIT License (MIT)\n","readmeFilename":"README.md","gitHead":"fb8a783731aa13380696743bbe30c5843971026c","_id":"fp-ts@2.0.0-rc.1","_npmVersion":"6.4.1","_nodeVersion":"10.1.0","_npmUser":{"name":"gcanti","email":"giulio.canti@gmail.com"},"dist":{"integrity":"sha512-kLHA8JbLTMpTkp7zp9bGEe0JwuFcaqgqYTXbHqx8bIJk3ErV/yhqoWyC4RZ3cIPBqUwhOZ0FrjJXelwRTrupqw==","shasum":"f374355df410dd06f48391e361c304faebfddf63","tarball":"http://registry-npm.ywwl.com/fp-ts/download/fp-ts-2.0.0-rc.1.tgz","fileCount":372,"unpackedSize":1102490,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc5BvwCRA9TVsSAnZWagAAu+cP/3eTFgStSpoZLsD1icoj\nYujtEpNfmsvvp9bTbeIQKNAmnxt7peiSEETbXMrj4onWw0AFk++4/t0lKBWI\n/26zvSAG0d6j9uD+FMQ88U+dDsrIpGGt45quZaNYjUXPJ8QWnWcwsmev9/Pi\nORQpgFaLB3Alp/U/cZaLm4w4JCfaPtIukEVbx8XF7BYsv1Ji8sT2E2mJkB/W\n2n3Qbv3Sx3y8/rFQn2OOk7rQi404oajq9LgChT+RDWFIUZ8vE5WXCTgeEhMm\nfiflh4BI6R4ckcLTdd1resvZ+pAJhoxRYQFNgH0P5U1mz2TK6Ui+OPdVGsih\nXOUvlJLK06nkiCM01Y4iWSBHBxvW+VvyeYCSqbc9Xy23t4i518VTFSxi9AyZ\nvdJVvcQcP0/lHEk/ts7LDCKoqhtKlctniHTz/6C+/y1ZTuYxeXJrKQW8woPv\nKVrKRvfJ9qn2/3hje5II4EJwjoTPADe3MoIChsoDnpZm6qOqnMIeu0dLHmfN\n/EUUTDILM20gt5t/Cpg7r76nxrNOcwSvpWpesHIJJbKTPOEzi6uCj1zTioF0\nzitPLSBMP10PtoQPYo401dML4YnyM9/qiSu7eSb6Rww6tkp4fgZbVNr2Z0WN\ndhmwj+r6xrYeks4E9RVrTN/Cw51vMG5ove0CYnCjy6ssaFRAD/in3QneQ1bL\nLiKJ\r\n=vsMz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDehFrABZueApNCBMjpkoXznh+SYb9fsbTadoQbI3O7TAiEAmG+VnRFVIqno8otAfXH4WWmXe4sgWbXnR9G9NGScaWU="}],"size":188798,"noattachment":false,"key":"/fp-ts/-/fp-ts-2.0.0-rc.1.tgz"},"maintainers":[{"name":"gcanti","email":"giulio.canti@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fp-ts_2.0.0-rc.1_1558453231440_0.7121882989390034"},"_hasShrinkwrap":false,"publish_time":1558453231569,"_cnpm_publish_time":1558453231569,"dist-tags":{"latest":"2.16.11","next":"3.0.0-alpha.26","old-version-1":"1.19.5","rc":"2.13.0-rc.6"}}