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

l

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

l - npm Package Compare versions

Comparing version 0.5.0 to 0.5.1

2

package.json
{
"name": "l",
"version": "0.5.0",
"version": "0.5.1",
"description": "Mix Async/Sync code with Promises and Streams in a reusable unified line",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -23,3 +23,3 @@ # L

var line = l([
var calc = l([
(val) => val * 5, // sync

@@ -33,7 +33,7 @@ { // Split

l(1, function (error, answer) { // with a callback
calc(1, function (error, answer) { // with a callback
require('assert').strictEqual(answer, 42)
})
l(Math.PI).then(result => { // as a promise
calc(Math.PI).then(result => { // as a promise
console.log(result) // 127.66370614359172

@@ -40,0 +40,0 @@ })

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