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

qqquick

v1.0.41

Published

JavaScript package that reduces repetitive code by providing pre-built functions for common tasks like status codes, random names, codes, dates, etc... It simplifies development, especially for smaller projects

Downloads

12

Readme

qqquick is a JavaScript package that provides pre-built functions for handling status codes, generating random names, codes, dates & etc... It aims to reduce the amount of repetitive code developers need to write, saving time and making development more efficient, particularly for small to medium-sized projects.

Anyone who has any ideas, or feedback please email: [email protected]

How to use?

Here is the tree of the functions available in the qqquick object:

  • help: Provides information about the qqquick library. It contains only one property about which gives a brief description of what qqquick is.

  • status: Contains HTTP status codes and their associated messages. It contains properties for common HTTP status codes (e.g., 200, 404, etc.) and a detailed property with more descriptive messages for each code.

  • date: Formats the current date/time in the specified format. It takes one optional argument 'format', which specifies the desired date format using 'SS''NN''HH''DD''MM''YYYY'. If no argument is provided, it returns the current date/time object.

  • generate: Contains several functions that generate random strings, codes, names, passwords, etc. It includes the following functions:

    • code: generates a random number code of a given length.
    • randomString: generates a random string of a given length.
    • letterCode: generates a random alphanumeric code of a given length.
    • name: generates a random name from a predefined list (90 Names).
    • fullName generates a random Fullname from 2 predefined lists (7200 combinations)
      • animal: generates a random animal names from a predefined list (154 animals)
    • password: generates a random password of a given length.
    • check: Contains functions that check if a value is a string and calculates the age based on a birthdate.
    • uuid: generates a quick 'Universally Unique Identifier', note: it is not cryptographically secure, so it's good fo non-security-critical use cases
  • check: Contains functions to check things, such as ages, strings, birthdates.

    • ifString: checkes is input is a string
    • ifEmail: checks if a string is an email
    • ifUrl: checks if a string is a URL
    • ifPhoneNumber: checks if a string is a phonenumber (US format)
  • Verify: Contains functions used to verify things:

    • birthdate: returns the age of a birthdate provided in a 'DD/MM/YYYY' format
    • age: checks if a age is greater than specified number (Default 18)
  • format: Contains functions that format strings in various ways. It includes the following functions:

    • currency: formats a number as currency. Params:'amount, symbol, decimal'.
    • removeWhitespace: removes all whitespace from a string.
    • titleCase: formats a string as title case.
  • math: Contains mathematical functions:

    • factorial: calculates the factorial of a number
    • median: calculates the median of an array of numbers
    • average: calulates the average of an array of numbers
    • round:
      • decimal: rounds number to the nearest decimal point
      • multiple: round number to the nearest multiple
    • smallest: finds the smallest of an array of numbers
    • largest: finds the largest of an array of numbers
  • array: contains functions to help manage arrays

    • removeDuplicates: removes any duplicates within the array
    • filter: filters the array to return something in specific
    • sort: ranks the array from lowest to highest. & for string, shortet to longest (only first word)
  • string: contains functions to help manage strings

    • trim: trims any space around a string
    • pad: adds padding characters to a string, either at the beginning, the end, or both sides.
    • spit: splits up a a string, good for if a user input may contains tags in this format ('comedy, action, fiction'), split can split each word in to an array item
    • replace: replaces a word in a string

To use qqquick, simply import the object into your JavaScript file and call the desired function(s) using the syntax 'qqquick.functionName()'. For example, to generate a random password of length 10, you could use the following code: 'qqquick.generate.password(10)';

What's New (1.0.4)

Generate:

  • fullName: generates a random Fullname from 2 predefined lists (7200 combinations)
  • animal: generates a random animal names from a predefined list (154 animals)
  • UPDATE name: now can generate up to 90 predefined names