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

xduce

v2.0.2

Published

Composable algorithmic transformations library for JavaScript

Downloads

5,139

Readme

Xduce: Transducers for JavaScript

A transducer library for JavaScript

Version Build Status Coverage Status Downloads Commitizen friendly semantic-release License

Transducers are a way of performing transformations on collections without regard to the type of collection. In other words, the same map transducer can be used to map elements of an array, characters in a string, key/value pairs in an object, or yielded values in a generator. This can easily be extended to any collection type by adding 3-4 properties to that collection type to tell Xduce how to work with it.

Because all of the internal processes of working with collections are separated cleanly, an Xduce transducer can even take input from a collection of one type and create an output collection of a different type.

The Communicating Sequential Processes (CSP) package Cispy supports associating Xduce transducers with a CSP channel. The same transducers that you can use to map or filter an array can also be used to map or filter values put onto a channel.

Features

  • 21 built-in transducers that work on all supported collection types
  • Arrays, strings, objects, and iterators are supported out of the box
  • Any other collection type can be supported by adding 3-4 properties to the collection object
  • Collections of any type can be changed into collections of any other type
  • All transducers can be composed in any number or order
  • Custom iterators can be created from functions and then transduced
  • Custom reducers from functions can reduce any collection into any collection or non-collection type
  • Object iteration in a natural way, with custom sorting and selectable object element formats
  • Supported natively by Cispy for use with CSP channels
  • Usable in node.js or the browser
  • Supports CommonJS, AMD, or use as a global object

Documentation

See the github.io page for all of the documentation.

License

MIT License