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 🙏

© 2025 – Pkg Stats / Ryan Hefner

prep-loader

v0.1.9

Published

Package loader for Pirogram

Downloads

36

Readme

Supported Question Types

Multiple Choice Question

Example:

type: multiple-choice-question
id: <uuid>
question: |
  What statements are true about the following dataset:

  student,height
  Ram,4.2
  Shyam,5.1
  George,5.0
  Rachel,4.8
  
options:
  - text: It has 2 observations and 4 variables.
  - text: It has 4 observations and 2 variables.
    correct: true
  - text: |
      `student` is an `identifier` variable and `height` is a `measured` variable.
    correct: true
  - text: |
      `student` uses `ordinal` scale.

Categorization Question

Example:

type: categorization-question
id: <uuid>
question: |
  Categorize the variables from the following dataset into their scale.

  | retailer   | date       | thumbsup | comments | title |
  |--- |--- |--- |--- |
  | Sam's Club | 2018-01-17 | 5      | 6        | 2 pk 32 oz. Vacuum Insulated Stainless Steel Water Bottle for $6.81 + Shipping $0.99 |
  | Groupon    | 2018-01-17 | 9      | 4        | NEW Sony XB30 Portable Wireless Speaker with Bluetooth, Black (2017 model) +FREE Shipping $79.99 |
  | Amazon     | 2018-01-17 | 15     | 15       | Community the Complete Series on DVD $60 lowest price ever on amazon.com |

categories: ['nominal', 'ordinal', 'interval', 'ratio', 'unstructured']
mappings:
  retailer: nominal
  date: nominal
  thumbsup: ratio
  comments: ratio
  title: unstructured

Fill In The Blank Question

Example:

type: fill-in-the-blank-question
question: |
 Look at the frequency distribution of `condition` variable and answer the following questions.
code: |
 # you can write code here.

blanks:
 - label: What's the number of unique conditions?
   answer: 5
 - label: Which condition has maximum frequency?
   answer: 3
 - label: How many houses have condition 5?
   answer: 1701

Coding Question

Example:

type: coding-question
question: |
  Reshape the array `a` to shape `(2, 4)`
code: |
  import numpy as np
  a = np.arange(8)
solution: |
  import numpy as np
  a = np.arange(8).reshape(2, 4)
tests:
  assert a.shape == (2, 4)

Testless Coding Question

Example:

type: testless-coding-question
id: <uuid>
question: |
  Ask the user to enter a number. If the number is greater than or equal to `0`, print `it's a +ve number`. Otherwise, print `it's a -ve number.`
code: |
  # your code goes here.

Live Code

Example:

type: live-code
id: <uuid>
code: |
  numbers = [1, -1, 0, -20, 31, -4, 6]

  pos_numbers = [num for num in numbers if num >= 0]

  print(pos_numbers)