JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 12
  • Score
    100M100P100Q50380F
  • License CC0-1.0

Get a path of the standard cache directory for a given application

Package Exports

  • app-cache-dir

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (app-cache-dir) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

file-to-tar

NPM version Build Status Coverage Status

A Node.js module to create a tar archive from a single file

const {existsSync} = require('fs');
const fileToTar = require('file-to-tar');

fileToTar('readme.txt', 'archive.tar').subscribe({
  start() {
    console.log('Creating `archive.tar` from `readme.txt` ...');
  },
  complete() {
    console.log('`archive.tar` created.');
    existsSync('archive.tar'); //=> true
  }
});

Installation

Use npm.

npm install file-to-tar

API

const fileToTar = require('file-to-tar');

fileToTar(filePath, tarPath [, options])

filePath: string
tarPath: string
options: Object
Return: Observable (zenparsing's implementation)

const fileToTar = require('file-to-tar');

License

Creative Commons Zero v1.0 Universal