# gulp-module-renamer

> rename angular module

Latest version **0.0.3** (published 2016-05-06) · ISC license · 0 weekly downloads

## Install

```sh
npm install gulp-module-renamer
pnpm add gulp-module-renamer
yarn add gulp-module-renamer
bun add gulp-module-renamer
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2016-05-06 |
| First published | 2016-05-05 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Frank Song |
| Maintainers | franksongca |
| Keywords | angular, module, rename |

## Links

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

## Dependencies (4)

- [jsonfile](https://npm.io/package/jsonfile.md) ^2.3.0
- [through2](https://npm.io/package/through2.md) ^2.0.1
- [gulp-util](https://npm.io/package/gulp-util.md) ^3.0.7
- [underscore-node](https://npm.io/package/underscore-node.md) ^0.1.2

## Recent versions

- 0.0.3 (latest) — 2016-05-06
- 0.0.0 — 2016-05-05

## README

Gulp Angular Module Renamer
====================
![gulp-ng-module-renamer build status](https://travis-ci.org/crivas/gulp-ng-module-renamer.svg?branch=master)

> Uses a regex pattern search and replace any js files with angular.modules('\*') to angular.module('ute.ui.custom') or whatever you want

Example

```js
var moduleRenamer = require('gulp-ng-module-renamer');

gulp.task('module-rename', function () {

  return gulp.src('app/js/**/*.js')
    .pipe(moduleRenamer()) // will default to default module name
    .pipe(gulp.dest('dist/js'))

});
```

Example With Options
```js
var moduleRenamer = require('gulp-ng-module-renamer');

gulp.task('module-rename', function () {

  return gulp.src('app/js/**/*.js')
    .pipe(moduleRenamer({
      newModuleName: 'custom.module.name'
      showLogs: true
    }))
    .pipe(gulp.dest('dist/js'))

});
```

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