{"id":16244580,"url":"https://github.com/indexzero/npm-publish-split-stream","last_synced_at":"2025-03-19T18:33:10.728Z","repository":{"id":57312218,"uuid":"39248631","full_name":"indexzero/npm-publish-split-stream","owner":"indexzero","description":"Splits an npm publish request using jsonstream and duplexify","archived":false,"fork":false,"pushed_at":"2015-09-20T18:48:17.000Z","size":122,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-17T09:52:17.486Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/indexzero.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":"2015-07-17T10:21:30.000Z","updated_at":"2024-07-03T09:11:46.000Z","dependencies_parsed_at":"2022-09-16T12:52:06.316Z","dependency_job_id":null,"html_url":"https://github.com/indexzero/npm-publish-split-stream","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/indexzero%2Fnpm-publish-split-stream","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/indexzero%2Fnpm-publish-split-stream/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/indexzero%2Fnpm-publish-split-stream/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/indexzero%2Fnpm-publish-split-stream/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/indexzero","download_url":"https://codeload.github.com/indexzero/npm-publish-split-stream/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244483830,"owners_count":20460189,"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-10-10T14:19:44.718Z","updated_at":"2025-03-19T18:33:10.436Z","avatar_url":"https://github.com/indexzero.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# npm-publish-split-stream\nSplits an npm publish request using jsonstream and duplexify.\n\n## Usage\n\n``` js\nvar PublishSplitStream = require('npm-publish-split-stream');\nvar http = require('http');\nvar zlib = require('zlib');\nvar tar = require('tar');\nvar concat = require('concat-stream');\n\nhttp.createServer(function (req, res) {\n  //\n  // Create a tar parser and listen for\n  // entries from it.\n  //\n  var parser = tar.Parse();\n  parser.on('entry', function (e) {\n    // read the entire entry and log the contents.\n    e.pipe(concat({ encoding: 'string' }, function (content) {\n      console.log(e.path, content)\n    }));\n  });\n\n  //\n  // Parse the tarball from our request and then\n  // process it.\n  //\n  req.pipe(new PublishSplitStream())\n    .pipe(zlib.Unzip())\n    .pipe(parser);\n});\n```\n\n##### Author: [Charlie Robbins](https://github.com/indexzero)\n##### Contributors: [Martijn Swaagman](https://github.com/swaagie), [Arnout Kazemier](https://github.com/3rd-eden)\n##### LICENSE: MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Findexzero%2Fnpm-publish-split-stream","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Findexzero%2Fnpm-publish-split-stream","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Findexzero%2Fnpm-publish-split-stream/lists"}