{"id":22057254,"url":"https://github.com/sergey-shandar/purelogic-ts","last_synced_at":"2025-07-23T23:31:05.165Z","repository":{"id":65371548,"uuid":"58147868","full_name":"sergey-shandar/purelogic-ts","owner":"sergey-shandar","description":"PureLogic for TypeScript","archived":false,"fork":false,"pushed_at":"2017-02-08T03:48:30.000Z","size":308,"stargazers_count":3,"open_issues_count":4,"forks_count":0,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-11-09T12:18:34.423Z","etag":null,"topics":["big-data","lazy-evaluation","linq","map-reduce","typescript"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sergey-shandar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-05-05T17:14:29.000Z","updated_at":"2019-06-09T00:28:39.000Z","dependencies_parsed_at":"2023-01-19T22:45:18.218Z","dependency_job_id":null,"html_url":"https://github.com/sergey-shandar/purelogic-ts","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/sergey-shandar%2Fpurelogic-ts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergey-shandar%2Fpurelogic-ts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergey-shandar%2Fpurelogic-ts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergey-shandar%2Fpurelogic-ts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sergey-shandar","download_url":"https://codeload.github.com/sergey-shandar/purelogic-ts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227370656,"owners_count":17770706,"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":["big-data","lazy-evaluation","linq","map-reduce","typescript"],"created_at":"2024-11-30T16:17:22.070Z","updated_at":"2024-11-30T16:17:22.670Z","avatar_url":"https://github.com/sergey-shandar.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# purelogic-ts\n\nPureLogic-TS is an\n[embedded DSL](https://en.wikipedia.org/wiki/Domain-specific_language#Usage_patterns) for describing\n[map-reduce](https://en.wikipedia.org/wiki/MapReduce) logic on\n[TypeScript](http://www.typescriptlang.org/).\n\n[![npm version](https://badge.fury.io/js/purelogic-ts.svg)](https://badge.fury.io/js/purelogic-ts)\n[![Build Status](https://travis-ci.org/sergey-shandar/purelogic-ts.svg?branch=master)](https://travis-ci.org/sergey-shandar/purelogic-ts)\n\n## Bag Types\n\n- Input\n- One\n- FlatMap\n- DisjointUnion\n- GroupBy. The key is always a string. [ES6 Map](https://tc39.github.io/ecma262/#sec-map-objects) shouldn't be used because some back-ends may serialize objects.\n- Product\n\n## Bag Methods\n\nSee [iterable-ts](https://github.com/sergey-shandar/iterable-ts/blob/master/index.ts), [lazy.js](http://danieltao.com/lazy.js/docs/), [lodash](https://lodash.com/docs) and [underscore](http://underscorejs.org/).\n\n## Back-ends\n\n- Sync Memory\n- Async Memory\n- Event-based in Memory\n\n## Data And Data Operation Requirements\n\n- Serializable. All data should be serializable.\n- Immutable. All data operations (functions) should not change input data.\n\n## Serialazable Data\n\nUse TypeScript interfaces instead of classes. The interface should contain properties and no functions.\n\n### Serialazible Union Type\n\n```ts\ninterface MyUnion\n{\n    numberValue: number|undefined;\n    stringValue: string|undefined;\n}\n```\n\n# For Developers\n\n## Required\n\n- [Node.js](https://nodejs.org/en/) 6.7.0 or higher\n\n## Optional\n\n- [Visual Studio Code](https://www.visualstudio.com/products/code-vs)\n- TypeScript `npm install typescript@beta -g`\n\n## Getting Started\n\n- install dependencies `npm install`.\n- run unit test and coverage `npm test`.\n\n## Cloud9\n\nRun `nvm install 6.7.0 \u0026\u0026 nvm use 6.7.0` in [Cloud9](https://c9.io) workspace.\n\n## Conventions And Rules\n\n- Don't use class inheritance. Use interfaces and sealed classes.\n- Print margin column (line width) is 100 symbols.\n- Keep object properties immutable, see also https://github.com/Microsoft/TypeScript/pull/6532\n- Keep object properties non-nullable, see also https://github.com/Microsoft/TypeScript/pull/7140\n\n### ES6\n\nThe project targets \"ES6\" because TypeScript 2.0 supports `async` only for \"ES6\" and above.\nAccording to [ES6 Compatibility Table](http://kangax.github.io/compat-table/es6/), we can use ES6 for\n- Edge 14+ (Windows 10, Windows 10 Mobile, Xbox One),\n- FireFox 48+,\n- Chrome 53+ (including Android 4.2+),\n- Node 6+,\n- Safari 10 (OS X 10.12 Sierra, iOS 10 iPhone 5+).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsergey-shandar%2Fpurelogic-ts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsergey-shandar%2Fpurelogic-ts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsergey-shandar%2Fpurelogic-ts/lists"}