node package manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »



recursive file and folder copy using in memory tar streams


Pass in source and destination paths. All files/folders will be copied from source to destination.

The destination folder will be created if it does not exist.

var cptar = require('cptar')
cptar('./source', './dest', function (err) {
  if (err) throw err
  // your data has been copied