linkerr
TypeScript icon, indicating that this package has built-in type declarations

1.2.3 • Public • Published

Linkerr 🔗

npm GitHub

Parse href, image paths, scripts paths and links from site.

Install

npm install linkerr

Usage

import Linkerr from 'linkerr'

const linkerr = new Linkerr()
await linkerr.parse('https://github.com')
await linkerr.save({
    outputPath: 'output',
    fileName: `${linkerr.url.hostname}_${Date.now()}`
})

Output example

npx linkerr-cli -u https://github.com
{
  "target": "https://github.com/",
  "href": [
    "https://github.com/#start-of-content",
    "https://docs.github.com/articles/supported-browsers",
    "https://github.com/",
    "https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F&source=header-home",
    "https://github.com/features",
    "https://github.com/mobile",
    "https://github.com/features/actions",
    "https://github.com/features/codespaces",
    "https://github.com/features/packages",
    "https://github.com/features/security",
    "https://github.com/features/code-review/",
    "https://github.com/features/issues/",
    "https://github.com/features/integrations",
    "https://github.com/sponsors",
    "https://github.com/customer-stories",
    "https://github.com/team",
    "https://github.com/enterprise",
    "https://github.com/explore",
    "https://github.com/topics",
    "https://github.com/collections",
    "https://github.com/trending",
    "https://lab.github.com/",
    "https://opensource.guide",
    "https://github.com/readme",
    "https://github.com/events",
    "https://github.community",
    "https://education.github.com",
    "https://stars.github.com",
    "https://github.com/marketplace",
    "https://github.com/pricing",
    "https://github.com/pricing#feature-comparison",
    "https://github.com/enterprise/contact",
    "https://education.github.com",
    "https://github.com/login",
    "https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F&source=header-home",
    "https://github.com/join?plan=business_plus&ref_cta=Start%2520a%2520free%2520trial&ref_loc=billboard%2520launchpad&  ref_page=%2F&setup_organization=true",
    "https://github.com/enterprise/contact?ref_page=/&ref_cta=Contact%20Sales&ref_loc=billboard%20launchpad",
    "https://github.com/#home-code",
    "https://github.com/#home-collaborate",
    "https://github.com/#home-develop",
    "https://github.com/#home-automate",
    "https://github.com/#home-secure",
    "https://github.com/#home-community",
    "https://github.com/signup?ref_cta=Sign+up&ref_loc=navigation+launchpad&ref_page=%2F",
    "https://github.com/signup",
    "https://www.npmjs.com",
    "https://github.com/account/organizations/new",
    "https://github.com/mobile",
    "https://apps.apple.com/app/github/id1477376905?ls=1",
    "https://play.google.com/store/apps/details?id=com.github.android",
    "https://desktop.github.com/",
    "https://cli.github.com/",
    "https://github.com/features/codespaces",
    "https://github.com/features/actions",
    "https://github.com/marketplace/actions",
    "https://docs.github.com/github/managing-security-vulnerabilities/configuring-dependabot-security-updates",
    "https://github.com/features/security",
    "https://docs.github.com/discussions",
    "https://github.com/sponsors",
    "https://github.com/signup?ref_cta=Sign+up+for+GitHub&ref_loc=footer+launchpad&ref_page=%2F",
    "https://github.com/enterprise/contact?ref_page=/&ref_cta=Contact%20Sales&ref_loc=footer%20launchpad",
    "https://github.com/tensorflow/tensorflow",
    "https://github.com/gatsbyjs/gatsby",
    "https://github.com/home-assistant/core",
    "https://github.com/rust-lang/rust",
    "https://github.com/flutter/flutter",
    "https://github.com/kubernetes/kubernetes",
    "https://github.com/apple/swift",
    "https://github.com/ansible/ansible",
    "https://github.com/hashicorp/terraform",
    "https://github.com/ohmyzsh/ohmyzsh",
    "https://github.com/facebook/react",
    "https://github.com/npm/cli",
    "https://github.com/",
    "https://github.com/features",
    "https://github.com/security",
    "https://github.com/team",
    "https://github.com/enterprise",
    "https://github.com/customer-stories?type=enterprise",
    "https://github.com/readme",
    "https://github.com/pricing",
    "https://resources.github.com",
    "https://github.com/github/roadmap",
    "https://docs.github.com",
    "https://partner.github.com/",
    "https://atom.io",
    "https://www.electronjs.org",
    "https://desktop.github.com/",
    "https://docs.github.com",
    "https://github.community",
    "https://services.github.com/",
    "https://lab.github.com/",
    "https://www.githubstatus.com/",
    "https://support.github.com?tags=dotcom-footer",
    "https://github.com/about",
    "https://github.blog",
    "https://github.com/about/careers",
    "https://github.com/about/press",
    "https://github.com/about/diversity",
    "https://socialimpact.github.com/",
    "https://shop.github.com",
    "https://twitter.com/github",
    "https://www.facebook.com/GitHub",
    "https://www.youtube.com/github",
    "https://www.linkedin.com/company/github",
    "https://github.com/github",
    "https://docs.github.com/en/github/site-policy/github-terms-of-service",
    "https://docs.github.com/en/github/site-policy/github-privacy-statement",
    "https://github.com/site-map",
    "https://github.com/git-guides"
  ],
  "img": [
    "https://github.githubassets.com/images/modules/site/home/globe.jpg",
    "https://github.githubassets.com/images/modules/site/home/globe.jpg",
    "https://github.githubassets.com/images/modules/site/home/hero-glow.svg",
    "https://github.githubassets.com/images/modules/site/home/astro-mona.svg",
    "https://github.githubassets.com/images/modules/site/home/enterprise-city-w-logos.jpg",
    "https://avatars.githubusercontent.com/jasonetco?s=64&v=4",
    "https://github.githubassets.com/images/modules/site/home/repo-browser.png",
    "https://github.githubassets.com/images/modules/site/home/icons/folder.svg",
    "https://github.githubassets.com/images/modules/site/home/icons/folder.svg",
    "https://github.githubassets.com/images/modules/site/home/icons/folder.svg",
    "https://github.githubassets.com/images/modules/site/home/icons/file.svg",
    "https://github.githubassets.com/images/modules/site/home/icons/file.svg",
    "https://github.githubassets.com/images/modules/site/home/icons/file.svg",
    "https://github.githubassets.com/images/modules/site/home/icons/file.svg",
    "https://github.githubassets.com/images/modules/site/home/icons/file.svg",
    "https://github.githubassets.com/images/modules/site/home/icons/file.svg",
    "https://github.githubassets.com/images/modules/site/home/icons/file.svg",
    "https://github.githubassets.com/images/modules/site/home/repo-editor-glow.svg",
    "https://avatars.githubusercontent.com/jasonetco?s=64&v=4",
    "https://avatars.githubusercontent.com/jasonetco?s=64&v=4",
    "https://github.githubassets.com/images/modules/site/home/repo-terminal-glow.svg",
    "https://avatars.githubusercontent.com/jasonetco?s=64&v=4",
    "https://avatars.githubusercontent.com/nplasterer?s=64&v=4",
    "https://avatars.githubusercontent.com/ampinsk?s=64&v=4",
    "https://avatars.githubusercontent.com/joshaber?s=64&v=4",
    "https://github.githubassets.com/images/modules/site/home/pr-screen.png",
    "https://github.githubassets.com/images/modules/site/home/pr-description.png",
    "https://github.githubassets.com/images/modules/site/home/pr-comment.png",
    "https://github.githubassets.com/images/modules/site/home/pr-merge.png",
    "https://github.githubassets.com/images/modules/site/home/iphone-notch.svg",
    "https://github.githubassets.com/images/modules/site/home/logos/platform-apple.svg",
    "https://github.githubassets.com/images/modules/site/home/logos/platform-google.svg",
    "https://github.githubassets.com/images/modules/site/home/gh-desktop.png",
    "https://github.githubassets.com/images/modules/site/home/logos/platform-apple.svg",
    "https://github.githubassets.com/images/modules/site/home/logos/platform-windows.svg",
    "https://github.githubassets.com/images/modules/site/home/logos/platform-linux.svg",
    "https://github.githubassets.com/images/modules/site/home/codespaces-vscode-1.png",
    "https://github.githubassets.com/images/modules/site/home/codespaces-vscode-2.png",
    "https://github.githubassets.com/images/modules/site/home/codespaces-vscode-3.png",
    "https://github.githubassets.com/images/modules/site/home/codespaces-glow.svg",
    "https://github.githubassets.com/images/modules/site/home/actions-autocomplete.png",
    "https://github.githubassets.com/images/modules/site/home/actions-editor-actions.png",
    "https://github.githubassets.com/images/modules/site/home/actions-editor-sidebar.png",
    "https://github.githubassets.com/images/modules/site/home/actions-editor.png",
    "https://github.githubassets.com/images/modules/site/home/logos/platform-linux.svg",
    "https://github.githubassets.com/images/modules/site/home/logos/platform-apple.svg",
    "https://github.githubassets.com/images/modules/site/home/logos/platform-windows.svg",
    "https://github.githubassets.com/images/modules/site/home/logos/platform-arm.svg",
    "https://github.githubassets.com/images/modules/site/home/matrix-workflow-build.png",
    "https://github.githubassets.com/images/modules/site/home/matrix-workflow-test-tab.png",
    "https://github.githubassets.com/images/modules/site/home/matrix-workflow-test.png",
    "https://github.githubassets.com/images/modules/site/home/matrix-workflow-publish-tab.png",
    "https://github.githubassets.com/images/modules/site/home/matrix-workflow-spinner.svg",
    "https://github.githubassets.com/images/modules/site/home/matrix-workflow-spinner.svg",
    "https://github.githubassets.com/images/modules/site/home/matrix-workflow-spinner.svg",
    "https://github.githubassets.com/images/modules/site/home/matrix-workflow-success.svg",
    "https://github.githubassets.com/images/modules/site/home/matrix-workflow-success.svg",
    "https://github.githubassets.com/images/modules/site/home/matrix-workflow-success.svg",
    "https://github.githubassets.com/images/modules/site/home/matrix-workflow-publish.png",
    "https://github.githubassets.com/images/modules/site/home/matrix-workflow-canvas.png",
    "https://github.githubassets.com/images/modules/site/home/icons/actions-check.svg",
    "https://github.githubassets.com/images/modules/site/home/actions-spinner.svg",
    "https://github.githubassets.com/images/modules/site/home/dependabot-pr.png",
    "https://github.githubassets.com/images/modules/site/home/dependabot-merge.png",
    "https://github.githubassets.com/images/modules/site/home/codeql-step-3.png",
    "https://github.githubassets.com/images/modules/site/home/codeql-step-2.png",
    "https://github.githubassets.com/images/modules/site/home/codeql-step-1.png",
    "https://github.githubassets.com/images/modules/site/home/codeql-description.png",
    "https://avatars.githubusercontent.com/jasonetco?s=64&v=4",
    "https://github.githubassets.com/images/modules/site/home/secret-alert.png",
    "https://github.githubassets.com/images/modules/site/home/secret-list.png",
    "https://avatars.githubusercontent.com/jasonetco?s=64&v=4",
    "https://github.githubassets.com/images/modules/site/home/security-alert-fan.svg",
    "https://github.githubassets.com/images/modules/site/home/community-discussions-1.png",
    "https://github.githubassets.com/images/modules/site/home/discussions-answered-check.svg",
    "https://github.githubassets.com/images/modules/site/home/discussions-check.svg",
    "https://github.githubassets.com/images/modules/site/home/discussions-check.svg",
    "https://github.githubassets.com/images/modules/site/home/discussions-check.svg",
    "https://github.githubassets.com/images/modules/site/home/community-discussions-2.png",
    "https://github.githubassets.com/images/modules/site/home/community-readme-1.png",
    "https://github.githubassets.com/images/modules/site/home/community-readme-2.png",
    "https://github.githubassets.com/images/modules/site/home/icons/heart.svg",
    "https://avatars.githubusercontent.com/sophshep?s=64&v=4",
    "https://github.githubassets.com/images/modules/site/home/icons/heart.svg",
    "https://avatars.githubusercontent.com/joshaber?s=64&v=4",
    "https://github.githubassets.com/images/modules/site/home/icons/heart.svg",
    "https://avatars.githubusercontent.com/pmarsceill?s=64&v=4",
    "https://github.githubassets.com/images/modules/site/home/icons/heart.svg",
    "https://github.githubassets.com/images/modules/site/home/icons/heart.svg",
    "https://github.githubassets.com/images/modules/site/home/icons/heart.svg",
    "https://github.githubassets.com/images/modules/site/home/community-sponsor-1.png",
    "https://github.githubassets.com/images/modules/site/home/icons/heart.svg",
    "https://github.githubassets.com/images/modules/site/home/icons/heart.svg",
    "https://github.githubassets.com/images/modules/site/home/icons/heart.svg",
    "https://github.githubassets.com/images/modules/site/home/community-sponsor-2.png",
    "https://github.githubassets.com/images/modules/site/home/footer-illustration.svg",
    "https://avatars.githubusercontent.com/tensorflow?s=64&v=4",
    "https://avatars.githubusercontent.com/gatsbyjs?s=64&v=4",
    "https://avatars.githubusercontent.com/home-assistant?s=64&v=4",
    "https://avatars.githubusercontent.com/rust-lang?s=64&v=4",
    "https://avatars.githubusercontent.com/flutter?s=64&v=4",
    "https://avatars.githubusercontent.com/kubernetes?s=64&v=4",
    "https://avatars.githubusercontent.com/apple?s=64&v=4",
    "https://avatars.githubusercontent.com/ansible?s=64&v=4",
    "https://avatars.githubusercontent.com/hashicorp?s=64&v=4",
    "https://avatars.githubusercontent.com/ohmyzsh?s=64&v=4",
    "https://avatars.githubusercontent.com/facebook?s=64&v=4",
    "https://avatars.githubusercontent.com/npm?s=64&v=4",
    "https://github.githubassets.com/images/modules/site/icons/footer/github-logo.svg",
    "https://github.githubassets.com/images/modules/site/icons/footer/twitter.svg",
    "https://github.githubassets.com/images/modules/site/icons/footer/facebook.svg",
    "https://github.githubassets.com/images/modules/site/icons/footer/youtube.svg",
    "https://github.githubassets.com/images/modules/site/icons/footer/linkedin.svg",
    "https://github.githubassets.com/images/modules/site/icons/footer/github-mark.svg"
  ],
  "script": [
    "https://github.githubassets.com/assets/environment-6bfc32a1.js",
    "https://github.githubassets.com/assets/chunk-frameworks-4fe16dcb.js",
    "https://github.githubassets.com/assets/chunk-vendor-104567b3.js",
    "https://github.githubassets.com/assets/behaviors-24aa7714.js",
    "https://github.githubassets.com/assets/unsupported-34b0e116.js",
    "https://github.githubassets.com/assets/marketing-60f8a4d2.js",
    "https://github.githubassets.com/assets/home-6527d59d.js",
    "https://github.githubassets.com/assets/webgl-globe-2fb3b30c.js",
    "https://github.githubassets.com/assets/features-7e593bf6.js"
  ],
  "link": [
    "https://github.githubassets.com",
    "https://avatars.githubusercontent.com",
    "https://github-cloud.s3.amazonaws.com",
    "https://user-images.githubusercontent.com/",
    "https://github.githubassets.com",
    "https://avatars.githubusercontent.com",
    "https://github.githubassets.com/assets/light-7785c2ed2dc3d8efc6d13bd98db6ed5a.css",
    "https://github.githubassets.com/assets/dark-b84802e80a0a2b580afd75f71e5138fb.css",
    "https://github.githubassets.com/assets/frameworks-69a8f0205ac6a8b8398b6d5860cd6615.css",
    "https://github.githubassets.com/assets/behaviors-73bbdf0e4eff202a8edcdf248bc75a48.css",
    "https://github.githubassets.com/assets/github-d283c92880659f08d4895f82808b9efc.css",
    "https://github.githubassets.com/assets/site-a4d7c46eeefdfa32709a47eb150b9b19.css",
    "https://github.githubassets.com/assets/home-48400a9c40512852c74201e3fa02c93b.css",
    "https://github.com/opensearch.xml",
    "https://github.com/fluidicon.png",
    "https://github.githubassets.com/",
    "https://github.com/webgl-globe/data/data.json",
    "https://github.githubassets.com/static/fonts/alliance/Alliance-No-1-ExtraBold.woff2",
    "https://github.githubassets.com/static/fonts/alliance/Alliance-No-1-Regular.woff2",
    "https://github.com/",
    "https://github.githubassets.com/pinned-octocat.svg",
    "https://github.githubassets.com/favicons/favicon.png",
    "https://github.githubassets.com/favicons/favicon.svg",
    "https://github.com/manifest.json"
  ]
}

Related

Readme

Keywords

Package Sidebar

Install

npm i linkerr

Weekly Downloads

3

Version

1.2.3

License

MIT

Unpacked Size

27.9 kB

Total Files

9

Last publish

Collaborators

  • crashmax