Skip to content

goodreferences/lets-get-meta

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 and HTML string
getMeta("<meta name='page' content='index'><meta name='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

ISC

Generated by package-json-to-readme

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%