Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gulp-logger

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-logger

Gulp plugin for logging stream stages, transformation and progress

  • 0.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

gulp-logger

Logger plugin for gulp for logging stream stages, transformations and progress.

Install

$ npm install gulp-logger --save

Basic Usage

Something like this:

var gulp = require('gulp'),
    gzip = require('gulp-gzip'),
    logger = require('gulp-logger');

gulp.task('gzip', function () {
    gulp.src('**/*.js')
        .pipe(logger({
            before: 'Starting Gzip...',
            after: 'Gzipping complete!',
            extname: '.js.gz',
            showChange: true
        }))
        .pipe(gzip());
});

And a folder structure like this:

files-to-stream/
    |- baz/
    |   |- file.js
    |   `- wat.js
    |
    |- foo.js
    |- bar.js
    `- derp.js

Would give you this:

Imgur

Options

before String

The message you want to show before the chunks are shown.

after String

The message you want to show after the chunks are shown.

beforeEach String

The message you want to show before each chunk.

afterEach String

The message you want to show after each chunk.

prefix String

A constant value to prefix to each filename in the chunk.

suffix String

A constant value to suffix to each filename in the chunk.

extname String

A constant value to set as the extension for each filename in the chunk.

basename String

A constant value to set as the basename for each filename in the chunk.

dest String

A constant value to set as the dest for each filename in the chunk.

colors Boolean

Whether or not to turn off colors on the output.

display='rel' String

How you want the path of the chunk to show.

  • 'rel': Relative path
  • 'abs': Absolute path
  • 'name': Filename

Keywords

FAQs

Package last updated on 03 Aug 2014

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc