Comparing version 0.1.0 to 0.1.1
@@ -12,3 +12,3 @@ { | ||
"description": "A practical functional library for Javascript programmers.", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"homepage": "https://www.github.com/CrossEye/ramda", | ||
@@ -15,0 +15,0 @@ "license": "MIT", |
15
ramda.js
@@ -519,3 +519,3 @@ // ramda.js 0.0.1 | ||
// TODO: should this take arbitrary number of `f` functions? | ||
R.fork = function(after, f1, f2) { | ||
R.fork = function(f1, f2, after) { | ||
return function() { | ||
@@ -1293,2 +1293,13 @@ return after(f1.apply(this, arguments), f2.apply(this, arguments)); | ||
// Divides the second parameter by the first and returns the remainder. | ||
var modulo = R.modulo = _(function(a, b) { return a % b; }); | ||
// Reversed version of `modulo`, where the second parameter is divided by the first. The curried version of | ||
// this one might be more useful than that of `modulo`. For instance: | ||
// | ||
// var isOdd = moduloBy(2); | ||
// isOdd(42); // => 0 | ||
// isOdd(21); // => 1 | ||
R.moduloBy = flip(modulo); | ||
// Adds together all the elements of a list. | ||
@@ -1522,2 +1533,2 @@ R.sum = foldl(add, 0); | ||
}()); | ||
})); | ||
})); |
134
README.md
@@ -91,136 +91,2 @@ Project Ramda | ||
Functions included | ||
------------------- | ||
We want to include the basic functions that will help a Javscript | ||
programmer work with objects and arrays. We will try to use the most | ||
common names for these, possibly using multiple aliases for those that | ||
are most debated. | ||
### Core ### | ||
* isEmpty | ||
* isAtom | ||
* curry | ||
* prepend (cons) | ||
* append | ||
* merge | ||
* head (car) | ||
* tail (cdr) | ||
* size | ||
### Functions ### | ||
* compose (fog) | ||
* pipe (sequence) (i.e., like compose but in reverse order) | ||
* flip | ||
* partial (applyLeft) | ||
* rPartial (applyRight) | ||
* memoize | ||
* once | ||
* wrap | ||
* nAry | ||
* construct | ||
### Lists ### | ||
* map | ||
* foldl (reduce) | ||
* foldl1 | ||
* foldr (reduceRight) | ||
* foldr1 | ||
* filter | ||
* reject | ||
* take | ||
* takeWhile | ||
* skip (drop) | ||
* skipUntil | ||
* find | ||
* all (every) | ||
* any (some) | ||
* contains | ||
* uniq | ||
* pluck | ||
* flatten | ||
* zip | ||
* zipWith | ||
* xprod (i.e. cartesian product) | ||
* xprodWith (i.e. cartesian product with function) | ||
* reverse | ||
* range | ||
* nth | ||
* indexOf | ||
* lastIndexOf | ||
* splice | ||
* join | ||
* comparator | ||
### Generators ### | ||
* tail | ||
* take | ||
* skip | ||
* map | ||
* filter | ||
### Objects ### | ||
* tap (K) | ||
* eq | ||
* prop | ||
* func | ||
* props | ||
* maybe | ||
* keys | ||
* values | ||
* pick | ||
* invoker | ||
### Logic ### | ||
* and | ||
* or | ||
* not | ||
* andFn | ||
* orFn | ||
* notFn | ||
### Arithmetic ### | ||
* add | ||
* multiply | ||
* subtract | ||
* divide | ||
* sum | ||
* product | ||
### Strings ### | ||
* substring | ||
* substringFrom | ||
* substringTo | ||
* charAt | ||
* charCodeAt | ||
* match | ||
* strIndexOf | ||
* strLastIndexOf | ||
### Data querying ### | ||
* project | ||
* keyValue | ||
* sortBy | ||
* countBy | ||
* groupBy | ||
### Miscellaneous ### | ||
* identity (I) | ||
* installTo | ||
* alwaysZero | ||
* alwaysTrue | ||
* alwaysFalse | ||
So What's With Eweda? | ||
@@ -227,0 +93,0 @@ --------------------- |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
0
81058
4
1310
100