{"id":20159718,"url":"https://github.com/nowsecure/epf-parser","last_synced_at":"2025-04-09T23:36:55.663Z","repository":{"id":57226326,"uuid":"59227277","full_name":"nowsecure/epf-parser","owner":"nowsecure","description":"Parse iTunes Enterprise Partner Feeds.","archived":false,"fork":false,"pushed_at":"2016-06-14T07:38:32.000Z","size":15,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-24T01:25:33.512Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nowsecure.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-05-19T17:19:29.000Z","updated_at":"2021-01-13T19:49:55.000Z","dependencies_parsed_at":"2022-08-24T11:00:57.470Z","dependency_job_id":null,"html_url":"https://github.com/nowsecure/epf-parser","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nowsecure%2Fepf-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nowsecure%2Fepf-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nowsecure%2Fepf-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nowsecure%2Fepf-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nowsecure","download_url":"https://codeload.github.com/nowsecure/epf-parser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247826507,"owners_count":21002686,"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-14T00:09:42.760Z","updated_at":"2025-04-09T23:36:55.614Z","avatar_url":"https://github.com/nowsecure.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# epf-parser\n\nParse [iTunes Enterprise Partner Feeds](https://affiliate.itunes.apple.com/resources/documentation/itunes-enterprise-partner-feed/).\n\n## Usage\n\n```js\n'use strict';\n\nconst fs = require('fs');\nconst parse = require('epf-parser');\n\nfs.createReadStream('/tmp/application')\n  .pipe(parse((meta, rows) =\u003e {\n    console.log('meta', meta);\n    rows.on('data', row =\u003e console.log('row', row));\n  }));\n```\n\nWill call back with `meta` like this, with all the meta k/v pairs in one object, and columns and column types merged:\n\n```js\nmeta { columns:\n   [ { name: 'export_date', type: 'BIGINT' },\n     { name: 'application_id', type: 'INTEGER' },\n     { name: 'title', type: 'VARCHAR(1000)' },\n     { name: 'recommended_age', type: 'VARCHAR(20)' },\n     { name: 'artist_name', type: 'VARCHAR(1000)' },\n     { name: 'seller_name', type: 'VARCHAR(1000)' },\n     { name: 'company_url', type: 'VARCHAR(1000)' },\n     { name: 'support_url', type: 'VARCHAR(1000)' },\n     { name: 'view_url', type: 'VARCHAR(1000)' },\n     { name: 'artwork_url_large', type: 'VARCHAR(1000)' },\n     { name: 'artwork_url_small', type: 'VARCHAR(1000)' },\n     { name: 'itunes_release_date', type: 'DATETIME' },\n     { name: 'copyright', type: 'VARCHAR(4000)' },\n     { name: 'description', type: 'LONGTEXT' },\n     { name: 'version', type: 'VARCHAR(100)' },\n     { name: 'itunes_version', type: 'VARCHAR(100)' },\n     { name: 'download_size', type: 'BIGINT' } ],\n  primaryKey: 'application_id',\n  exportMode: 'INCREMENTAL' }\n```\n\nWill emit rows as `data` events like this (real data hidden for reasons):\n\n```\nrow [ Buffer('some string'),\n  Buffer('some string'),\n  Buffer('some string'),\n  Buffer('some string'),\n  Buffer('some string'),\n  Buffer('some string'),\n  Buffer('some string'),\n  Buffer('some string'),\n  Buffer('some string'),\n  Buffer('some string'),\n  Buffer('some string'),\n  Buffer('some string'),\n  Buffer('some string'),\n  Buffer('some string'),\n  Buffer('some string'),\n  Buffer('some string'),\n  Buffer('some string') ]\n```\n\nFor debugging purposes, every row will have the original raw line attached as `.raw`.\n\n## License\n\n  MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnowsecure%2Fepf-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnowsecure%2Fepf-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnowsecure%2Fepf-parser/lists"}