1.0.3 • Published 7 years ago

meta-links-extract v1.0.3

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

meta-links-extract

Reads in HTML, returns an array of objects representing the <link> elements

Travis Codecov npm npm semantic-release

Installation

yarn add meta-links-extract

Or if you're using npm: npm install --save meta-links-extract

Usage

const extract = require("meta-links-extract")

const html = `
  <html>
    <head>
      <link rel="mask-icon" href="https://assets-cdn.github.com/pinned-octocat.svg" color="#000000">
    </head>
    <body>
    </body>
  </html>`

extract(html)
// => [{ color: '#000000', href: 'https://assets-cdn.github.com/pinned-octocat.svg', rel: 'mask-icon' }]

Tests

npm test

LICENSE

MIT

0.0.0

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago