# lmbd

> Sugar for your tinest of functions.

Latest version **0.1.0** (published 2013-01-07) · BSD license · 0 weekly downloads

## Install

```sh
npm install lmbd
pnpm add lmbd
yarn add lmbd
bun add lmbd
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2013-01-07 |
| First published | 2013-01-07 |
| Weekly downloads | 0 |
| License | BSD |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | hughfdjackson |
| Maintainers | hughfdjackson |

## Links

- npm: https://www.npmjs.com/package/lmbd
- Repository: https://github.com/hughfdjackson/lmbd
- npm.io page: https://npm.io/package/lmbd

## Recent versions

- 0.1.0 (latest) — 2013-01-07

## README

# lmbd

Sugar for your tinest of functions.

## Why

`function(){}` is a lot of noise, ya know?  Also, [i was reading a blog post, and got a little jelly of ruby](http://combinators.info/#string-to-proc).

## Example

```javascript
var λ = require('lmbd')

var people = [ 
  { name: 'super-bach' },
  { name: 'tele man'  },
  { name: 'mozart.. boy?'}
]

var names = people.map(λ('a.name'))
```

## API 

### λ(String) -> function

Accepts a single expression, in string form.  It'll add in parameters as needed for your variables; no worries!.

```javascript
var λ = require('lmbd')

var add = λ('a + b'),
    inc = λ('a + 1')
    wrap = λ('b + a + b')
    
add(1, 2) //= 3
add('foo', 'bar') //= 'foobar'
inc(1) //=2
wrap('"', 'foo') //= '"foo"'
```

## Install

```bash
npm install lmbd
```

---
_Source: https://npm.io/package/lmbd · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
