Description
Meta Fetcher is a tiny node module that fetches a websites meta data through a given URL.
meta-fetcher ๐ alternatives and similar modules
Based on the "Utilities" category.
Alternatively, view meta-fetcher ๐ alternatives based on common mentions on social networks and blogs.
-
nvm
Node Version Manager - POSIX-compliant bash script to manage multiple active node.js versions -
Unleash
Open-source feature management solution built for developers. -
diff2html
Pretty diff to html javascript library (diff2html) -
KeyboardJS
A JavaScript library for binding keyboard combos without the pain of key codes and key combo conflicts. -
cz-git
cz-git | czg ๐ ๏ธ DX first and more engineered, lightweight, customizable, standard output format Commitizen adapter and CLI -
Javascript library for 2d geometry
Javascript library for 2d geometry -
node-object-hash
Node.js object hash library with properties/arrays sorting to provide constant hashes. It also provides a method that returns sorted object strings that can be used for object comparison without hashes. -
licenseye
Node.js CLI tool to visualize an aggregate list of your dependencies' licenses -
cluster-map
Abstracts execution of tasks in parallel using Node.js cluster. -
cron-to-quartz
Node.js library to convert unix or linux CRON syntax to Quartz Scheduler -
zeit
Clock and task scheduler for node.js applications, providing extensive control of time and callback scheduling in prod and test code
SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of meta-fetcher ๐ or a related project?
README
meta-fetcher :mag_right:
Tiny URL meta-data fetcher that scraps the meta-data of a given
URL
string.
Under the hood it uses node-fetch to fetch the metadata, parses it and returns it as json object.
Install
npm install meta-fetcher
Basic Usage
const fetchMetaData = require('meta-fetcher');
(async () => {
const result = await fetchMetaData('https://hoppscotch.io/');
console.log(result);
/*
{
basic_metadata: {
website: 'https://hoppscotch.io/',
title: 'Hoppscotch โข A free, fast and beautiful API request builder',
description: 'A free, fast and beautiful API request builder'
},
opengraph: {
'og:image': 'https://hoppscotch.io/banner.jpg',
'og:type': 'website',
'og:title': 'Hoppscotch',
'og:site_name': 'Hoppscotch',
'og:description': 'A free, fast and beautiful API request builder',
'og:url': 'https://hoppscotch.io/'
},
opengraph_social: {
'twitter:card': 'summary_large_image',
'twitter:site': '@liyasthomas',
'twitter:creator': '@liyasthomas'
},
favicons: [
'https://hoppscotch.io/icon.png',
'https://hoppscotch.io/icon.png',
'https://hoppscotch.io/_nuxt/icons/icon_64x64.9834b3.png'
]
}
*/
})();
Advanced Usage (with options)
You can optionally set the userAgent
and fromEmail
options in request Header
while fetching the meta-data.
const fetchMetaData = require('meta-fetcher');
(async () => {
const result = await fetchMetaData('https://hoppscotch.io/', {
userAgent: 'Rocktim',
fromEmail: '[email protected]'
});
console.log(result);
})();
It can also fetch meta-data from shortened-url
.For example:
const fetchMetaData = require('meta-fetcher');
(async () => {
const result = await fetchMetaData('https://bit.ly/2Fj9sNF');
console.log(result);
})();
Options
You can set these options in Header while fetching the data if needed.
Option | Required | Default Value |
---|---|---|
userAgent |
No | meta-fetcher |
fromEMail |
No | [email protected] |
API
metaDataFetch(url, options)
url
Type: string
url string that you want to fetch the meta-data from.
options
Type: object
Optional Header
paramerter you can set if needed.
Contribute
For any new feature request or bug report, please open an issue or pull request in GitHub.
License
MIT © Rocktim Saikia
*Note that all licence references and agreements mentioned in the meta-fetcher ๐ README section above
are relevant to that project's source code only.