pipethru

A tiny module that can load not only local files but remote ones and pipe them into stdout. ( Mainly designed for js/css minifying. )

Usage no npm install needed!

<script type="module">
  import pipethru from 'https://cdn.skypack.dev/pipethru';
</script>

README

Pipethru

Pipethru is a small utility module for users to fetch both remote and local sources sequentially and pipe the fetched results direct into stdout. This utility was originally designed to fetch and merge multiple remote js/css files.

Pipe internet resources and merge them into a single file

pipethru url1 url2 url3 path4 > singleFile

Concat js files and pipe them through minify module

pipethru url1.js url2.js local.js | minify --js > minified.js