{"id":19529581,"url":"https://github.com/pacexy/pire","last_synced_at":"2025-02-26T02:42:31.342Z","repository":{"id":57324878,"uuid":"304926021","full_name":"pacexy/pire","owner":"pacexy","description":"Pipe Request - make your request like a pipeline.","archived":false,"fork":false,"pushed_at":"2020-10-22T13:43:18.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-18T02:12:25.985Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/pacexy.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":"2020-10-17T16:55:13.000Z","updated_at":"2020-10-22T13:56:01.000Z","dependencies_parsed_at":"2022-09-05T10:41:02.445Z","dependency_job_id":null,"html_url":"https://github.com/pacexy/pire","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/pacexy%2Fpire","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pacexy%2Fpire/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pacexy%2Fpire/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pacexy%2Fpire/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pacexy","download_url":"https://codeload.github.com/pacexy/pire/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240783111,"owners_count":19856776,"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-11-11T01:26:03.372Z","updated_at":"2025-02-26T02:42:31.237Z","avatar_url":"https://github.com/pacexy.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pire\n**Pi**pe **Re**quest - make your request like a pipeline.\n\n## Example\n\u003e You can write the template string in `pir` file.\n\nIf you don't want a input, use `void`.\n\n```typescript\nimport { parsep } from 'pire'\n\nconst pir = parsep(`\nvoid -\u003e riot.league {\n  summonerName\n  leaguePoints\n  rank\n  wins\n  losses\n} -\u003e summonerId\n\nsummonerId -\u003e riot.summoner {\n  profileIconId\n  summonerLevel\n  extra {\n    matchIds\n  }\n} -\u003e extra.playerId\n\nID -\u003e leaguepedia.player {\n  ID\n  Team\n  Role\n}\n`)\n```\n\nIt will be parsed as:\n```\n[\n  {\n    collectionPath: [ 'riot', 'league' ],\n    projection: { summonerName: 1, leaguePoints: 1, rank: 1, wins: 1, losses: 1 },\n    outputFieldPath: [ 'summonerId' ]\n  },\n  {\n    inputFieldPath: [ 'summonerId' ],\n    collectionPath: [ 'riot', 'summoner' ],\n    projection: { profileIconId: 1, summonerLevel: 1, extra: { matchIds: 1 } },\n    outputFieldPath: [ 'extra', 'playerId' ]\n  },\n  {\n    inputFieldPath: [ 'ID' ],\n    collectionPath: [ 'leaguepedia', 'player' ],\n    projection: { ID: 1, Team: 1, Role: 1 }\n  }\n]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpacexy%2Fpire","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpacexy%2Fpire","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpacexy%2Fpire/lists"}