๐Ÿš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more โ†’
Socket
DemoInstallSign in
Socket

@fluffylabs/links-check

Package Overview
Dependencies
Maintainers
0
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fluffylabs/links-check

Check list of files for Gray Paper Reader links and make sure they are up to date.

0.3.1
latest
npm
Version published
Weekly downloads
15
400%
Maintainers
0
Weekly downloads
ย 
Created
Source

This CLI tool allows you to scan files passed as parameters in a lookout for links to the Gray Paper (GP) Reader.

Each of these links is then evaluated:

  • We check if the links points to the latest version of the GP.
  • If not, we propose an updated link.
  • We indicate if the updated link is most likely broken due to changes in the GP.

On top of that, the tool is able to:

  • automatically update the links to recent version (--write)
  • generate a JSON file that can be imported to Gray Paper Reader (or used as remote notes source) containing notes with filenames with the links (--generate-notes)

Quick Start

npx @fluffylabs/links-check ./path-to-my-project/**/*.ts

Results

scanning 3703: 405.271ms

โŒ› Outdated links 57/82
  ๐Ÿ“œ packages/block/assurances.ts
     17: ๐Ÿงน https://graypaper.fluffylabs.dev/#/c71229b/135201135601 (version: 0.4.1)
      Can be safely updated (but please check!):
      ๐Ÿ‘‰ https://graypaper.fluffylabs.dev/#/364735a/135201135601 (version: 0.4.5)
     42: ๐Ÿงน https://graypaper.fluffylabs.dev/#/c71229b/135201135601 (version: 0.4.1)
      Can be safely updated (but please check!):
      ๐Ÿ‘‰ https://graypaper.fluffylabs.dev/#/364735a/135201135601 (version: 0.4.5)
     65: ๐Ÿงน https://graypaper.fluffylabs.dev/#/c71229b/135201135601 (version: 0.4.1)
      Can be safely updated (but please check!):
      ๐Ÿ‘‰ https://graypaper.fluffylabs.dev/#/364735a/135201135601 (version: 0.4.5)

      (...snip...)

  ๐Ÿ“œ packages/trie/nodes.ts
     13: ๐Ÿงน https://graypaper.fluffylabs.dev/#/387103d/0cb0000cb400 (version: 0.3.8)
      Can be safely updated (but please check!):
      ๐Ÿ‘‰ https://graypaper.fluffylabs.dev/#/364735a/0cb0000cb400 (version: 0.4.5)

โœ… No broken links found amongst 82 total.
โš ๏ธ  Yet there are 57 outdated links. See above.

Options

Usage: gp-links-check [options] <paths...>

Arguments:
  paths                           Paths of files to be scanned. Supports glob patterns.

Options:
  --ignore-file <path>            Path to a file containing patterns to ignore. Gitignore
                                  format applies. Patterns are resolved according to current
                                  working directory.
  --fail-on-broken                Exit with an error code when broken links are detected.
  --version <name>                Commit hash of specific version to update to (instead of
                                  latest).
  --write                         Modify the files and update reader links to
                                  requested/lastest versions.
  --fix                           Alias for --write.
  --generate-notes <file.json>    Generate notes for the Gray Paper Reader.
  --generate-notes-label <label>  Label assigned to all generated notes.
  -h, --help                      display help for command

FAQs

Package last updated on 13 Mar 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts