# metaset

> Inject meta tag to head

Latest version **2.0.1** (published 2019-03-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install metaset
pnpm add metaset
yarn add metaset
bun add metaset
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.1 |
| Published | 2019-03-28 |
| First published | 2018-09-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 11.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Fabio Ricali |
| Maintainers | fabioricali |
| Keywords | metatag, tag, metadata, meta, name, property, head, html |

## Links

- npm: https://www.npmjs.com/package/metaset
- Repository: https://github.com/fabioricali/metaset
- Homepage: https://github.com/fabioricali/metaset#readme
- Issues: https://github.com/fabioricali/metaset/issues
- npm.io page: https://npm.io/package/metaset

## Alternatives

- [@tsparticles/shape-image](https://npm.io/package/@tsparticles/shape-image.md) — 303.7K weekly downloads
- [@tsparticles/shape-line](https://npm.io/package/@tsparticles/shape-line.md) — 233.7K weekly downloads
- [stringify-attributes](https://npm.io/package/stringify-attributes.md) — 58.6K weekly downloads
- [mobile-drag-drop](https://npm.io/package/mobile-drag-drop.md) — 46.3K weekly downloads
- [@comunica/actor-rdf-parse-html](https://npm.io/package/@comunica/actor-rdf-parse-html.md) — 29.2K weekly downloads

## Recent versions

- 2.0.1 (latest) — 2019-03-28
- 2.0.0 — 2019-03-28
- 1.1.0 — 2019-03-28
- 1.0.1 — 2018-09-24
- 1.0.0 — 2018-09-24

## README

# metaset

> This tiny library provides some functions for managing meta tag in your HTML document

<a href="https://travis-ci.org/fabioricali/metaset" target="_blank"><img src="https://travis-ci.org/fabioricali/metaset.svg?branch=master" title="Build Status"/></a>
<a href="https://opensource.org/licenses/MIT" target="_blank"><img src="https://img.shields.io/badge/License-MIT-yellow.svg" title="License: MIT"/></a>

[Demo](https://fabioricali.github.io/metaset/demo/)

## Installation
```
npm install --save metaset
```

## Usage
```js
import Metaset from 'metaset'

const metaset = new Metaset();

// Set title
metaset.setTitle('The title');
// Get title
metaset.getTitle(); //The title

// Set meta tag description
metaset.setMetaName('description', 'A description...');
// Get metatag description
metaset.getMetaName('description'); //A description...

// Set OG meta tag
metaset.setMetaProperty('og:description', 'A description...');
// Get OG meta tag
metaset.getMetaProperty('og:description'); //A description...
```

## Changelog
You can view the changelog <a target="_blank" href="https://github.com/fabioricali/metaset/blob/master/CHANGELOG.md">here</a>

## License
Metaset is open-sourced software licensed under the <a target="_blank" href="http://opensource.org/licenses/MIT">MIT license</a>

## Author
<a target="_blank" href="http://rica.li">Fabio Ricali</a>

---
_Source: https://npm.io/package/metaset · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
