open-index/open-npm huggingface dataset:
npm package: @sequencework/eslint-config
Description: Eslint config and init script
Latest version: 0.0.9

## @sequencework/eslint-config

### 🏎 Short "How to use"

```
yarn add @sequencework/eslint-config --dev
yarn sequence-lint-init
yarn install
```

### Detailed "How to use"

Install this package :

```
yarn add @sequencework/eslint-config --dev
```

It contains a script to _initialize_ your package. Run it like this :

```
yarn sequence-lint-init
```

The script will rewrite your package.json to add dev dependencies, pre-commit hooks (with husky), lint-staged, ...

(For example, you can check what's added for the [default configuration](init-configs/default.json))

To install the new dependencies and the git hooks, you need to run :

```
yarn install
```

🎁 That's it, you're all set

### More

Shamelessly inspired by [@zeit's eslint config](https://github.com/zeit/eslint-config-base)
npm package: @sequenia/describing-model
Description: Simple way for define you data class and describe that fields, display name, way for render html-forms and tables
Author: sequenia
Latest version: 0.0.2

# @sequenia/describing-model

> Simple way for define you data class and describe that fields, display name, way for render html-forms and tables

[![NPM](https://img.shields.io/npm/v/@sequenia/describing-model.svg)](https://www.npmjs.com/package/@sequenia/describing-model) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

## Install

```bash
npm install --save @sequenia/describing-model
```

## Usage

```jsx
// some_model.js
import DescribingModel from '@sequenia/describing-model'

class SomeModel extends DescribingModel {

  displayName(item) {
    return `${item.type} - ${item.name}`;
  }

  listCells(items = undefined, {} = {}) {
    return [
      {
        name: "type",
        displayName: "Model's type",
        type: "enum",
        data: [
          {
            key: "simple",
            value: "Simple"
          },
          {
            key: "extended",
            value: "Extended"
          },
          {
            key: "user_defined",
            value: "User defined"
          }
        ]
      },
      {
        name: "name",
        displayName: "Name",
        type: "text",
        sortKey: "name"
      }
    ]
  }

  formFields(item = undefined, {} = {}) {
    return [
      {
        name: "type",
        displayName: "Model's type",
        type: "enum",
        data: [
          {
            key: "simple",
            value: "Simple"
          },
          {
            key: "extended",
            value: "Extended"
          },
          {
            key: "user_defined",
            value: "User defined"
          }
        ],
        required: true
      },
      {
        name: "name",
        displayName: "Name",
        type: "text"
      }
    ]
  }
}

const instance = new SomeModel();
export { instance as SomeModel };

// some_other_file.js

import { SomeModel } from "path/to/some_model.js"

console.log(SomeModel.displayName(someItem));
console.log(SomeModel.listCells(displayItems));
```

## License

MIT © [sequenia](https://github.com/sequenia)
npm package: @sequenia/socket-action-cable
Description: library for rails action cable
Author: sequenia
Latest version: 1.0.0

# @sequenia/socket-action-cable

> library for rails action cable

[![NPM](https://img.shields.io/npm/v/@sequenia/socket-action-cable.svg)](https://www.npmjs.com/package/@sequenia/socket-action-cable) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

## Install

```bash
npm install --save @sequenia/socket-action-cable
```

## Usage

```jsx
import ActionCable from '@sequenia/socket-action-cable'

/* create socket connection */
const url = "wss://url-path-to-somewhere";
const ActionCableInstance = new ActionCable(url)

/* subscribe to channel: channell name, params and onMessage channel callback function */
ActionCableInstance.subscribe("ExampleChannel", {foo: "bar", bar: "buzz"}, message => message)

/* unsubscribe */
ActionCableInstance.unsubscribe("ExampleChannel")

/* get readyState of socket connection */
const readyState = ActionCableInstance.readyState

/* get buffered amount of socket connection */
const bufferedAmount = ActionCableInstance.bufferedAmount

/* close connection */
ActionCableInstance.close()

/* onError socket connection callback */
ActionCableInstance.onErrorCallback((event) => { ... })

/* onClose socket connection callback */
ActionCableInstance.onClose((event) => { ... })
```

## License

MIT © [sequenia](https://github.com/sequenia)