https://github.com/jamen/pull-concat-files
Concat pull-stream files into one
https://github.com/jamen/pull-concat-files
Last synced: 8 months ago
JSON representation
Concat pull-stream files into one
- Host: GitHub
- URL: https://github.com/jamen/pull-concat-files
- Owner: jamen
- License: mit
- Created: 2017-05-13T08:02:14.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-13T08:21:37.000Z (about 9 years ago)
- Last Synced: 2025-05-26T16:00:06.838Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# pull-concat-files
> Concat pull-stream files into one
Simple `file -> file` concat. Consumes all files in the stream, use something like `pull.filter` or globs beforehand.
```js
pull(
read(__dirname + '/src/**/*.css'),
concat('app.css'),
write(__dirname + '/out/')
)
```
## Install
```sh
npm install --save pull-concat-files
```
```sh
yarn add pull-concat-files
```
## Usage
### `concat(path, sep?)`
Concats all files in the stream into one file under `path`.
```js
pull
read('src/**/*.css'),
concat('app.css'),
write('out/')
)
```
## Also see
- [`pull-files`] for reading and writing pull-stream files
- [`pull-bundle`] for bundle your whole project
- [`pull-bundle-js`] for bundling with browserify
---
Maintained by [Jamen Marz](https://git.io/jamen) (See on [Twitter](https://twitter.com/jamenmarz) and [GitHub](https://github.com/jamen) for questions & updates)
[`pull-files`]: https://github.com/jamen/pull-files
[`pull-bundle`]: https://github.com/jamen/pull-bundle
[`pull-bundle-js`]: https://github.com/jamen/pull-bundle-js