fp-booleans
Version:
Utilities to apply boolean logic (not, and, or) to functions and higher-order functions. Tiny, tested and composable
83 lines (82 loc) • 2.07 kB
JSON
{
"name": "fp-booleans",
"version": "0.5.2",
"description": "Utilities to apply boolean logic (not, and, or) to functions and higher-order functions. Tiny, tested and composable",
"author": "Pierluigi Pesenti",
"license": "MIT",
"type": "module",
"files": [
"dist/"
],
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/esm/index.d.ts",
"keywords": [
"not",
"and",
"or",
"logical not",
"logical and",
"logical or",
"invert function",
"invert logic",
"flip logic",
"boolean",
"predicate",
"predicates",
"boolean predicate",
"boolean predicates",
"boolean logic",
"predicate functions",
"isPredicate",
"isHigherOrderPredicate",
"is predicate",
"is higher order predicate",
"logic",
"logical operations",
"functional-programming",
"functional programming",
"fp",
"higher-order functions",
"compose",
"compose logic",
"compose functions",
"composition",
"composable",
"utility",
"javascript",
"typescript",
"operators",
"utility-functions",
"development-tools",
"programming",
"code-simplification",
"functional utilities"
],
"repository": "https://github.com/Oaxoa/fp-booleans",
"devDependencies": {
"@eslint/js": "9.9.1",
"@types/jest": "29.5.12",
"eslint": "9.9.1",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-import": "2.29.1",
"globals": "15.12.0",
"jest": "29.7.0",
"prettier": "3.3.3",
"ts-jest": "29.2.5",
"typescript": "5.5.4",
"typescript-eslint": "8.3.0"
},
"scripts": {
"build": "yarn clean && yarn build:ts:cjs && yarn build:ts:esm",
"build:ts:cjs": "tsc -p tsconfig.cjs.json",
"build:ts:esm": "tsc -p tsconfig.esm.json",
"clean": "rm -rf ./dist",
"lint": "eslint .",
"pack": "yarn --cwd ./dist pack",
"prettier": "prettier '**/*.ts'",
"prettier:fix": "prettier --write '**/*.ts'",
"test": "jest --coverage",
"test:watch": "jest --watchAll"
}
}