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

task-pdf-writer-v2

v1.1.0

Published

Writes task PDFs from markdowns

Downloads

12

Readme

task-pdf-writer-v2

The second version of task-pdf-writer.

Basic Usage

To work in a local directory DIRNAME. Make sure that it contains prob1.md, prob2.md, ..., and config.json. Then, run npx task-pdf-writer-v2 DIRNAME, this will create a ./public directory under the current working directory.

Intended Usage

The second version, in contrast to the first version, is not a platform (and will not be a platform anymore). You are expected to write task statements within your own management system (maybe locally, or using git, etc.). The tool will just only generate corresponding PDF files (and also HTML to make it very easy for hosting).

This is a bit more technical, and more "low-level", compared to the first version. The reason behind this is because nowadays we're using microservices everywhere, and everyone hates coupling. This is 2023 now, not 2015 anymore, where we'd love platform-based architectural design.

So, the most basic typical setup processs would be the following:

  1. Create a repository (probably private except you want others to know your tasks).
  2. Put your tasks (in Markdown) inside a directory in the repository.
  3. Write config.json, the format should be the same as in config.json of this repository.
  4. Setup an automated hosting (I normally use Netlify, but I think anything is fine), with the build command npx task-pdf-writer-v2 DIRNAME where DIRNAME stands for the contest directory.
  5. (Optional, but probably very important for practical uses) Setup a strong authentication system in front of the hosted website. (For Netlify, "Site protection" should be enabled. For self-hosting, maybe use nginx as a front webserver and maybe use HTTP Basic access authentication, at the minimum. Otherwise, firewall and IP protection would be ideal.)