open-index/open-npm huggingface dataset:
npm package: @nkbt/geovis
Description: GeoVis
Author: Nik Butenko
Latest version: 1.1.3

# geovis [![npm](https://img.shields.io/npm/v/geovis.svg?style=flat-square)](https://www.npmjs.com/package/geovis)

[![Gitter](https://img.shields.io/gitter/room/nkbt/help.svg?style=flat-square)](https://gitter.im/nkbt/help)

[![CircleCI](https://img.shields.io/circleci/project/nkbt/geovis.svg?style=flat-square&label=nix-build)](https://circleci.com/gh/nkbt/geovis)
[![AppVeyor](https://img.shields.io/appveyor/ci/nkbt/geovis.svg?style=flat-square&label=win-build)](https://ci.appveyor.com/project/nkbt/geovis)
[![Coverage](https://img.shields.io/codecov/c/github/nkbt/geovis.svg?style=flat-square)](https://codecov.io/github/nkbt/geovis?branch=master)
[![Dependencies](https://img.shields.io/david/nkbt/geovis.svg?style=flat-square)](https://david-dm.org/nkbt/geovis)
[![Dev Dependencies](https://img.shields.io/david/dev/nkbt/geovis.svg?style=flat-square)](https://david-dm.org/nkbt/geovis#info=devDependencies)

React component-wrapper to swap one element with another and back, useful to show/hide popups, expand/collapse elements, various toggles, etc.

## Installation

### NPM
```sh
npm install --save @nkbt/geovis react redux react-redux three

```

Don't forget to manually install peer dependencies (`react`, `redux`, `react-redux`, `three`) if you use npm@3.


### Bower:
```sh
bower install --save https://unpkg.com/@nkbt/geovis/bower.zip
```


### 1998 Script Tag:
```html
<script src="https://unpkg.com/react/dist/react.min.js"></script>
<script src="https://unpkg.com/redux/dist/redux.min.js"></script>
<script src="https://unpkg.com/react-redux/dist/react-redux.min.js"></script>
<script src="https://unpkg.com/three/build/three.min.js"></script>
<script src="https://unpkg.com/@nkbt/geovis/build/geovis.js"></script>
(Module exposed as `GeoVis`)
```


## Demo

[http://nkbt.github.io/geovis](http://nkbt.github.io/geovis)

## Codepen demo

```js
// TODO
```

## Usage
```js
const React = require('react');
const ReactDOM = require('react-dom');
const {createStore, combineReducers} = require('redux');
const {Provider} = require('react-redux');
const {App, attacks, controls} = require('@nkbt/geovis');

const el = React.createElement;

const store = createStore(combineReducers({attacks, controls}));

const appRoot = document.createElement('div');
appRoot.id = 'app';
document.body.appendChild(appRoot);
ReactDOM.render(el(Provider, {store}, el(App)), appRoot);
```

## Options

```js
// TODO
```

## Development and testing

Currently is being developed and tested with the latest stable `Node 6` on `OSX` and `Windows`.

To run example covering all `GeoVis` features, use `npm start dev`, which will compile `src/example/Example.js`

```bash
git clone git@github.com:nkbt/geovis.git
cd geovis
npm install
npm start dev

# then
open http://localhost:8080
```

## Tests

```bash
# to run tests
npm start test

# to generate test coverage (./reports/coverage)
npm start test.cov

# to run end-to-end tests
npm start test.e2e
```

## License

MIT
npm package: @nkbt/geovis-mock
Description: Mock to feed GeoVis server with data
Author: Nik Butenko
Latest version: 1.1.3

# geovis-mock [![npm](https://img.shields.io/npm/v/geovis-mock.svg?style=flat-square)](https://www.npmjs.com/package/geovis-mock)
            
[![Discord](https://img.shields.io/badge/chat-discord-blue.svg?style=flat-square)](https://discord.gg/013tGW1IMcW6Vd1o7)

[![CircleCI](https://img.shields.io/circleci/project/nkbt/geovis-mock.svg?style=flat-square)](https://circleci.com/gh/nkbt/geovis-mock)
[![Coverage](https://img.shields.io/coveralls/nkbt/geovis-mock.svg?style=flat-square)](https://codecov.io/github/nkbt/geovis-mock?branch=master)
[![Dependencies](https://img.shields.io/david/nkbt/geovis-mock.svg?style=flat-square)](https://david-dm.org/nkbt/geovis-mock)
[![Dev Dependencies](https://img.shields.io/david/dev/nkbt/geovis-mock.svg?style=flat-square)](https://david-dm.org/nkbt/geovis-mock#info=devDependencies)


Mock to feed GeoVis server with data


## Installation

```sh
npm install --global @nkbt/geovis-mock
```


## Usage


### Running mock

#### CLI

```sh
> WS_HOST=localhost WS_PORT=10000 geovis-mock
```

#### API

```js
const {run} = require('@nkbt/geovis-mock');

const {
  WS_HOST = 'localhost',
  WS_PORT = 10000
} = process.env;

run({WS_HOST, WS_PORT});
```


### Logging

```sh
06:38 $ ./bin.js 
connecting to ws://localhost:10000...
connected
>> {"action":"GEO_BROADCAST","payload":[{"srcLat":55.751244,"srcLon":37.618423,"dstLat":49.246292,"dstLon":-123.116226,"value":3}]}
>> {"action":"GEO_BROADCAST","payload":[{"srcLat":50.411198,"srcLon":30.446634,"dstLat":55.751244,"dstLon":37.618423,"value":4}]}
>> {"action":"GEO_BROADCAST","payload":[{"srcLat":-33.865143,"srcLon":151.2099,"dstLat":-12.462827,"dstLon":130.841782,"value":6}]}
disconnected
```


## Development and testing

Currently is being developed and tested with the latest stable `Node 6` under `OSX`.

```bash
git clone git@github.com:nkbt/geovis-mock.git
cd geovis-mock
npm install
```


## Tests

```bash
# to run tests
npm test

# to generate test coverage (./coverage)
npm run cov
```


## License

MIT
npm package: @nkbt/geovis-standalone
Description: GeoVis Standalone
Author: Nik Butenko
Latest version: 1.0.0

# GeoVis

GeoVis Standalone


## Dev

```
$ npm install
```


### Run

```
$ npm start
```


### Build

```
$ npm run build
```

Builds the app for macOS, Linux, and Windows, using [electron-packager](https://github.com/electron-userland/electron-packager).


## License

MIT
npm package: @nkbt/themr
Description: Theming wrapper for React UI libs
Author: Nik Butenko
Latest version: 1.0.3

# @nkbt/themr [![npm](https://img.shields.io/npm/v/@nkbt/themr.svg?style=flat-square)](https://www.npmjs.com/package/@nkbt/themr)

Theming wrapper for React UI libs


[![CircleCI](https://img.shields.io/circleci/project/nkbt/themr.svg?style=flat-square)](https://circleci.com/gh/nkbt/themr)
[![Dependencies](https://img.shields.io/david/nkbt/themr.svg?style=flat-square)](https://david-dm.org/nkbt/themr)
[![Dev Dependencies](https://img.shields.io/david/dev/nkbt/themr.svg?style=flat-square)](https://david-dm.org/nkbt/themr#info=devDependencies)


## Installation

### NPM

```sh
npm install --save @nkbt/themr
```

### 1998 Script Tag:
```html
<script src="https://unpkg.com/react/umd/react.production.min.js"></script>
<script src="https://unpkg.com/@nkbt/themr/build/@nkbt/themr.min.js"></script>
(Module exposed as `themr`)
```


## Demo

[http://nkbt.github.io/themr](http://nkbt.github.io/themr)

## Codepen demo

[http://codepen.io/nkbt/pen/VxrYKq](http://codepen.io/nkbt/pen/VxrYKq?editors=101)


## Usage

See [example/App/index.js](example/App/index.js)


## Usage


### Example of themed UI component
```js
import {themr} from 'themr';
import css from './TextWithIcon.css';
/*
const css = {
  container: 'TextWithIcon-container',
  icon: 'TextWithIcon-icon',
  text: 'TextWithIcon-text',
}
*/

const TextWithIcon = ({icon, theme, ...props}) => (
  <div className={theme.container}>
    <span className={theme.icon} />
    <span className={theme.text} {...props} />
  </div>
);
TextWithIcon.propTypes = {
  theme: PropTypes.object.isRequired
};


export default themr(css, {override: false})(TextWithIcon);
```

### Output
```js
import TextWithIcon from './TextWithIcon';
import css from './Themed.css';
/*
const css = {
  text: 'Themed-text',
}
*/

const Themed = () =>
  <TextWithIcon theme={css}>Test</TextWithIcon>;
```

```html
<div class="TextWithIcon-container">
  <span class="TextWithIcon-icon"></span>
  <span class="TextWithIcon-text Themed-text">Test</span>
  <!--                           ^^^ added class -->
  <!-- if {override: true} option was used-->
</div>
```

if `{override: true}` option was used

```html
<div class="TextWithIcon-container">
  <span class="TextWithIcon-icon"></span>
  <span class="Themed-text">Test</span>
  <!--         ^^^ overridden class -->
</div>
```


## Development and testing

Currently is being developed and tested with the latest stable `Node` on `OSX`.

To run example covering all `ReactComponentRouter` features, use `yarn start`, which will compile `example/index.js`

```bash
git clone git@github.com:nkbt/themr.git
cd themr
yarn install
yarn start

# then
open http://localhost:8080
```

## Tests

```bash
# to run ESLint check
yarn lint

# to run tests
yarn test
```

## License

MIT
npm package: @nkbt/timeout
Description: Option-less GNU timeout implementation
Author: Nik Butenko
Latest version: 1.0.2

# timeout

Option-less GNU `timeout` implementation

## Installation

```bash
npm install -g timeout
```

## Usage

```bash
timeout DURATION COMMAND
```


## Examples

```bash
13:31 $ timeout 1 sleep 4
✘-1 

13:32 $ timeout 2 sleep 1
✔
```