+
+
+ + + + + + +
+
+ +
    +
  • +
    + +
    + + + +
    +
    +
    + + Notifications +
    + + + +
    +
    +
    +
    +
  • + +
  • + +
    +
    + + +
    +
    + + +
    + +
  • + +
  • + + + Fork + + + + + +
  • +
+ +

+ + /smartlink-core + +

+ +
+ +
+ +
+
+ + +
+
+
+ + No description, website, or topics provided. + +
+ + + + +
+
+ + +
+
+ + +
+ + or +
+ +
+
+ + +
+ + + Loading + +
+
+ + + + + +
+ JavaScript +
+ + + +
+ +
+ + + +
+ + +
+ +
+ +
+ + + + Upload files + + + + + Find file + +
+ + +
+ + +
+ +
+
+ + Switch branches/tags +
+ +
+
+ +
+
+ +
+
+ + + +
+
+ + +
+ +
Nothing to show
+
+ +
+
+
+ + + + New pull request + + + +
+ + + + + +
+ + Fetching latest commit… +
+
+ Cannot retrieve the latest commit at this time. +
+
+ + + + + Permalink + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Failed to load latest commit information.
+ + + + src + + + + + +
+ + + + test + + + + + +
+ + + + .bumpedrc + + + + + +
+ + + + .editorconfig + + + + + +
+ + + + .gitattributes + + + + + +
+ + + + .gitignore + + + + + +
+ + + + .npmignore + + + + + +
+ + + + .npmrc + + + + + +
+ + + + .travis.yml + + + + + +
+ + + + LICENSE.md + + + + + +
+ + + + README.md + + + + + +
+ + + + index.js + + + + + +
+ + + + package.json + + + + + +
+ +
+ +
+
+
+ + + + + + + + + + +

Drop to upload your files

+
+
+
+ + +
+

+ + README.md +

+ +

smartlink-core

+

Last version +Build Status +Coverage Status +Dependency status +Dev Dependencies Status +NPM Status +Donate

+
+

Get metadata from HTML.

+
+

Install

+
$ npm install smartlink-core --save
+

Usage

+
const smartlink = require('smartlink-core')
+const get = require('simple-get')
+
+get.concat('http://example.com', function (err, res, html) {
+  if (err) throw err
+
+  const output = smartlink(html)
+  console.log(output)
+})
+

License

+

MIT © .

+
+
+ + +
+ +
+ +
+
+ +