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 🙏

© 2024 – Pkg Stats / Ryan Hefner

4chan-link-updater

v1.5.1

Published

Update dead/broken 4chan and 4chan archive links with live ones. Contains regular expressions for 4chan archive sites and boards.

Downloads

50

Readme

npm contributions welcome

View in action with GitHub Pages

This project contains functions to automatically update dead 4chan and 4chan archive links with live ones. It also contains regular expressions to match 4chan and 4chan archive sites with their respective boards.

If viewing this project on npmjs.com, the GitHub repository may have a more recent version.

Table of Contents

Examples

| Before | After | |:------:|:-----:| | https://boards.4channel.org/lit/thread/20169681/what-edition-of-hamlet-should-i-get#p20169912 | https://warosu.org/lit/thread/20169681#q20169912 | | https://yuki.la/s4s/thread/7838249/cowe/7839030 | https://archive.4plebs.org/s4s/thread/7838249#q7839030 |

Features

  • Functions to replace post and thread links for 4chan and dead 4chan archives with lives ones automatically
  • Regular expressions for 4chan archive sites and their respective boards

Rationale

Threads on the imageboard 4chan are ephemeral, meaning they become inaccessible after some time. Links to the thread no longer work once a thread becomes inaccessible.

4chan archive sites that preserve threads past their deletion exist, but the 4chan links remain broken. Additionally, 4chan archives can go offline, rendering links to those archives broken.

This project solves that problem by providing functions to replace those broken / dead links with live ones automatically.

Use Instructions

A live version of project can be used with GitHub Pages. The project can also be used offline by downloading or cloning it from GitHub.

Requirements

To use this project locally, Node.js and npm must be installed. See installation instructions for Node.js for details. A short video on how to install Node.js can also be viewed here.

Installation

This part assumes the requirements have been fulfilled.

  1. Click the green Code button on the project's GitHub repository page and download the project as a ZIP file
  2. Unzip the file
  3. Open your system's terminal
  4. In the terminal, navigate to the project's directory (folder). If you are unfamiliar with terminal navigation, enter cd [filePathToProjectDirectory] without the brackets in the terminal (ex: cd C:\Users\user\Downloads\4chan-Link-Updater-master\4chan-Link-Updater-master). The directory navigated to should contain the project's lib folder
  5. In the terminal, enter npm install to download the npm packages required for the project

The project's HTML document opened in most browsers should work locally after these instructions.

Testing

Tests are used to verify this project's functionality (see limitations for tests that don't pass).

To run the tests, in a terminal navigated to the project's directory, run npm install if packages aren't installed, then npm test to run the tests.

Limitations

Image links are currently not supported. To see the links that currently cannot be parsed, view testCases.json and search for "nonFunctional". Note that post and thread links in the format /{threadNumber},{postNumber} are not supported.

There is no safety check for non-functional links. Use with caution.

Technologies

Technologies used for this project include:

Miscellaneous

npm Commands

Resources