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

qm-js

v0.5.4

Published

A modular utility library for JavasScript

Downloads

1

Readme

QuartermasterJS

QuartermasterJS is a small, modular JavaScript library providing:

  • functional style programming with filter, map, fold and reduce functions
  • reactive programming constructs: signal, event streams and promises
  • promise based modules for browser based JavaScript, domready, script-loader and ajax
  • a webstorage module with a consistent API for local, session and cookie based storage
  • a small, simple module management system using named modules with require and define

Quartermaster started out as a small core library for use by other modules, e.g. reactive event streams and signals and promise based APIs such as domready.

QuartermasterJS has no other dependencies.

The core module provides most of the common higher order functions e.g 'forEach, filter, and map used in functional programming. Other modules can be used as required to provide additional functions for working with arrays and objects.

Sub Modules

  • 'qm-js/lib/array' - provides tail, head, drop, take, partition, zip,compact, flatten
  • 'qm-js/lib/object' - provides versions of filter and map which return transformed objects
  • 'qm-js/lib/function' - provides partial, partialr, curry
  • 'qm-js/lib/promise' - Promise.resolve, Promise.reject, Promise.all, Promise.race and Promise.defer
  • 'qm-js/lib/reactive'- provides EventStream and Signal classes
  • 'qm-js/lib/option' - based on Scala's Option type for representing optional values
  • 'qm-js/lib/try' - based on Scala's Try to represent a computation that may either result in an exception or return a successfully computed value
  • 'qm-js/lib/lens' - functional lens implementation
  • 'qm-js/lib/collection' - provides BoundedStack and OrderedMap implementations

Installation

    npm install qm-js

For use in the browser, you can use any of the popular tools such as Browserify or webpack to package Quartermaster and any its modules according to your current workflow or needs. All of Quartermaster's components are simple CommonJS modules using module.exports.

Quartermaster also provides a small (792 bytes minified), simple module system that can be used. A version of Quartermaster for use with this module system can found under lib/module.

See the project wiki for more information.