angular-html5
Advanced tools
Comparing version 2.0.0 to 2.1.0
{ | ||
"name": "angular-html5", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "Change your ng-attributes to data-ng-attributes for html5 validation", | ||
@@ -12,2 +12,3 @@ "repository": "pgilad/angular-html5", | ||
}, | ||
"bin": "./bin/angular-html5.js", | ||
"main": "index.js", | ||
@@ -39,4 +40,7 @@ "files": [ | ||
"dependencies": { | ||
"cheerio": "^0.18.0" | ||
"cheerio": "^0.18.0", | ||
"commander": "^2.5.0", | ||
"get-stdin": "^3.0.2", | ||
"log-symbols": "^1.0.1" | ||
} | ||
} |
@@ -58,10 +58,38 @@ # angular-html5 | ||
Install with [npm](https://npmjs.org/package/angular-html5) | ||
### Global | ||
```bash | ||
$ npm install --global angular-html5 | ||
``` | ||
npm install --save-dev angular-html5 | ||
### Usage | ||
```bash | ||
❯ angular-html5 --help | ||
Usage: angular-html5 [options] <file> | ||
Options: | ||
-h, --help output usage information | ||
-V, --version output the version number | ||
-c, --custom-prefix [prefixes] Optionally add custom prefixes to the list of converted directives. | ||
Examples: | ||
$ angular-html5 index.js | ||
$ angular-html5 --custom-prefix ui --custom-prefix gijo index.js > ./dist/index.js | ||
$ cat index.js | angular-html5 > ./dist/index.js | ||
``` | ||
## Usage | ||
### Programmatic | ||
Install with [npm](https://npmjs.org/package/angular-html5) | ||
```bash | ||
$ npm install --save-dev angular-html5 | ||
``` | ||
### Usage | ||
```js | ||
@@ -94,3 +122,3 @@ var htmlify = require('angular-html5')(); | ||
#### test | ||
#### .test(str) | ||
@@ -106,3 +134,3 @@ Test whether a string containing HTML has `ng-attributes` that can be transformed | ||
#### replace | ||
#### .replace(str) | ||
@@ -109,0 +137,0 @@ Return a transformed string that contains `data-ng-attributes` or relevant transformed attributes |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8853
169
4
1
+ Addedcommander@^2.5.0
+ Addedget-stdin@^3.0.2
+ Addedlog-symbols@^1.0.1
+ Addedansi-regex@2.1.1(transitive)
+ Addedansi-styles@2.2.1(transitive)
+ Addedchalk@1.1.3(transitive)
+ Addedcommander@2.20.3(transitive)
+ Addedescape-string-regexp@1.0.5(transitive)
+ Addedget-stdin@3.0.2(transitive)
+ Addedhas-ansi@2.0.0(transitive)
+ Addedlog-symbols@1.0.2(transitive)
+ Addedstrip-ansi@3.0.1(transitive)
+ Addedsupports-color@2.0.0(transitive)