basant307/AI_Governance_Project
048
1# simple-concat [![travis][travis-image]][travis-url] [![npm][npm-image]][npm-url] [![downloads][downloads-image]][downloads-url] [![javascript style guide][standard-image]][standard-url]2 3[travis-image]: https://img.shields.io/travis/feross/simple-concat/master.svg4[travis-url]: https://travis-ci.org/feross/simple-concat5[npm-image]: https://img.shields.io/npm/v/simple-concat.svg6[npm-url]: https://npmjs.org/package/simple-concat7[downloads-image]: https://img.shields.io/npm/dm/simple-concat.svg8[downloads-url]: https://npmjs.org/package/simple-concat9[standard-image]: https://img.shields.io/badge/code_style-standard-brightgreen.svg10[standard-url]: https://standardjs.com11 12### Super-minimalist version of [`concat-stream`](https://github.com/maxogden/concat-stream). Less than 15 lines!13 14## install15 16```17npm install simple-concat18```19 20## usage21 22This example is longer than the implementation.23 24```js25var s = new stream.PassThrough()26concat(s, function (err, buf) {27 if (err) throw err28 console.error(buf)29})30s.write('abc')31setTimeout(function () {32 s.write('123')33}, 10)34setTimeout(function () {35 s.write('456')36}, 20)37setTimeout(function () {38 s.end('789')39}, 30)40```41 42## license43 44MIT. Copyright (c) [Feross Aboukhadijeh](http://feross.org).45 