meta-name
List of values that can be used as name
s on HTML meta
elements.
Contents
- What is this?
- When should I use this?
- Install
- Use
- API
- Types
- Compatibility
- Security
- Related
- Contribute
- License
What is this?
This is a small package that lists all the valid values for name
attributes on
HTML <meta>
.
Those are defined by MetaExtensions.
When should I use this?
Probably never. Maybe as inspiration for when you’re writing meta or researching SEO and such. Or, when you’re making an HTML linter.
Install
This package is ESM only. In Node.js (version 12.20+, 14.14+, or 16.0+), install with npm:
npm install meta-name
In Deno with Skypack:
import {metaName} from 'https://cdn.skypack.dev/meta-name@3?dts'
In browsers with Skypack:
<script type="module">
import {metaName} from 'https://cdn.skypack.dev/meta-name@3?min'
</script>
Use
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'
]
API
This package exports the following identifiers: metaName
.
There is no default export.
metaName
string[]
— List of lowercase possible values for name
on meta
elements.
Types
This package is fully typed with TypeScript.
Compatibility
This package is at least compatible with all maintained versions of Node.js. As of now, that is Node.js 12.20+, 14.14+, and 16.0+. It also works in Deno and modern browsers.
Security
This package is safe.
Related
-
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
Contribute
Yes please! See How to Contribute to Open Source.