url-tar

1.1.0 • Public • Published

Url to Tarball

Stream url(s) to a tarball.

Tries to write correct file extensions and index.html

Usage

var fs = require('fs')
var urlTar = require('url-tar')

var path = 'YourTarBall.tar'
var yourTarball = fs.createWriteStream(path)

// pipe the urlTar stream to your tar file
urlTar('http://google.com').pipe(yourTarball)
yourTarball.on('close', function () {
  console.log(path + ' has been written')
})

Readme

Keywords

none

Package Sidebar

Install

npm i url-tar

Weekly Downloads

0

Version

1.1.0

License

ISC

Last publish

Collaborators

  • jhand