Home

Awesome

meta-name

Build Coverage Downloads Size

List of values that can be used as names on HTML meta elements.

Contents

What is this?

This is a small package that lists all the valid values for name attributes on HTML <meta> elements. 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 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>

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 identifier metaName. There is no default export.

metaName

List of values that can be used as names on HTML meta elements (Array<string>).

Types

This package is fully typed with TypeScript. It exports no additional types.

Compatibility

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.

Security

This package is safe.

Related

Contribute

Yes please! See How to Contribute to Open Source.

License

MIT © Titus Wormer

<!-- Definition -->