Socket
Book a DemoInstallSign in
Socket

gulp-micro

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-micro

Ensure your micro-lib stays micro

latest
Source
npmnpm
Version
4.0.0
Version published
Weekly downloads
5
66.67%
Maintainers
1
Weekly downloads
 
Created
Source

gulp-micro

Ensure your micro-lib stays micro

Useful when paired with a CI to verify that all pull-requests are within the size limit.

Install

npm install --save-dev gulp-micro

Usage

import gulp from 'gulp';
import micro from 'gulp-micro';

export default () => (
	gulp.src('src/app.js')
		.pipe(micro({limit: 1000}))
		.pipe(gulp.dest('dist'))
);

API

micro(options?)

options

Type: object

limit

Required
Type: number

File size limit in bytes.

Tip

Place gulp-gzip before this plugin to limit the gzipped size.

Keywords

gulpplugin

FAQs

Package last updated on 01 Nov 2023

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