meta-name
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

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>. 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

Contribute

Yes please! See How to Contribute to Open Source.

License

MIT © Titus Wormer

Package Sidebar

Install

npm i meta-name

Weekly Downloads

5

Version

2.0.1

License

MIT

Unpacked Size

15.3 kB

Total Files

5

Last publish

Collaborators

  • wooorm