# gulp-package-number

> Add package version numbers to your files

Latest version **1.0.0** (published 2016-02-11) · ISC license · 0 weekly downloads

## Install

```sh
npm install gulp-package-number
pnpm add gulp-package-number
yarn add gulp-package-number
bun add gulp-package-number
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2016-02-11 |
| First published | 2016-02-11 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Elliott Crush |
| Maintainers | elliottcrush |
| Keywords | gulp, version, number, package.json, npm |

## Links

- npm: https://www.npmjs.com/package/gulp-package-number
- Repository: https://github.com/elliottcrush/gulp-package-number
- Homepage: https://github.com/elliottcrush/gulp-package-number#readme
- Issues: https://github.com/elliottcrush/gulp-package-number/issues
- npm.io page: https://npm.io/package/gulp-package-number

## Alternatives

- [random-seedable](https://npm.io/package/random-seedable.md) — 27.9K weekly downloads
- [n2words](https://npm.io/package/n2words.md) — 22.2K weekly downloads
- [@stdlib/math-base-special-factorialln](https://npm.io/package/@stdlib/math-base-special-factorialln.md) — 5.7K weekly downloads
- [@stdlib/math-base-special-abs2](https://npm.io/package/@stdlib/math-base-special-abs2.md) — 1.7K weekly downloads
- [commons-math-interpolation](https://npm.io/package/commons-math-interpolation.md) — 1.4K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2016-02-11

## README

# Gulp Version Number

```
npm install --save gulp-package-number
```

Require this into your existing gulpfile and away you go. Example below:

```
var gulp = require('gulp');
var rename = require('gulp-rename');
var less = require('gulp-less');
var packageNumber = require('gulp-package-number');
var LessPluginCleanCSS = require('less-plugin-clean-css');
var cleancss = new LessPluginCleanCSS({ advanced: true });

var pathLess = [
	'./brands/*/theme-deployment/*.less'
];

gulp.task('less', function() {
  gulp.src(pathLess)
  	.pipe(packageNumber())
    .pipe(less({
      plugins: [cleancss]
    }))
    .pipe(rename({
      extname: '.css',
      suffix: versionNumber + '.min'
    }))
    .pipe(gulp.dest('dist/styles'));
});

gulp.task('default', ['less']);
```

---
_Source: https://npm.io/package/gulp-package-number · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
