0.1.8 • Published 2 years ago

metagros v0.1.8

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Metagros

npm.io npm.io

Metagros is a tool to get OGP data from the site URL.

npm.io
https://pokemon-incandescent.fandom.com/wiki/Metagross

Features

  • Node.js ESM module
  • Get og:OOO content data from site url
  • Less dependenceies
  • Popular Pokémon
    • so cool!! cute!! intelligence!!!

What is OGP?

https://ogp.me/

The Open Graph Protocol

Introduction The Open Graph protocol enables any web page to become a rich object in a social graph. For instance, this is used on Facebook to allow any web page to have the same functionality as any other object on Facebook.

While many different technologies and schemas exist and could be combined together, there isn't a single technology which provides enough information to richly represent any web page within the social graph. The Open Graph protocol builds on these existing technologies and gives developers one thing to implement. Developer simplicity is a key goal of the Open Graph protocol which has informed many of the technical design decisions.

Support OGP Metadata

Installing

Using npm

$ npm install metagros

Using yarn

$ yarn add metagros

Example

import { getPageMetaData } from "metagros/move/cometPunch";

const url = "https://some.com";

const metadata = await getPageMetaData(url);
console.log(metadata);

// output
{
  title: "Site title",
  description: "Site description.This site is OO's HP ...",
  image: "https://images.com/hoge",
  type: "article",
  siteName: undefined,
  url: "https://some.com"
}

License

See LISENSE.

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago