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

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 0.1.0 to 0.1.1

2

package.json
{
"name": "angular-html5",
"description": "Change your ng-attributes to data-ng-attributes for html5 validation",
"version": "0.1.0",
"version": "0.1.1",
"engines": {

@@ -6,0 +6,0 @@ "node": ">=0.10.0"

@@ -89,3 +89,3 @@ # angular-html5

???
??

@@ -102,22 +102,22 @@ ## API

`htmlify.test(str)`
Test whether a string containing HTML has `ng-attributes` that can be transformed
to `data-ng-attributes`.
Accepts: `string`
**Usage**: `htmlify.test(str)`
Returns: `Boolean`
**Accepts**: `string`
**Returns**: `Boolean`
#### replace
`htmlify.replace(str)`
Return a transformed string that contains `data-ng-attributes` or relevant transformed attributes
for `customPrefixes`.
Accepts: `string`
**Usage**: `htmlify.replace(str)`
Returns: `string`
**Accepts**: `string`
**Returns**: `string`
### params

@@ -129,4 +129,2 @@

Type: `Array`
An array to optionally add custom prefixes to the list of converted directives.

@@ -140,5 +138,7 @@

Defaults to `[ ]`
**Type**: `Array`
Example usage:
**Default**: `[ ]`
**Usage**:
```js

@@ -145,0 +145,0 @@ var str = require('angular-html5')({customPrefixes: ['ui-']}).replace(oldStr);

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