Streamingly transform relative HTML paths to absolute urls
Install
$ npm install --save absoluteify
Usage
var absoluteify = var fs = fs
Input
Output
API
absoluteify(base)
-> TransformStream
Returns a transform stream that uses trumpet to absolute-ify <script>
, <link>
, and <img>
tags.
base
Required
Type: string
The base URL to prefix before the relative attribute URLs.
License
MIT © Ben Drucker