lgm

lets-get-meta

Extract meta tags from an HTML string in Node.js (not browsers)

Showing:

Popularity

Downloads/wk

483

GitHub Stars

7

Maintenance

Last Commit

5yrs ago

Contributors

5

Package

Dependencies

1

Size (min+gzip)

49.2KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Readme

lets-get-meta

Extract meta tags from an HTML string in Node.js (not browsers)

Installation

Download node at nodejs.org and install it, if you haven't already.

npm install lets-get-meta --save

Usage

var getMeta = require("lets-get-meta")

// Pass an HTML string that includes name and/or property metatags
getMeta("<meta name='page' content='index'><meta property='description' content='This is the index page'>")

// Get back an object
{
  page: "index",
  description: "This is the index page"
}

Tests

npm install
npm test

Dependencies

  • cheerio: Tiny, fast, and elegant implementation of core jQuery designed specifically for the server

Dev Dependencies

  • mocha: simple, flexible, fun test framework

License

MIT

Generated by package-json-to-readme

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100