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

compose-function

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

compose-function - npm Package Compare versions

Comparing version 1.1.1 to 1.3.0

_mocha

10

package.json
{
"name": "compose-function",
"version": "1.1.1",
"version": "1.3.0",
"description": "Compose new functions f(g(x))",
"main": "index.js",
"scripts": {
"test": "mocha"
"test": "sjs -m ./macro test.sjs -o test.js; _mocha --reporter nyan; rm test.js"
},

@@ -27,5 +27,7 @@ "repository": {

"expect.js": "^0.3.1",
"mocha": "^2.1.0"
"mocha": "^2.1.0",
"sweet.js": "^0.7.3"
},
"dependencies": {}
"dependencies": {
}
}

@@ -28,2 +28,14 @@ Compose-Function

### Sweetjs
```js
var composition = sqr ... add2; // sqr(add2(x))
composition(2) // => 16
```
```bash
$ sjs -m compose-function/macro yourfile.js
```
### with curry

@@ -45,2 +57,6 @@

);
// or with the sweetjs macro
var myFunc = curry(add, 6) ...
sqr ...
curry(add, 2)

@@ -47,0 +63,0 @@ // map(filter(list, even), sqr)

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