svg-element-attributes
Advanced tools
Comparing version 1.3.0 to 1.3.1
{ | ||
"name": "svg-element-attributes", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "Map of SVG elements to allowed attributes", | ||
@@ -17,2 +17,6 @@ "license": "MIT", | ||
"bugs": "https://github.com/wooorm/svg-element-attributes/issues", | ||
"funding": { | ||
"type": "github", | ||
"url": "https://github.com/sponsors/wooorm" | ||
}, | ||
"author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)", | ||
@@ -34,11 +38,11 @@ "contributors": [ | ||
"hast-util-select": "^3.0.0", | ||
"hast-util-to-string": "^1.0.1", | ||
"prettier": "^1.12.1", | ||
"hast-util-to-string": "^1.0.0", | ||
"prettier": "^1.0.0", | ||
"rehype-parse": "^6.0.0", | ||
"remark-cli": "^6.0.0", | ||
"remark-preset-wooorm": "^4.0.0", | ||
"tape": "^4.4.0", | ||
"tinyify": "^2.5.0", | ||
"unified": "^7.0.0", | ||
"xo": "^0.24.0" | ||
"remark-cli": "^7.0.0", | ||
"remark-preset-wooorm": "^6.0.0", | ||
"tape": "^4.0.0", | ||
"tinyify": "^2.0.0", | ||
"unified": "^8.0.0", | ||
"xo": "^0.25.0" | ||
}, | ||
@@ -45,0 +49,0 @@ "scripts": { |
@@ -7,22 +7,21 @@ # svg-element-attributes | ||
Map of SVG elements to allowed attributes. Also contains global | ||
attributes under `'*'`. | ||
Map of SVG elements to allowed attributes. | ||
Also contains global attributes under `'*'`. | ||
Includes attributes from [SVG 1.1][1.1], [SVG Tiny 1.2][1.2], and [SVG 2][2.0]. | ||
> **Note**: Does not include ARIA attributes (`role`, `aria-*`), | ||
> `xml:*` or `xlink:*` attributes, event attributes (`on*`), or | ||
> `ev:event`. | ||
> **Note**: Does not include ARIA attributes (`role`, `aria-*`), `xml:*` or | ||
> `xlink:*` attributes, event attributes (`on*`), or `ev:event`. | ||
## Installation | ||
## Install | ||
[npm][]: | ||
```bash | ||
```sh | ||
npm install svg-element-attributes | ||
``` | ||
## Usage | ||
## Use | ||
```javascript | ||
```js | ||
var svgElementAttributes = require('svg-element-attributes') | ||
@@ -138,7 +137,6 @@ | ||
`Object.<Array.<string>>` — Map of lower-case tag-names to an array of | ||
attribute names. | ||
`Object.<Array.<string>>` — Map of tag names to an array of attribute names. | ||
The object contains one special key: `'*'`, which contains global | ||
attributes that apply to all SVG elements. | ||
The object contains one special key: `'*'`, which contains global attributes | ||
that apply to all SVG elements. | ||
@@ -145,0 +143,0 @@ ## License |
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
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
88537
170