Socket
Socket
Sign inDemoInstall

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 - npm Package Compare versions

Comparing version 0.2.2 to 0.2.3

1

index.js

@@ -6,3 +6,2 @@ 'use strict';

module.exports = function (params) {
//perhaps in the future
params = params || {};

@@ -9,0 +8,0 @@ var verbose = Boolean(params.verbose);

4

package.json
{
"name": "gulp-angular-htmlify",
"description": "Change your ng-attributes to data-ng-attributes for html5 validation",
"version": "0.2.2",
"version": "0.2.3",
"engines": {

@@ -42,3 +42,3 @@ "node": ">=0.10.0"

"dependencies": {
"angular-html5": "^0.1.1",
"angular-html5": "^0.2.0",
"gulp-util": "^3.0.0",

@@ -45,0 +45,0 @@ "through2": "^0.5.1"

@@ -68,2 +68,3 @@ # [gulp](https://github.com/wearefractal/gulp)-angular-htmlify

//simple usage
gulp.task('htmlify', function() {

@@ -74,2 +75,19 @@ gulp.src('public/**/*.html')

});
//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/'));
});
```

@@ -87,2 +105,4 @@

Default: `[]`
An array to optionally add custom prefixes to the list of converted directives.

@@ -96,4 +116,2 @@

Defaults to `[ ]`
#### verbose

@@ -103,6 +121,6 @@

Default: `false`
Whether to log files that had ng-directives detected and replaced. (Useful for debugging).
Defaults to **false**.
Example usage:

@@ -109,0 +127,0 @@ ```js

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