Socket
Socket
Sign inDemoInstall

angular-html5

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-html5 - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

8

package.json
{
"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

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