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

qpws-camper

v1.0.1

Published

qpws-camper is a tool to quickly check availabilities at campgrounds listed on the [Queensland National Parks Booking Service](https://qpws.usedirect.com/). Hopefully it saves you a few minutes and gets you out camping!

Downloads

3

Readme

qpws-camper is a tool to quickly check availabilities at campgrounds listed on the Queensland National Parks Booking Service. Hopefully it saves you a few minutes and gets you out camping!

So far the functionality is incomplete and lacks support for a few types of listings in the booking service. If you see a "Check Availabilities" button for the facility you're looking at, hopefully it should work. If not, feel free to open an issue.

Installation

npm install -g qpws-camper

Usage

qpws-camper --date YYYY-MM-DD --facility "<facility name>"

The CLI is limited and only takes a couple arguments. --date specifies the start date for the search. --facility specifies the facility name exactly as you see it on the booking site. That's it.

Example

Heading to the beach? Let's see.

$ qpws-camper --date 2021-05-01 --facility "MV Sarawak"
┌─────────┬──────────────────┬─────────────────┐
│ (index) │       date       │ sites_available │
├─────────┼──────────────────┼─────────────────┤
│    0    │ 'Sat, 1/5/2021'  │       218       │
│    1    │ 'Sun, 2/5/2021'  │       229       │
│    2    │ 'Mon, 3/5/2021'  │        0        │
│    3    │ 'Tue, 4/5/2021'  │        0        │
│    4    │ 'Wed, 5/5/2021'  │        0        │
│    5    │ 'Thu, 6/5/2021'  │        0        │
│    6    │ 'Fri, 7/5/2021'  │        0        │
│    7    │ 'Sat, 8/5/2021'  │       248       │
│    8    │ 'Sun, 9/5/2021'  │       242       │
│    9    │ 'Mon, 10/5/2021' │       242       │
│   10    │ 'Tue, 11/5/2021' │       242       │
│   11    │ 'Wed, 12/5/2021' │       242       │
│   12    │ 'Thu, 13/5/2021' │       242       │
│   13    │ 'Fri, 14/5/2021' │       240       │
└─────────┴──────────────────┴─────────────────┘

Bugs?

qpws-camper interacts directly with the booking service UI, clicking buttons and such as if it were a real human getting ready for a really nice camping trip! This means it has a few limitations and can be a bit brittle. If it fails for you, please open an issue. I can't promise I'll fix it, but it's better to keep track of these things.

There are two important flags. --verbose logs which steps have been taken so far. --debug-browser opens the browser in "headed" mode so that you can watch it do its thing (it's fast)! Both flags might yield useful information for when opening an issue.