Socket
Book a DemoInstallSign in
Socket

gulp-nar

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-nar

Create and extract nar archives

latest
Source
npmnpm
Version
0.4.1
Version published
Maintainers
1
Created
Source

gulp-nar Build Status Dependency Status NPM version

Create and extract nar archives from Gulp

Installation

Install nar as global package

$ npm install -g nar

Install the task

$ npm install gulp-nar --save-dev

Usage

var gulp = require('gulp')
var nar = require('gulp-nar')

gulp.task('create', function () {
  gulp.src('package.json')
    .pipe(nar.create('releases/'))
})

gulp.task('create-executable', function () {
  gulp.src('package.json')
    .pipe(nar.createExecutable('releases/'))
})

gulp.task('extract', function () {
  gulp.src('app.nar')
    .pipe(nar.extract('app/'))
})

See gulpfile.js for more examples

API

nar.create(path, options)

Creates an archive according to the package.json configuration

  • path string Destination directory for the nar archive. Default to current directory
  • options object Archive creation options

nar.createExecutable(path, options)

Creates an executable binary-like archive

  • path string Destination directory for the nar archive. Default to current directory
  • options object Executable creation options

nar.extract(path, options)

Extract archive content into a directory

  • path string Destination directory for the extracted files. Default to current directory
  • options object Archive extract options

License

MIT © Tomas Aparicio

Keywords

gulpplugin

FAQs

Package last updated on 10 Jan 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts