Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

predicate

Package Overview
Dependencies
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

predicate - npm Package Compare versions

Comparing version 0.0.1 to 0.10.1

CHANGELOG.md

68

index.js

@@ -0,60 +1,14 @@

'use strict';
{
{
var utils = require('./lib/utils');
var is = {};
is.VERSION = '0.10.1';
function every7(ee){
for(var i=0,l=ee.length;i<l;i++){
if(!ee[i]) return false}
return true}
[
utils,
require('./lib/predicates'),
require('./lib/chain'),
require('./lib/other'),
].reduce(utils.assign, is);
function empty7(ee){
return ee.length===0}
function any7(fn,ee){
for(var i=0,l=ee.length;i<l;i++){
var r=fn(ee[i])
if(r) return r;}}
function member7(it,ee){
for(var i=0,l=ee;i<l;i++){
if(ee[i]===it) return true}
return false}
function head(ee){
return ee[0]}
function tail(ee){
return ee.slice(1)}
function reverse(ee){
return ee.reverse()}
function map(fn,ee){
var r=Array(ee.length);
for(var i=0,l=ee.length;i<l;i++){
r[i]=fn(ee[i])}
return r[i]}
function pair(it,ee){
ee.unshift(it);
return ee}
function concatenate(l1,l2){
return l1.concat(l2)}
module.exports={
every7:every7,
empty7:empty7,
any7:any7,
member7:member7,
reverse:reverse,
tail:tail,
head:head,
map:map,
pair:pair,
concatenate:concatenate,
}
}
}
module.exports = is;
{
"author": "Dmitry Unkovksy <oil.crayons@gmail.com>",
"name": "predicate",
"description": "trivial predicates to aid list tossing",
"version": "0.0.1",
"homepage": "http://nojs.be/predicate",
"version": "0.10.1",
"description": "A set of predicate functions to improve your value testing and comparisons.",
"scripts": {
"pretest": "jshint --reporter node_modules/jshint-stylish/stylish.js index.js ./test",
"test": "mocha -R spec --recursive test",
"docs": "jade ./docs/index.jade --out ./docs",
"changelog": "tail -n +4 ./docs/changelog.jade > CHANGELOG.md",
"build-docs": "npm run docs && npm run changelog",
"build-dev": "cat ./docs/banner.txt > ./dist/is.js && browserify -s is index.js >> ./dist/is.js",
"build-prod": "cat ./docs/banner.txt > ./dist/is.min.js && uglifyjs ./dist/is.js >> ./dist/is.min.js",
"build": "npm run build-dev && npm run build-prod",
"clean": "rm ./dist/* ./docs/index.html CHANGELOG.md",
"prepare": "npm ts && npm run build && npm run build-docs"
},
"main": "index.js",
"author": {
"name": "Trevor Landau",
"email": "landautrevor@gmail.com",
"url": "http://trevorlandau.net"
},
"homepage": "http://landau.github.io/is",
"repository": {
"type": "git",
"url": "git://github.com/nojs/predicate.git"
"url": "http://github.com/landau/is"
},
"main":"./index.js",
"engines": {
"node": ">=0.4"
"bugs": {
"url": "http://github.com/landau/is/issues"
},
"dependencies": {},
"devDependencies": {}
"keywords": [
"functional",
"predicates",
"predicate",
"pred",
"type",
"instance",
"comparator",
"compare",
"curry",
"partial",
"is",
"testing",
"test",
"chain",
"chaining"
],
"license": "MIT",
"devDependencies": {
"browserify": "^3.44.2",
"jade": "^1.5.0",
"jshint": "^2.5.2",
"jshint-stylish": "^0.4.0",
"lodash": "~2.4.1",
"marked": "^0.3.2",
"matcha": "^0.5.0",
"mocha": "^1.21.4",
"should": "^4.0.4",
"uglify-js": "^2.4.13"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc