open-index/open-npm huggingface dataset:
npm package: @hydrawallet-sdk/eslint-config
Description: Eslint config for Hydra Wallet
Author: Aniadev
Latest version: 0.0.3

# eslint-config-pancake

Pancake Eslint config with:

- Airbnb config
- Typescript
- Prettier

## Usage

```
npx install-peerdeps --dev @pancakeswap/eslint-config-pancake
```

Add `"extends": "@pancakeswap/eslint-config-pancake"` to your eslint config file.
npm package: @hydre/commons
Description: You need some milk ?
Author: Hydre
Latest version: 1.0.22

![][licence] [![][npm]][npmlink] [![][travis]][travislink] [![][npmdl]][npmlink]

# @hydre/commons

[![][discord]][discordlink] [![][twitter]][twitterlink]

[licence]: https://img.shields.io/github/license/HydreIO/commons.svg?style=for-the-badge
[npm]: https://img.shields.io/npm/v/@hydre/commons.svg?logo=npm&style=for-the-badge
[npmlink]: https://www.npmjs.com/package/@hydre/commons
[travis]: https://img.shields.io/travis/com/HydreIO/commons.svg?logo=travis&style=for-the-badge
[travislink]: https://travis-ci.com/HydreIO/commons
[twitter]: https://img.shields.io/badge/follow-us-blue.svg?logo=twitter&style=for-the-badge
[twitterlink]: https://twitter.com/hydreio
[discord]: https://img.shields.io/discord/398114799776694272.svg?logo=discord&style=for-the-badge
[discordlink]: https://discord.gg/bRSpRpD
[npmdl]: https://img.shields.io/npm/dw/@hydre/commons.svg?color=%239C27B0&style=for-the-badge

Javascript commons

## Install

```
npm i @hydre/commons
```

## Use:

### Deferred Promise
Execute a promise outside scope

```js
import { Deferred } from '@hydre/commons'

const def = new Deferred()
def.promise.then(console.log('slt'))

setTimeout(() => {
	def.resolve() // or deferred.reject()
}, 1000)
```

### Decorators

#### @cache

Call the function/getter only once and keep the result in memory

```js
import { cache } from '@hydre/commons'

class Foo {

	@cache
	bar() {
		console.log('This line will be printed only once')
		return new myApiCall()
	}

	@cache
	get baz() {
		return 5 + 5
	}
}
```

### Helpers

#### mixin

Multiple class inheritance *see [exploring-es7-decorators](https://medium.com/google-developers/exploring-es7-decorators-76ecb65fb841)*

```js
import { mixin } from '@hydre/commons'

const TimeStone = mixin({
	get canRewind() {
		return true
	}
})

const PlaysFortnite = mixin({
	isDumb() {
		return true
	}
})

@TimeStone
@PlaysFortnite
class Thanos {
	isDumb() {
		return false
	}
}

new Thanos().isDumb() |> console.log // print true
```
npm package: @hydre/deferred-promise
Description: Resolve a promise outside scope
Author: Sceat
Latest version: 1.0.2
Deprecated: This repo is no longer maintened, please use @hydre/commons instead

![][licence] [![][npm]][npmlink] [![][travis]][travislink] [![][depfu]][depfulink]

# deferred-promise

[![][discord]][discordlink] [![][twitter]][twitterlink]

[licence]: https://img.shields.io/github/license/HydreIO/deferred-promise.svg?style=for-the-badge
[npm]: https://img.shields.io/npm/v/@hydre/deferred-promise.svg?logo=npm&style=for-the-badge
[npmlink]: https://www.npmjs.com/package/@hydre/deferred-promise
[travis]: https://img.shields.io/travis/com/HydreIO/deferred-promise.svg?logo=travis&style=for-the-badge
[travislink]: https://travis-ci.com/HydreIO/deferred-promise
[depfu]: https://img.shields.io/depfu/HydreIO/deferred-promise.svg?style=for-the-badge
[depfulink]: https://depfu.com/repos/HydreIO/deferred-promise
[twitter]: https://img.shields.io/badge/follow-us-blue.svg?logo=twitter&style=for-the-badge
[twitterlink]: https://twitter.com/hydreio
[discord]: https://img.shields.io/discord/265104803531587584.svg?logo=discord&style=for-the-badge
[discordlink]: https://discord.gg/Ea6a5cn

A deferred promise.

### Install

`npm i @hydre/deferred-promise`

### Use:

```js
import dPromise from '@hydre/deferred-promise'

const deferred = new dPromise()
deferred.promise.then(console.log('slt'))

setTimeout(() => {
	deferred.resolve() // or deferred.reject()
}, 1000)
```
npm package: @hydre/doubt
Description: Testing made right
Author: Hydre
Latest version: 7.3.1

<h1 align=center>@hydre/doubt</h1>
<p align=center>
  <img src="https://img.shields.io/github/license/HydreIO/doubt.svg?style=for-the-badge" />
  <a href="https://discord.gg/bRSpRpD">
    <img src="https://img.shields.io/discord/398114799776694272.svg?logo=discord&style=for-the-badge" />
  </a>
  <a href="https://www.npmjs.com/package/@hydre/doubt">
    <img src="https://img.shields.io/npm/v/@hydre/doubt.svg?logo=npm&style=for-the-badge" />
  </a>
  <a href="https://www.npmjs.com/package/@hydre/doubt">
    <img src="https://img.shields.io/npm/dw/@hydre/doubt?logo=npm&style=for-the-badge" />
  </a>
  <a href="https://github.com/HydreIO/doubt/actions?query=workflow%3ACI">
    <img src="https://img.shields.io/github/workflow/status/hydreio/doubt/CI?logo=Github&style=for-the-badge" />
  <a/>
</p>

<h3 align=center>An elegant and minimal <a href="http://testanything.org/tap-version-13-specification.html">TAP 13</a> compliant testing library</h3>

> Tester c'est douter

Test your code and pipe the output to a [consumer](http://testanything.org/consumers.html) like [tape-spec-emoji](https://github.com/Sceat/tap-spec-emoji)

- The only assertion is a [fast deep equality](https://github.com/epoberezkin/fast-deep-equal)

<img align=right src="https://i.imgur.com/u8oN5NI.png">

<!-- omit in toc -->
## Concept

No fugazzi here, just equality

<!-- omit in toc -->
## Toc

- [Install](#install)
- [Use](#use)
- [Format](#format)

## Install

```
npm i -D @hydre/doubt
```

## Use

Usage is trivial

- `stdout` - Doubt doesn't pollute the standard output, use any stream
- `title` - Test suite title
- `calls` - Enforce how many tests you want, it will fails if the count doesn't match

```js
import Doubt from '@hydre/doubt'

const doubt = Doubt({
  stdout : process.stdout,
  title  : 'Testing is simple',
  calls  : 1,
})
```

And then write some tests

```js
doubt['Roses are red']({
  because: 'red',
  is     : 'red',
})
```

## Format

```js
import Doubt from '@hydre/doubt'
import reporter from 'tap-spec-emoji'
import { pipeline, PassThrough } from 'stream'

const through = new PassThrough()

pipeline(
    through,
    reporter(),
    process.stdout,
    () => {},
)

const doubt = Doubt({
  stdout : through,
  title  : 'Testing is simple',
  calls  : 4,
})

doubt['Roses are red']({
  because: 'red',
  is     : 'red',
})

doubt['Violets are blue']({
  because: 'blue',
  is     : 'blue',
})

doubt['Doubt is awesome']({
  because: { amazing: true },
  is     : { amazing: true },
})

doubt['Your tests should be too']({
  because: { 'using doubt': true },
  is     : { 'using doubt': false },
})
```