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

gulp-angular-htmlify

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-angular-htmlify

Change your ng-attributes to data-ng-attributes for HTML5 validation

  • 2.3.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
272
decreased by-51.69%
Maintainers
1
Weekly downloads
 
Created
Source

gulp-angular-htmlify

Change your ng-attributes to data-ng-attributes for HTML5 validation using angular-html5

NPM Version NPM Downloads Build Status

Issues with the output should be reported on the angular-html5 issue tracker.

Install

Install with npm

npm install --save-dev gulp-angular-htmlify

Usage

var gulp = require('gulp');
var htmlify = require('gulp-angular-htmlify');

//simple usage
gulp.task('htmlify', function() {
    gulp.src('public/**/*.html')
        .pipe(htmlify())
        .pipe(gulp.dest('build/'));
});

//using jade as a pre-processer
gulp.task('htmlify', function() {
    gulp.src('partials/**/*.jade')
        .pipe(jade())
        .pipe(htmlify())
        .pipe(gulp.dest('build/'));
});

//Also transforming ui-attributes to data-ui-attributes
gulp.task('htmlify', function() {
    gulp.src('public/**/*.html')
        .pipe(htmlify({
            customPrefixes: ['ui-']
        }))
        .pipe(gulp.dest('build/'));
});

Options

See the angular-html5 options

Additional Options

verbose

Type: Boolean

Default: false

Whether to log files that had ng-directives detected and replaced. (Useful for debugging).

Example usage:

//...
.pipe(htmlify({
    verbose: true
    }))
// --> [gulp] Found and replaced ng-directives in index.html
//...

License

MIT @Gilad Peleg

Keywords

FAQs

Package last updated on 22 May 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

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