npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

get-page-info

v0.2.0

Published

get web page info

Downloads

5

Readme

Install

$ npm i get-page-info --save

Usage

import { getPageInfo, IPageInfoOptions } from 'get-page-info';
const info = await getPageInfo('https://www.baidu.com/', {} as IPageInfoOptions);
console.log(info);
/*
{
  "title": "百度一下,你就知道",
  "desc": "全球领先的中文搜索引擎、致力于让网民更便捷地获取信息,找到所求。百度超过千亿的中文网页数据库,可以瞬间找到相关的搜索结果。",
  "url": "https://www.baidu.com/",
  "favicon": "https://www.baidu.com/favicon.ico",
  "cover": "https://www.baidu.com/img/bd_logo1.png",
  "keywords": "百度,搜索引擎,baidu",
  "serverIp": "110.242.68.3",
  "author": {},
  "main": {
    "content": "关于百度\nAbout Baidu\n使用百度前必读\n帮助中心\n企业推广\n京公网安备11000002000001号\n京ICP证030173号\n互联网新闻信息服务许可证11220180008\n网络文化经营许可证: 京网文〔2023〕1034-029号\n信息网络传播视听节目许可证 0110516\n互联网宗教信息服务许可证编号:京(2022)0000043\n药品医疗器械网络信息服务备案(京)网药械信息备字(2021)第00159号\n医疗器械网络交易服务第三方平台备案凭证(京)网械平台备字(2020)第00002号\n©2024 Baidu ",
    "time": 1702222200000
  }
}
*/

options: IPageInfoOptions

export interface IPageInfoOptions {
  // When set to false, author information is not parsed
  author?: boolean;
  // When set to false, content is not parsed
  content?: boolean;
}

License

MIT