npm-profile-scraper
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

npm-profile-scraper

Types MIT License

npm i npm-profile-scraper

Get any NPM Profile information to use on your own Website or Blog.

IMPORTANT: It only works on SERVER SIDE due to CORS error.


Quick Start

The easiest way to use the library.

import { fetchNPMProfile } from 'npm-profile-scraper'

const result = await fetchNPMProfile({ username: 'zendostrike' })

result.profile // Type: NPMProfile

/**

  NPMProfile

  username: string
  fullName: string
  githubUsername: string
  githubLink: string
  totalPackages: string

**/

result.packages // Type: NPMPackage[]

/**

  NPMPackage

  name: string
  description: string
  creator: string
  info: string
  link: string

**/

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Giancarlo Ramirez - @zendostrike - gece.ramirez@gmail.com

Project Link: https://github.com/zendostrike/npm-profile-scraper

Contributors

Dependencies (3)

Dev Dependencies (4)

Package Sidebar

Install

npm i npm-profile-scraper

Weekly Downloads

4

Version

1.0.5

License

MIT

Unpacked Size

16.5 kB

Total Files

16

Last publish

Collaborators

  • zendostrike