Comparing version 3.3.1 to 4.0.0
276
index.d.ts
@@ -1,123 +0,138 @@ | ||
declare namespace htmlTags { | ||
export type htmlTags = | ||
| 'a' | ||
| 'abbr' | ||
| 'address' | ||
| 'area' | ||
| 'article' | ||
| 'aside' | ||
| 'audio' | ||
| 'b' | ||
| 'base' | ||
| 'bdi' | ||
| 'bdo' | ||
| 'blockquote' | ||
| 'body' | ||
| 'br' | ||
| 'button' | ||
| 'canvas' | ||
| 'caption' | ||
| 'cite' | ||
| 'code' | ||
| 'col' | ||
| 'colgroup' | ||
| 'data' | ||
| 'datalist' | ||
| 'dd' | ||
| 'del' | ||
| 'details' | ||
| 'dfn' | ||
| 'dialog' | ||
| 'div' | ||
| 'dl' | ||
| 'dt' | ||
| 'em' | ||
| 'embed' | ||
| 'fieldset' | ||
| 'figcaption' | ||
| 'figure' | ||
| 'footer' | ||
| 'form' | ||
| 'h1' | ||
| 'h2' | ||
| 'h3' | ||
| 'h4' | ||
| 'h5' | ||
| 'h6' | ||
| 'head' | ||
| 'header' | ||
| 'hgroup' | ||
| 'hr' | ||
| 'html' | ||
| 'i' | ||
| 'iframe' | ||
| 'img' | ||
| 'input' | ||
| 'ins' | ||
| 'kbd' | ||
| 'label' | ||
| 'legend' | ||
| 'li' | ||
| 'link' | ||
| 'main' | ||
| 'map' | ||
| 'mark' | ||
| 'math' | ||
| 'menu' | ||
| 'menuitem' | ||
| 'meta' | ||
| 'meter' | ||
| 'nav' | ||
| 'noscript' | ||
| 'object' | ||
| 'ol' | ||
| 'optgroup' | ||
| 'option' | ||
| 'output' | ||
| 'p' | ||
| 'param' | ||
| 'picture' | ||
| 'pre' | ||
| 'progress' | ||
| 'q' | ||
| 'rb' | ||
| 'rp' | ||
| 'rt' | ||
| 'rtc' | ||
| 'ruby' | ||
| 's' | ||
| 'samp' | ||
| 'script' | ||
| 'search' | ||
| 'section' | ||
| 'select' | ||
| 'slot' | ||
| 'small' | ||
| 'source' | ||
| 'span' | ||
| 'strong' | ||
| 'style' | ||
| 'sub' | ||
| 'summary' | ||
| 'sup' | ||
| 'svg' | ||
| 'table' | ||
| 'tbody' | ||
| 'td' | ||
| 'template' | ||
| 'textarea' | ||
| 'tfoot' | ||
| 'th' | ||
| 'thead' | ||
| 'time' | ||
| 'title' | ||
| 'tr' | ||
| 'track' | ||
| 'u' | ||
| 'ul' | ||
| 'var' | ||
| 'video' | ||
| 'wbr' | ||
} | ||
export type HtmlTags = | ||
| 'a' | ||
| 'abbr' | ||
| 'address' | ||
| 'area' | ||
| 'article' | ||
| 'aside' | ||
| 'audio' | ||
| 'b' | ||
| 'base' | ||
| 'bdi' | ||
| 'bdo' | ||
| 'blockquote' | ||
| 'body' | ||
| 'br' | ||
| 'button' | ||
| 'canvas' | ||
| 'caption' | ||
| 'cite' | ||
| 'code' | ||
| 'col' | ||
| 'colgroup' | ||
| 'data' | ||
| 'datalist' | ||
| 'dd' | ||
| 'del' | ||
| 'details' | ||
| 'dfn' | ||
| 'dialog' | ||
| 'div' | ||
| 'dl' | ||
| 'dt' | ||
| 'em' | ||
| 'embed' | ||
| 'fieldset' | ||
| 'figcaption' | ||
| 'figure' | ||
| 'footer' | ||
| 'form' | ||
| 'h1' | ||
| 'h2' | ||
| 'h3' | ||
| 'h4' | ||
| 'h5' | ||
| 'h6' | ||
| 'head' | ||
| 'header' | ||
| 'hgroup' | ||
| 'hr' | ||
| 'html' | ||
| 'i' | ||
| 'iframe' | ||
| 'img' | ||
| 'input' | ||
| 'ins' | ||
| 'kbd' | ||
| 'label' | ||
| 'legend' | ||
| 'li' | ||
| 'link' | ||
| 'main' | ||
| 'map' | ||
| 'mark' | ||
| 'math' | ||
| 'menu' | ||
| 'menuitem' | ||
| 'meta' | ||
| 'meter' | ||
| 'nav' | ||
| 'noscript' | ||
| 'object' | ||
| 'ol' | ||
| 'optgroup' | ||
| 'option' | ||
| 'output' | ||
| 'p' | ||
| 'param' | ||
| 'picture' | ||
| 'pre' | ||
| 'progress' | ||
| 'q' | ||
| 'rb' | ||
| 'rp' | ||
| 'rt' | ||
| 'rtc' | ||
| 'ruby' | ||
| 's' | ||
| 'samp' | ||
| 'script' | ||
| 'search' | ||
| 'section' | ||
| 'select' | ||
| 'slot' | ||
| 'small' | ||
| 'source' | ||
| 'span' | ||
| 'strong' | ||
| 'style' | ||
| 'sub' | ||
| 'summary' | ||
| 'sup' | ||
| 'svg' | ||
| 'table' | ||
| 'tbody' | ||
| 'td' | ||
| 'template' | ||
| 'textarea' | ||
| 'tfoot' | ||
| 'th' | ||
| 'thead' | ||
| 'time' | ||
| 'title' | ||
| 'tr' | ||
| 'track' | ||
| 'u' | ||
| 'ul' | ||
| 'var' | ||
| 'video' | ||
| 'wbr'; | ||
export type VoidHtmlTags = | ||
| 'area' | ||
| 'base' | ||
| 'br' | ||
| 'col' | ||
| 'embed' | ||
| 'hr' | ||
| 'img' | ||
| 'input' | ||
| 'link' | ||
| 'menuitem' | ||
| 'meta' | ||
| 'param' | ||
| 'source' | ||
| 'track' | ||
| 'wbr'; | ||
/** | ||
@@ -128,3 +143,3 @@ List of standard HTML tags. | ||
``` | ||
import htmlTags = require('html-tags'); | ||
import htmlTags from 'html-tags'; | ||
@@ -135,4 +150,17 @@ console.log(htmlTags); | ||
*/ | ||
declare const htmlTags: readonly htmlTags.htmlTags[]; | ||
declare const htmlTags: readonly HtmlTags[]; | ||
export = htmlTags; | ||
export default htmlTags; | ||
/** | ||
List of standard, self-closing HTML tags. | ||
@example | ||
``` | ||
import {voidHtmlTags} from 'html-tags'; | ||
console.log(voidHtmlTags); | ||
//=> ['area', 'base', 'br', …] | ||
``` | ||
*/ | ||
export const voidHtmlTags: readonly VoidHtmlTags[]; |
@@ -1,2 +0,5 @@ | ||
'use strict'; | ||
module.exports = require('./html-tags.json'); | ||
import htmlTags from './html-tags.json' with {type: 'json'}; | ||
import voidHtmlTags from './html-tags-void.json' with {type: 'json'}; | ||
export default htmlTags; | ||
export {voidHtmlTags}; |
{ | ||
"name": "html-tags", | ||
"version": "3.3.1", | ||
"version": "4.0.0", | ||
"description": "List of standard HTML tags", | ||
@@ -13,7 +13,14 @@ "license": "MIT", | ||
}, | ||
"type": "module", | ||
"exports": { | ||
"types": "./index.d.ts", | ||
"default": "./index.js" | ||
}, | ||
"sideEffects": false, | ||
"engines": { | ||
"node": ">=8" | ||
"node": ">=18.20" | ||
}, | ||
"scripts": { | ||
"test": "xo && ava && tsd" | ||
"//test": "xo && ava", | ||
"test": "ava" | ||
}, | ||
@@ -23,4 +30,2 @@ "files": [ | ||
"index.d.ts", | ||
"void.js", | ||
"void.d.ts", | ||
"html-tags.json", | ||
@@ -41,11 +46,5 @@ "html-tags-void.json" | ||
"devDependencies": { | ||
"ava": "^1.4.1", | ||
"tsd": "^0.7.2", | ||
"xo": "^0.24.0" | ||
}, | ||
"xo": { | ||
"rules": { | ||
"import/extensions": "off" | ||
} | ||
"ava": "^6.1.2", | ||
"xo": "^0.58.0" | ||
} | ||
} |
@@ -11,5 +11,5 @@ # html-tags | ||
```sh | ||
npm install html-tags | ||
``` | ||
$ npm install html-tags | ||
``` | ||
@@ -19,3 +19,3 @@ ## Usage | ||
```js | ||
const htmlTags = require('html-tags'); | ||
import htmlTags from 'html-tags'; | ||
@@ -29,3 +29,3 @@ console.log(htmlTags); | ||
```js | ||
const voidHtmlTags = require('html-tags/void'); | ||
import {voidHtmlTags} from 'html-tags'; | ||
@@ -32,0 +32,0 @@ console.log(voidHtmlTags); |
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
2
Yes
5760
7
297