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

rammutable

v0.0.1

Published

Ramda bindings for Immutable.js

Readme

rammutable.js

Ramda interop with Immutable.js

General

The purpose of this library is to provide general interop between Immutable.js and Ramda, while allowing for traditional use with JavaScript data structures as well. This means, you can seamlessly switch between JS and Immutable data structures while using Ramda - saving you any explicit .toJS calls (and therefor losing many of the benefits of using Immutable.js in the first place.) This library aims to allow you to continue to use Ramda without losing any of the benefits of structural sharing provided by Immutable.js (a boon if using Redux for all state management.)

API

assoc

Sets a value onto a given key for either an Immutable data structure or a JS Object

  assoc('a', 'test', new Map()) // Map({ a: 'test' })
  assoc('a', 'test', {}) // { a: 'test' }

assocPath

Sets a value onto a given key in a keypath for either an Immutable data structure or a JS Object'

  assocPath(['a', 'b'], 'test', {}) // { a: { b: 'test' } }
  assocPath(['a', 'b'], 'test', new Map()) // Map({ a: { b: 'test' } })

equals

Tests deep equality between two Immutable data strcutures, JS objects or combination therof

  equals(['a', 'b'], List([ 'a', 'b' ])) // true
  equals(Map({ a: 'test' }), Map({ a: 'test' })) // true
  equals({ a: 'test'}, { a: 'test' }) // true
  equals({ a: 'test'}, Map({ b: 'test' })) // false

length

Returns a size of an immutable list or a length of an array

  length(['a', 'b']) // 2
  length(List(['a', 'b'])) // 2

path

Returns the value at a given keypath

  path(['a', 'b'], Immutable.fromJS({ a: { b: 'b' } })) // 'b'
  path(['a', 'b'], { a: { b: 'b' } }) // 'b'

pathEq

Returns whether or not a value equals a value at a given keypath

  pathEq(['a', 'b'], 'b', Immutable.fromJS({ a: { b: 'b' } })) // true
  pathEq(['a', 'b'], 'b', { a: { b: 'b' } }) // true

prop

Returns the value at a given prop

  prop('a', Map({ a: 'a' })) // 'a'
  prop('a', { a: 'a' }) // 'a'

propEq

Returns the result of an equality test at a given prop

  propEq('a', 'test', Map({ a: 'test' })) // true
  propEq('a', 'test', { a: 'test' }) // true

props

Returns an array of values corresponding to an array of given props

  props(['a', 'b'], Map({ a: 'a', b: 'b' })) // ['a', 'b']
  props(['a'], { a: 'a' }) // ['a']

size

Retursn the size of an immutable or js data structure

  size(['a', 'b']) // 2
  size({ a: 'a' }) // 1
  size(Map({ a: 'a'})) // 1
  size(List(['a', 'b'])) // 2