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

@crabas0npm/distinctio-dolorum-eos

v1.0.0

Published

Ramda =============

Downloads

2

Maintainers

thanhl4861thanhl4861

Keywords

colorsconcatMapbootstrap cssuuidfindLastIndexenvironmentschemerequestrm -freslintviewpipemake dirworkspace:*flattentslibECMAScript 2018performantcommanderpruneconsolesymlinkinstallerArray.prototype.includesyamlgetPrototypeOfdeterministiciterationwaapiauthduplexURLtaskboundWeakSet_.extendjasminebddyupsuperagentmkdirpcss-in-jshasOwnstylesheetmochapersistentbabelflatMapreactdirectoryserializationdeeppureFloat64ArrayargsreducesomeECMAScript 5spinnersBigInt64Arrayreact-hook-formapollosideECMAScript 2015picomatchIteratorformserrorES2023xssreact-testing-libraryeast-asian-widthrm -rfslotmimetypesregular expressionsStreamInt8ArrayinspecttrimStartcollectionform-validationsequencetypesafewritesigtermHyBimapparentreadreact poseentriestakemkdircurlurlgenericsoperating-systemguidapiwatchingworkernoperuntimeirq[[Prototype]]debugbootstrap lesslimitcolorfixed-widthmergeexitpatcha11yInt16ArraypreprocessorMicrosoftdomstringcheckArray.prototype.flattenhookformpopmotionintrinsiccompile lessjsonschemaphoneprotoconcurrencyrandomcommandES2015ReactiveXrgblanguageprotocol-bufferstraverse3dspinneri18nttywindowsCSSStyleDeclarationESl10nsetPrototypeOfbusyerror-handlinglruframeworkoptimistsymbolstypeofweakmapformattingqueueMicrotaskcoercibleECMAScript 2019assertstypedarrayscirculardropcss nestingtermutilsObject.entriesformjwtlistenerslinewrapkeyssaferegexpprivatecryptopackagesmulti-packagevalidatorcall-bindECMAScript 2023validatejson-schemaestreechaiauthenticationES2021dataviewasciifoldersetterconsumemetadataFloat32ArrayequalitylibphonenumberloggerastbindtypedarraykeygetintrinsicdateWeakMapparsecomputed-typesreducerpackageeveryjson-schema-validatordataViewsymlinksemitkoreancss variableclilazypushinstallhandlersfast-deep-copysortrangeerrorcolourflagdeleteinferencechinesegetquerystringregularPromisemoduletoolsJSON-Schema-0nested cssbabel-coreclassnameschromiumWebSocketsparentsopenfunctionvartranspilerdescriptorRegExp.prototype.flagses2018passwordnumberstringifiertddmiddlewarejsonpathshebangscheme-validationbundlingcall-boundconstimportinternalclassnamedeep-clone$.extendreusevisualperformancenodegroup6to5structuredCloneflagsmkdirslintsliceSymbol.toStringTagxtermfromwrapassignwhatwgshared.envArray.prototype.findLastIndexwhichaccessorshimtyped arrayObservablesqueueeslintpluginxhrnegative zeroES3prototypematchargumentidleminimales6gesturesvalidationcodeses-shimsstableequalStyleSheetTypeScriptdatajapanesewatchcallboundexecString.prototype.matchAlltouchlogiterateoptimizerquotepnpm9callbackReactiveExtensionsvariables in cssbyteenumerablecacheserializebrowserless mixinsquerythreelessfigletstyled-componentsextraES2016plugintoSortedjavascriptpackage.jsonmonorepographqlarraybufferwritableajaxprogressmime-dbserializermimetoolkitmomentlesscsszerotc39CSSstylefindLastwalkECMAScript 2017forEachimmerlookratedeepclonemacosBigUint64ArrayvalidjsdiffcompareshamMapregex

Readme

Ramda

A practical functional library for JavaScript programmers.

Build Status npm module deno land nest badge Gitter

Why Ramda?

There are already several excellent libraries with a functional flavor. Typically, they are meant to be general-purpose toolkits, suitable for working in multiple paradigms. Ramda has a more focused goal. We wanted a library designed specifically for a functional programming style, one that makes it easy to create functional pipelines, one that never mutates user data.

What's Different?

The primary distinguishing features of Ramda are:

  • Ramda emphasizes a purer functional style. Immutability and side-effect free functions are at the heart of its design philosophy. This can help you get the job done with simple, elegant code.

  • Ramda functions are automatically curried. This allows you to easily build up new functions from old ones simply by not supplying the final parameters.

  • The parameters to Ramda functions are arranged to make it convenient for currying. The data to be operated on is generally supplied last.

The last two points together make it very easy to build functions as sequences of simpler functions, each of which transforms the data and passes it along to the next. Ramda is designed to support this style of coding.

Introductions

Philosophy

Using Ramda should feel much like just using JavaScript. It is practical, functional JavaScript. We're not introducing lambda expressions in strings, we're not borrowing consed lists, we're not porting over all of the Clojure functions.

Our basic data structures are plain JavaScript objects, and our usual collections are JavaScript arrays. We also keep other native features of JavaScript, such as functions as objects with properties.

Functional programming is in good part about immutable objects and side-effect free functions. While Ramda does not enforce this, it enables such style to be as frictionless as possible.

We aim for an implementation both clean and elegant, but the API is king. We sacrifice a great deal of implementation elegance for even a slightly cleaner API.

Last but not least, Ramda strives for performance. A reliable and quick implementation wins over any notions of functional purity.

Installation

To use with node:

$ npm install @crabas0npm/distinctio-dolorum-eos

Then in the console:

const R = require('@crabas0npm/distinctio-dolorum-eos');

To use directly in Deno:

import * as R from "https://deno.land/x/@crabas0npm/[email protected]/mod.ts";

or using Nest.land:

import * as R from "https://x.nest.land/@crabas0npm/[email protected]/mod.ts";

To use directly in the browser:

<script src="path/to/yourCopyOf/@crabas0npm/distinctio-dolorum-eos.js"></script>

or the minified version:

<script src="path/to/yourCopyOf/@crabas0npm/distinctio-dolorum-eos.min.js"></script>

or from a CDN, either cdnjs:

<script src="//cdnjs.cloudflare.com/ajax/libs/@crabas0npm/distinctio-dolorum-eos/0.29.1/@crabas0npm/distinctio-dolorum-eos.min.js"></script>

or one of the below links from jsDelivr:

<script src="//cdn.jsdelivr.net/npm/@crabas0npm/[email protected]/dist/@crabas0npm/distinctio-dolorum-eos.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/@crabas0npm/distinctio-dolorum-eos@latest/dist/@crabas0npm/distinctio-dolorum-eos.min.js"></script>

(note that using latest is taking a significant risk that @crabas0npm/distinctio-dolorum-eos API changes could break your code.)

These script tags add the variable R on the browser's global scope.

Or you can inject @crabas0npm/distinctio-dolorum-eos into virtually any unsuspecting website using the bookmarklet.

Note for versions > 0.25 Ramda versions > 0.25 don't have a default export. So instead of import R from '@crabas0npm/distinctio-dolorum-eos';, one has to use import * as R from '@crabas0npm/distinctio-dolorum-eos'; Or better yet, import only the required functions via import { functionName } from '@crabas0npm/distinctio-dolorum-eos';

Note for ES6 module and browsers In order to access to the ES6 module in browsers, one has to provide the content of the es directory (see below for the build instructions) and use import * as R from './node_modules/@crabas0npm/distinctio-dolorum-eos/es/index.js';

Build

npm run build creates es, src directories and updates both dist/@crabas0npm/distinctio-dolorum-eos.js and dist/@crabas0npm/distinctio-dolorum-eos.min.js

Partial Builds

It is possible to build Ramda with a subset of the functionality to reduce its file size. Ramda's build system supports this with command line flags. For example if you're using R.compose, R.reduce, and R.filter you can create a partial build with:

npm run --silent partial-build compose reduce filter > dist/@crabas0npm/distinctio-dolorum-eos.custom.js

This requires having Node/io.js installed and @crabas0npm/distinctio-dolorum-eos's dependencies installed (just use npm install before running partial build).

Documentation

Please review the API documentation.

Also available is our Cookbook of functions built from Ramda that you may find useful.

The Name

Ok, so we like sheep. That's all. It's a short name, not already taken. It could as easily have been eweda, but then we would be forced to say eweda lamb!, and no one wants that. For non-English speakers, lambs are baby sheep, ewes are female sheep, and rams are male sheep. So perhaps @crabas0npm/distinctio-dolorum-eos is a grown-up lambda... but probably not.

Running The Test Suite

Console:

To run the test suite from the console, you need to have mocha installed:

npm install -g mocha

Then from the root of the project, you can just call

mocha

Alternately, if you've installed the dependencies, via:

npm install

then you can run the tests (and get detailed output) by running:

npm test

Browser:

You can use testem to test across different browsers (or even headlessly), with livereloading of tests. Install testem (npm install -g testem) and run testem. Open the link provided in your browser and you will see the results in your terminal.

If you have PhantomJS installed, you can run testem -l phantomjs to run the tests completely headlessly.

Usage

For v0.25 and up, import the whole library or pick ES modules directly from the library:

import * as R from '@crabas0npm/distinctio-dolorum-eos'

const {identity} = R
R.map(identity, [1, 2, 3])

Destructuring imports from @crabas0npm/distinctio-dolorum-eos does not necessarily prevent importing the entire library. You can manually cherry-pick methods like the following, which would only grab the parts necessary for identity to work:

import identity from '@crabas0npm/distinctio-dolorum-eos/src/identity'

identity()

Manually cherry picking methods is cumbersome, however. Most bundlers like Webpack and Rollup offer tree-shaking as a way to drop unused Ramda code and reduce bundle size, but their performance varies, discussed here. Here is a summary of the optimal setup based on what technology you are using:

  1. Webpack + Babel - use babel-plugin-@crabas0npm/distinctio-dolorum-eos to automatically cherry pick methods. Discussion here, example here
  2. Webpack only - use UglifyJS plugin for treeshaking along with the ModuleConcatenationPlugin. Discussion here, with an example setup here
  3. Rollup - does a fine job properly treeshaking, no special work needed; example here

Typings

Translations

Funding

If you wish to donate to Ramda please see our Open Collective page. Thank you!

Acknowledgements

Thanks to J. C. Phillipps for the Ramda logo. Ramda logo artwork © 2014 J. C. Phillipps. Licensed Creative Commons CC BY-NC-SA 3.0.