# @lims.io/connector-dock

> Connector for LIMS Dock

Latest version **0.5.0** (published 2018-03-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install @lims.io/connector-dock
pnpm add @lims.io/connector-dock
yarn add @lims.io/connector-dock
bun add @lims.io/connector-dock
```

## 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.5.0 |
| Published | 2018-03-09 |
| First published | 2018-03-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 179.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Marcel Mika |
| Maintainers | marcelmika |
| Keywords | lims, connector, dock |

## Links

- npm: https://www.npmjs.com/package/@lims.io/connector-dock
- Repository: https://github.com/marcelmika/lims-connector-dock
- Issues: https://github.com/marcelmika/lims-connector-dock/issues
- npm.io page: https://npm.io/package/@lims.io/connector-dock

## Dependencies (1)

- [xcomponent](https://npm.io/package/xcomponent.md) ^6.0.38

## Recent versions

- 0.5.0 (latest) — 2018-03-09

## README

# LIMS Connector for Dock

Injects Dock to the web page and allows communication with the related API.

## Getting started

```js
import Dock from "@lims.io/connector-dock";

// The name of the node that will hold the dock
const node = '#container';
// Url to dock api
const url = '...';
// Permatoken
const permatoken = '...';

const dock = Dock(node, url, {
    permatoken,
    onLoad() {
        
    },
    // Other API calls
});
```

## Drivers

The library can be also used as a part of the following frameworks.

### React

```jsx harmony
import React from "react";
import ReactDOM from "react-dom";
import {createReactComponent} from "@lims.io/connector-dock";

// Dock component
const Dock = createReactComponent(React, ReactDOM);

const View = ({url, permatoken, onLoad}) => (   
    <div>
        <Dock url={url} permatoken={permatoken} onLoad={onLoad}/>
    </div>
);
```

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