{"id":15828773,"url":"https://github.com/shannonmoeller/async-map-stream","last_synced_at":"2025-08-03T04:33:58.821Z","repository":{"id":57185670,"uuid":"44758605","full_name":"shannonmoeller/async-map-stream","owner":"shannonmoeller","description":null,"archived":false,"fork":false,"pushed_at":"2018-01-20T23:07:06.000Z","size":17,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-03T04:33:29.698Z","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/shannonmoeller.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-10-22T16:32:19.000Z","updated_at":"2018-01-20T22:37:32.000Z","dependencies_parsed_at":"2022-09-06T04:11:34.420Z","dependency_job_id":null,"html_url":"https://github.com/shannonmoeller/async-map-stream","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/shannonmoeller/async-map-stream","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shannonmoeller%2Fasync-map-stream","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shannonmoeller%2Fasync-map-stream/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shannonmoeller%2Fasync-map-stream/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shannonmoeller%2Fasync-map-stream/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shannonmoeller","download_url":"https://codeload.github.com/shannonmoeller/async-map-stream/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shannonmoeller%2Fasync-map-stream/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268495891,"owners_count":24259397,"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","status":"online","status_checked_at":"2025-08-03T02:00:12.545Z","response_time":2577,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-05T10:42:22.915Z","updated_at":"2025-08-03T04:33:58.790Z","avatar_url":"https://github.com/shannonmoeller.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `async-map-stream`\n\n[![NPM version][npm-img]][npm-url] [![Downloads][downloads-img]][npm-url] [![Build Status][travis-img]][travis-url] [![Coverage Status][coveralls-img]][coveralls-url] [![Chat][gitter-img]][gitter-url] [![Tip][amazon-img]][amazon-url]\n\nA version of `map-stream` that supports callbacks, promises, observables, and streams. Always uses [`objectMode`][mode].\n\n## Install\n\n```\n$ npm install --save async-map-stream\n```\n\n## Usage\n\n```js\nvar map = require('async-map-stream');\n\nvinylFs\n    .src('src/**')\n    .pipe(map(function (file) {\n        // make observations\n        return Observable.just(file);\n    }))\n    .pipe(map(function (file) {\n        // make promises\n        return Promise.resolve(file);\n    }))\n    .pipe(map(function (file, cb) {\n        // kick it old-school\n        cb(null, file);\n    }))\n    .pipe(vinylFs.dest('dist'));\n```\n\n## API\n\n### `map([options,] transform [, flush]) : TransformStream`\n\nSee the [`through2`][through2] documentation for all possible options and arguments.\n\n#### transform(data [, cb])\n#### flush([cb])\n\nSee the [`async-done`][done] documentation for all possible arguments and return types.\n\n## Test\n\n```\n$ npm test\n```\n\n## Contribute\n\n[![Tasks][waffle-img]][waffle-url]\n\nStandards for this project, including tests, code coverage, and semantics are enforced with a build tool. Pull requests must include passing tests with 100% code coverage and no linting errors.\n\n----\n\nMIT © [Shannon Moeller](http://shannonmoeller.com)\n\n[done]:          http://npm.im/async-done\n[mode]:          https://nodejs.org/api/stream.html#stream_object_mode\n[through2]:      http://npm.im/through2\n\n[amazon-img]:    https://img.shields.io/badge/amazon-tip_jar-yellow.svg?style=flat-square\n[amazon-url]:    https://www.amazon.com/gp/registry/wishlist/1VQM9ID04YPC5?sort=universal-price\n[coveralls-img]: http://img.shields.io/coveralls/shannonmoeller/async-map-stream/master.svg?style=flat-square\n[coveralls-url]: https://coveralls.io/r/shannonmoeller/async-map-stream\n[downloads-img]: http://img.shields.io/npm/dm/async-map-stream.svg?style=flat-square\n[gitter-img]:    http://img.shields.io/badge/gitter-join_chat-1dce73.svg?style=flat-square\n[gitter-url]:    https://gitter.im/togajs/toga\n[npm-img]:       http://img.shields.io/npm/v/async-map-stream.svg?style=flat-square\n[npm-url]:       https://npmjs.org/package/async-map-stream\n[travis-img]:    http://img.shields.io/travis/shannonmoeller/async-map-stream.svg?style=flat-square\n[travis-url]:    https://travis-ci.org/shannonmoeller/async-map-stream\n[waffle-img]:    http://img.shields.io/github/issues/shannonmoeller/async-map-stream.svg?style=flat-square\n[waffle-url]:    http://waffle.io/shannonmoeller/async-map-stream\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshannonmoeller%2Fasync-map-stream","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshannonmoeller%2Fasync-map-stream","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshannonmoeller%2Fasync-map-stream/lists"}