open-index/open-npm huggingface dataset:
npm package: @orodio/counter
Description: orodio does counter api
Author: James Hunter
Latest version: 2.1.0

# `@orodio/counter`

### Install

```
yarn add @orodio/counter
```

### Types
```
Id    :: String
Title :: String
Count :: Number
Date  :: String

Counter :: {
  id:        Id,
  title:     Title,
  count:     Count,
  createdAt: Date,
  updatedAt: Date,
}

Response a :: Promise a

counters           :: () -> Response { counters: [Counter] }
counter            :: Id -> Response { counter: Counter }
createCounter      :: { title: Title, count?: Count } -> Response { counter: Counter }
updateCounterTitle :: (Id, Title) -> Response { counter: Counter }
updateCounterCount :: (Id, Count) -> Response { counter: Counter }
decCounter         :: Id -> Response { counter: Counter }
incCounter         :: Id -> Response { counter: Counter }
delCounter         :: Id -> Response { counter: Counter }

Stream a :: Observable a

counters$ :: () -> Stream { counters: [Counter] }
counter$  :: id -> Stream { counter: Counter }
```

### Dev

```
$ make               # see make help
$ make help          # shows all the make commands
$ make build         # build stuff puts it in /lib
$ make build-watch   # make build but all the time
$ make test          # tests the stuff
$ make test-watch    # make test but all the time
$ make version       # creates a patch tag
$ make version-minor # creates a minor tag
$ make version-major # creates a major tag
$ make publish       # publishes the module
```
npm package: @orodio/gate
Description: orodio does a lock
Author: James Hunter
Latest version: 2.0.0

# `@orodio/params`

[![Build Status](https://travis-ci.org/orodio/params.svg?branch=master)](https://travis-ci.org/orodio/params)

### Install

```
yarn add @orodio/params
```

### Use

```
import gate from "@orodio/gate"

const { isUnlocked, isLocked, lock, unlock } = gate() // same as gate(true)
isLocked()   // true
isUnlocked() // false
unlock()
isLocked()   // false
isUnlocked() // true
lock()
isLocked()   // true
isUnlocked() // false
```

### Dev

```
$ make               # see make help
$ make help          # shows all the make commands
$ make build         # build stuff puts it in /lib
$ make build-watch   # make build but all the time
$ make test          # tests the stuff
$ make test-watch    # make test but all the time
$ make version       # creates a patch tag
$ make version-minor # creates a minor tag
$ make version-major # creates a major tag
$ make publish       # publishes the module
```
npm package: @orodio/inject-template
Description: orodio does template injection
Author: James Hunter
Latest version: 0.0.2

# `@orodio/inject-template`

[![Build Status](https://travis-ci.org/orodio/gate.svg?branch=master)](https://travis-ci.org/orodio/inject-template)

### Install

```
yarn add @orodio/inject-template
```

### Use
```javascript
import { inject } from '@orodio/inject-template'

const magicString = inject`
  One ${ d => d.type },
  Two ${ d => d.type },
  ${ d => d.color1 } ${ d => d.type },
  ${ d => d.color2 } ${ d => d.type }.
`

const str = magicString({
  type: 'fish',
  color1: 'Red',
  color2: 'Blue',
})

console.log(str)
// One fish,
// Two fish,
// Red fish,
// Blue fish.


```

### Advanced Example
```javascript
// ./graphql.js
import { inject } from '@orodio/inject-template'

export const graphQL = (...query) => (data={}) =>
  fetch(GRAPHQL_URL, {
    ...method(),
    ...headers(),
    body: JSON.stringify({
      query: inject(...query)(data) // -------- THIS BIT
    }),
  }).then(res => res.json())



// ./Counter.js
import React from 'react'
import { graphQL } from './graphql'

// -------------------------------------------- AND THIS BIT
const query = graphQL`
  query {
    counter(id: "${ d => d.id /* :magic: interpolating in a function :magic: */}") {
      title
      count
    }
  }
`

export class Counter extends React.Component {
  state = {
    loading: true,
    count: 0,
    title: "",
  }

  componentDidMount () {
    const { id } = this.props
    query({ id }) // -------------------------- ALSO THIS BIT
      .then(res => this.setState({
        loading:false,
        ...res.data.counter
      })
  }

  render () {
    const {
      loading,
      count,
      title
    } = this.state

    return loading
      ? <div>Loading...</div>
      : <div>{ title }: { count }</div>
  }
}
```
npm package: @orodio/interleave
Description: orodio does interleave
Author: James Hunter
Latest version: 0.0.4

# `@orodio/interleave`

[![Build Status](https://travis-ci.org/orodio/gate.svg?branch=master)](https://travis-ci.org/orodio/interleave)

### Install

```
yarn add @orodio/interleave
```

### Use

```
import { interleave } from '@orodio/interleave'

const arr1 = [1, 2, 3, 4, 5]
const arr2 = ["a", "b", "c", "d"]

const arr3 = interleave(arr1, arr2)
const arr4 = [1, "a", 2, "b", 3, "c", 4, "d", 5]

assert(arr3, arr4)
```
npm package: @orodio/maybe
Description: orodio does Maybe a
Author: James Hunter
Latest version: 3.0.0

# `@orodio/maybe`

[![Build Status](https://travis-ci.org/orodio/gate.svg?branch=master)](https://travis-ci.org/orodio/maybe)

### Install

```
yarn add @orodio/maybe
```

### Use

```
import {
  Just,
  Nothing,
  isJust,
  isNothing,
  bind,
  scope,
} from "@orodio/maybe"

const isNumber = value =>
  typeof value === 'number'
    ? Just(value)
    : Nothing()

const isGreaterThanOrEqualTo = n => value =>
  value >= n
    ? Just(value)
    : Nothing()

const isLessThanOrEqualTo = n => value =>
  value <= n
    ? Just(value)
    : Nothing()

const inRange = (min, max) =>
  bind([
    isNumber,
    isGreaterThanOrEqualTo(min),
    isLessThanOrEqualTo(max),
  ])

const inc = d => value =>
  Just(value + d)

const m1 = inRange(5, 10)(7)
assert(m1.value, 7)
assert(m1.toBoolean(), true)
assert(isJust(m1), true)
assert(isNothing(m1), false)

const m2 = inRange(5, 10)(15)
assert(m2.value, undefined)
assert(m2.toBoolean(), false)
assert(isJust(m2), false)
assert(isNothing(m2), true)

const mx = bind([
  scope('a', [inRange(5,  15), inc(1)]),
  scope('b', [inRange(15, 25), inc(1)]),
  scope('c', [inRange(25, 30), inc(1)]),
])

const m3 = mx({ a:10, b:20, c:30 })
assert(m3.value, { a:11, b:21, c:31 })
assert(m3.toBoolean(), true)
assert(isJust(m3), true)
assert(isNothing(m3), false)

const m4 = mx({ a:1, b:20, c:30 })
assert(m4.value, undefined)
assert(m4.toBoolean(), false)
assert(isJust(m4), false)
assert(isNothing(m4), true)

const m5 = mx({ a:10, b:20, c:"lol" })
assert(m5.value, undefined)
assert(m5.toBoolean(), false)
assert(isJust(m5), false)
assert(isNothing(m5), true)

const m6 = mx("lol")
assert(m6.value, undefined)
assert(m6.toBoolean(), false)
assert(isJust(m6), false)
assert(isNothing(m6), true)

const m7 = mx({ a:10, b:20, c:30, d:"lol" })
assert(m7.value, { a:11, b:21, c:31, d:"lol" })
assert(m7.toBoolean(), true)
assert(isJust(m7), true)
assert(isNothing(m7), false)
```

### Dev

```
$ make               # see make help
$ make help          # shows all the make commands
$ make build         # build stuff puts it in /lib
$ make build-watch   # make build but all the time
$ make test          # tests the stuff
$ make test-watch    # make test but all the time
$ make version       # creates a patch tag
$ make version-minor # creates a minor tag
$ make version-major # creates a major tag
$ make publish       # publishes the module
```
npm package: @orodio/params
Description: orodio does params
Author: James Hunter
Latest version: 1.0.1

# `@orodio/params`

[![Build Status](https://travis-ci.org/orodio/params.svg?branch=master)](https://travis-ci.org/orodio/params)

### Install

```
yarn add @orodio/params
```

### Use

```
import { stringify, parse } from "@orodio/params"

stringify({ foo:1, bar:true, omg:[1,true,"baz"]})
// ?bar=true&foo=1&omg=1|true|baz

parse("?bar=true&foo=1&omg=1|true|baz")
// { foo:1, bar:true, omg:[1,true,"baz"]}

```

### Dev

```
$ make               # see make help
$ make help          # shows all the make commands
$ make build         # build stuff puts it in /lib
$ make build-watch   # make build but all the time
$ make test          # tests the stuff
$ make test-watch    # make test but all the time
$ make version       # creates a patch tag
$ make version-minor # creates a minor tag
$ make version-major # creates a major tag
$ make publish       # publishes the module
```
npm package: @orodio/uuid
Description: orodio does a uuids
Author: James Hunter
Latest version: 1.0.0

# `@orodio/params`

[![Build Status](https://travis-ci.org/orodio/gate.svg?branch=master)](https://travis-ci.org/orodio/gate)

### Install

```
yarn add @orodio/params
```

### Use

```
import uuid from "@orodio/uuid"

const a = uuid() // xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
const b = uuid() // xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

a === b // false

// where x = [0-9a-z]

```

### Dev

```
$ make               # see make help
$ make help          # shows all the make commands
$ make build         # build stuff puts it in /lib
$ make build-watch   # make build but all the time
$ make test          # tests the stuff
$ make test-watch    # make test but all the time
$ make version       # creates a patch tag
$ make version-minor # creates a minor tag
$ make version-major # creates a major tag
$ make publish       # publishes the module
```
npm package: @oroinc/elevatezoom
Description: A jQuery image zoom plugin, with tints, easing and gallery integration.
Author: Andy Eades
Latest version: 3.0.81

[jQuery Zoom Plugin](http://www.elevateweb.co.uk/image-zoom/)
================================

elevateZoom - A jQuery image zoom plugin


## Getting Started

Include jQuery and the plugin on a page. Include your images and initialise the plugin.

```html
<img id="zoom_01" src='images/small/image1.png' data-zoom-image="images/large/image1.jpg"/>

<script>
    $('#zoom_01').elevateZoom();
</script>
```

For more information on how to setup and customise, [check the examples](http://www.elevateweb.co.uk/image-zoom/examples).

## License
Copyright (c) 2012 Andrew Eades
Dual licensed under the GPL and MIT licenses.