open-index/open-npm huggingface dataset:
npm package: @mizchi/indexeddb
Description: IndexedDB for KVS
Author: azu
Latest version: 1.1.0

# @kvs/indexeddb

IndexedDB for KVS

## Install

Install with [npm](https://www.npmjs.com/):

    npm install @kvs/indexeddb

## Usage

```ts
import { KVSIndexedDB, kvsIndexedDB } from "@kvs/indexeddb";
(async () => {
    type StorageSchema = {
        a1: string;
        b2: number;
        c3: boolean;
    };
    const storage = await kvsIndexedDB<StorageSchema>({
        name: "test",
        version: 1,
    });
    await storage.set("a1", "string");
    await storage.set("b2", 42);
    await storage.set("c3", false);
    const a1 = await storage.get("a1");
    const b2 = await storage.get("b2");
    const c3 = await storage.get("c3");
    assert.strictEqual(a1, "string");
    assert.strictEqual(b2, 42);
    assert.strictEqual(c3, false);
})();
```

## Changelog

See [Releases page](https://github.com/azu/kvs/releases).

## Running tests

Install devDependencies and Run `npm test`:

    npm test

## Contributing

Pull requests and stars are always welcome.

For bugs and feature requests, [please create an issue](https://github.com/azu/kvs/issues).

1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D

## Author

- [github/azu](https://github.com/azu)
- [twitter/azu_re](https://twitter.com/azu_re)

## License

MIT © azu

## Related

- https://github.com/tkdalic/indexed-kv
- https://github.com/GoogleChromeLabs/kv-storage-polyfill
- https://github.com/localForage/localForage/blob/master/src/drivers/indexeddb.js
npm package: @mizchi/infinite-monkey
Description: Random browser controller on puppeteer
Latest version: 0.0.3

# infinite-monkey

Random browser controller on puppeteer

![](https://i.gyazo.com/6b9db607f079cf915fd647116818bb09.gif)

Collect error and coverage

```
$ npm install -g @mizchi/infinite-monkey
$ infinite-monkey http://localhost:3000 --interval 300

$ /Users/mz/.ghq/github.com/mizchi/infinite-monkey/node_modules/.bin/ts-node -T src/crawl.ts http://localhost:1234 --interval 32
Terminate(Error): Terminate by error: http://localhost:1234/about: Error: Execution context was destroyed, most likely because of a navigation.

Bytes used: 43.32789809868165%
...
```

## How to use

```
$ infinite-monkey http://localhost:1234 --interval 16 --maxRetry 3 --maxAction 300 --noHeadless
```

## LICENSE

MIT
npm package: @mizchi/injector
Description: Injector for Decorator
Author: mizchi
Latest version: 0.1.0

# Injector for typescript decorator

## Install

```
npm install @mizchi/injector --save
```

## Usage

```js
const createInjector = require('@mizchi/injector');
const rootInjector = createInjector();
const injector = rootInjector.createChildInjector(); // can search parents
class A {}
class B {}

injector.mapSingleton(A);
injector.mapValue(B, new B);
// injector.unmap(B); // to remove
@injector({
  a: A,
  b: B
})
class T {
  a: A;
  b: B;
}
const t = new T();
assert.ok(t.a instanceof A);
assert.ok(t.b instanceof B);
```

## LICENSE

MIT
npm package: @mizchi/jest-mdx-loader
Description: Jest transformer that wraps mdx-js/mx webpack loader
Author: Joseph Black
Latest version: 0.1.2

# jest-mdx-loader

Jest transformer that wraps mdx-js/mx webpack loader

## Install

```
yarn add --dev jest-mdx-loader
```

## Usage

Install jest-mdx-loader and then add it to your jest.config.js under transform:

```js
/// jest.config.js

module.exports = {
  //...
  transform: {
    "^.+\\.jsx?$": "babel-jest",
    ".mdx?$": "jest-mdx-loader"
  }
  //...
};
```

If you need to perform any additional pre-processing prior to parsing with mdx you can easily extend the loader as follows:

```js
// src/my-custom-jest-mdx-loader.js

const createTransformer = require("jest-mdx-loader/src/createTransformer");

preMdxParseCallback = function(src) {
  var modifiedSrc = src;

  // CUSTOM LOGIC HERE

  return modifiedSrc;
};

module.exports = {
  process: createTransformer(preMdxParseCallback)
};
```

```js
/// jest.config.js

module.exports = {
  //...
  transform: {
    "^.+\\.jsx?$": "babel-jest",
    ".mdx?$": "<rootDir>/src/my-custom-jest-mdx-loader.js"
  }
  //...
};
```

## Licence

MIT © [Joseph Black](https://josephconradblack.com)