List of values that can be used as name
s on HTML meta
elements.
- What is this?
- When should I use this?
- Install
- Use
- API
- Types
- Compatibility
- Security
- Related
- Contribute
- License
This is a small package that lists all the valid values for name
attributes on
HTML <meta>
elements.
Those are defined by MetaExtensions.
Probably never. Maybe as inspiration for when you’re writing meta or researching SEO and such. Or, when you’re making an HTML linter.
This package is ESM only. In Node.js (version 14.14+, 16.0+), install with npm:
npm install meta-name
In Deno with esm.sh
:
import {metaName} from 'https://esm.sh/meta-name@3'
In browsers with esm.sh
:
<script type="module">
import {metaName} from 'https://esm.sh/meta-name@3?bundle'
</script>
import {metaName} from 'meta-name'
console.log(metaName.length) //=> 379
console.log(metaName.slice(0, 10))
Yields:
[
'aglsterms.accessibility',
'aglsterms.accessmode',
'aglsterms.act',
'aglsterms.aggregationlevel',
'aglsterms.allow-search',
'aglsterms.availability',
'aglsterms.case',
'aglsterms.category',
'aglsterms.datelicensed',
'aglsterms.documenttype'
]
This package exports the identifier metaName
.
There is no default export.
List of values that can be used as name
s on HTML meta
elements
(Array<string>
).
This package is fully typed with TypeScript. It exports no additional types.
This package is at least compatible with all maintained versions of Node.js. As of now, that is Node.js 14.14+ and 16.0+. It also works in Deno and modern browsers.
This package is safe.
wooorm/a-rel
— list of link types forrel
ona
andarea
wooorm/link-rel
— list of link types forrel
onlink
wooorm/html-link-types
— list of link types as used in HTML
Yes please! See How to Contribute to Open Source.