open-index/open-npm huggingface dataset:
npm package: @jatindersngh116/address-converter
Description: Address converter, convert ETH address to Ethermint/streakk address.
Latest version: 0.1.0

# Address converter

A simple converter between `ETH` address and `Ethermint`/`streakk` addresses.

## Installation

``` sh
npm install @jatindersngh116/address-converter
```

## Usage

### Converter

``` ts
import {ethToEthermint, ethermintToEth} from "@tharsis/address-converter"

let address = ethToEthermint("0xe2D61e49ff8a9d724CC54d338D8076F878aC6b71")
// "ethm1uttpuj0l32whynx9f5ecmqrklpu2c6m3973048"

let address = ethermintToEth("ethm1uttpuj0l32whynx9f5ecmqrklpu2c6m3973048")
// "0xe2D61e49ff8a9d724CC54d338D8076F878aC6b71"
```

### Decoders

``` ts
import {ETH, ETHERMINT} from "@tharsis/address-converter"
let hex = ETH.decoder("0xe2D61e49ff8a9d724CC54d338D8076F878aC6b71")
// hex.toString('hex') === "e2d61e49ff8a9d724cc54d338d8076f878ac6b71"

hex = ETHERMINT.decoder("ethm1uttpuj0l32whynx9f5ecmqrklpu2c6m3973048")
// hex.toString('hex') === "e2d61e49ff8a9d724cc54d338d8076f878ac6b71"
```

### Encoders

``` ts
import {ETH, ETHERMINT} from "@tharsis/address-converter"
let address = ETH.encoder(Buffer.from("e2d61e49ff8a9d724cc54d338d8076f878ac6b71","hex"))
// address === "0xe2D61e49ff8a9d724CC54d338D8076F878aC6b71"

address = ETHERMINT.encoder(Buffer.from("e2d61e49ff8a9d724cc54d338d8076f878ac6b71","hex"))
// address === "ethm1uttpuj0l32whynx9f5ecmqrklpu2c6m3973048"
```

### STREAKK support

```ts
import {ethToStreakk, streakkToEth} from "@tharsis/address-converter"

let address = ethToStreakk("0x14574a6DFF2Ddf9e07828b4345d3040919AF5652")
// "streakk1z3t55m0l9h0eupuz3dp5t5cypyv674jj7mz2jw"

let address = streakkToEth("streakk1z3t55m0l9h0eupuz3dp5t5cypyv674jj7mz2jw")
// "0x14574a6DFF2Ddf9e07828b4345d3040919AF5652"
```
npm package: @jatna/react-scripts
Description: Configuration and scripts for Create React App.
Author: woodpav
Latest version: 3.0.1

# react-scripts

This package includes scripts and configuration used by [Create React App](https://github.com/facebook/create-react-app).<br>
Please refer to its documentation:

- [Getting Started](https://facebook.github.io/create-react-app/docs/getting-started) – How to create a new app.
- [User Guide](https://facebook.github.io/create-react-app/) – How to develop apps bootstrapped with Create React App.
npm package: @jaumebalust/test-assistant
Description: Because, let's face it. You never write enough tests...
Author: Jimmy
Latest version: 1.0.9

# Test Assistant 

Because, let's face it. You never write enough tests...

Test assistant to the rescue.

## Installation
Run in your terminal:
```
npm i -g test-assistant
```
Add the ENV variable to your .bashrc or .zshrc file:
``` 
OPENAI_API_KEY
```
## Usage
Run in your terminal:
```
test-assistant
```
npm package: @jauntywunderkind/icmp
Description: Internet Control Message Protocol in Node
Author: Nathanael Demacon
Latest version: 1.4.0

<h1 align="center">Internet Control Message Protocol in Node</h1>
<p>
  <img alt="Version" src="https://img.shields.io/npm/v/icmp.svg">
  <a href="https://twitter.com/qtmsheep">
    <img alt="Twitter: qtmsheep" src="https://img.shields.io/twitter/follow/qtmsheep.svg?style=social" target="_blank" />
  </a>
</p>

> Internet Control Message Protocol in Node

# Install

```sh
npm install icmp
```

On Windows, the Windows Build Tools are required: `npm install -g windows-build-tools`

# Usage
## Properties
### ICMP.host: string
The requested HOST (can be an IP)

### ICMP.ip: string
The requested IP, when host parameter is given to the constructor, the DNS will be resolved to get this IP adress

### ICMP.open: boolean
This property will be `true` or `false`, depending on the ping response

### ICMP.type: string
ICMP response type, will be one from this array:
```js
['REPLY', 'NA', 'NA', 'DESTINATION_UNREACHABLE', 'SOURCE_QUENCH', 'REDIRECT']
```
### ICMP.code: string
ICMP response code, will be one from this array:
```js
['NET', 'HOST', 'PROTOCOL', 'PORT', 'FRAGMENTATION', 'ROUTE_FAILED', 'NET_UNKNOWN', 'HOST_UNKNOWN', 'HOST_ISOLATED', 'NET_PROHIBITED', 'HOST_PROHIBITED', 'NET_UNREACHABLE', 'HOST_UNREACHABLE', 'COMM_PROHIBITED', 'HOST_PRECEDENCE', 'PRECEDENCE_CUTOFF', 'NETWORK', 'HOST', 'SERVICE_NETWORK', 'HOST_NETWORK']
```


## Methods
Note: default `timeout` of each methods is `5000ms`.

### (static) ICMP.ping(host: string, timeout?: number): Promise<ICMP>
Send a ping to a specific host. Returns a Promise resolving an ICMP instance and rejecting an Error.

### ICMP.ping(timeout?: number): Promise<ICMP>
Send a ping to the defined ICMP instance's host. Returns a Promise, resolving nothing and rejecting an Error.

### (static) ICMP.send(host: string, data?: string)
Send data to a specific host through ICMP. Returns a Promise resolving an ICMP instance and rejecting an Error.

```js
icmp.send('10.43.65.9', "Hey, I'm sending a message!")
    .then(obj => {
        console.log(obj.open ? 'Done' : 'Failed')
    })
    .catch(err => console.log(err));
```

### ICMP.send(data?: string, timeout?: number)
Send data to the defined ICMP instance's host. Returns a Promise resolving nothing and rejecting an Error.

### (static) ICMP.listen(cb: (buffer, source) => void)
Listen to incomming ICMP requests.

### ICMP.listen(cb: (buffer, source) => void)
Listen to incomming ICMP requests.

### ICMP.close()
Close the raw socket stream. Can be used to stop a request.

# Author

👤 **Nathanael Demacon**

* Twitter: [@qtmsheep](https://twitter.com/qtmsheep)
* Github: [@quantumsheep](https://github.com/quantumsheep)

# Show your support

Give a ⭐️ if this project helped you!
npm package: @java4life/gridgame
Description: A TypeScript class that makes it easy to create grid based games
Author: Ray Hulha
Latest version: 1.1.2

# GridGame
A TypeScript class that makes it easy to create grid based games.

GridGame is a TypeScript helper class that creates a playing field.  
It needs to know the amount of tiles you want horizontally and vertically.  
It also supports a function that it can call that will set custom information that the game needs per tile.  
For example a click counter or a secret that lies beneath the tile.  
For Minesweeper the secret would be the kind of the tile: Is it a bomb or not.  
 
GridGame contains the following helper methods:
(see [API document](API.md))

# It lets you create a lot with just a few lines of code:

 * Minesweeper: 45 lines of code
 * Sokoban: 67 lines of code
 * Tic-tac-toe with decision tree AI: 137 lines of code
 * Chess with Toledo Nanochess AI: 70 lines of code
 * Peg-Solitair: 36 lines of code
 * Lightsout: 25 lines of code
 * Tetris: unfinished

# Usage:
`npm install @java4life/gridgame --save`  
and then in (TypeScript) code do  
`import {GridGame} from '@java4life/gridgame';`  

# Here are some demos:

## Minesweeper

<img src="https://i.imgur.com/maVqzUN.png" height="220">

https://stackblitz.com/edit/typescript-minesweeper

## Sokoban

![Sokoban](https://i.imgur.com/0TZf71f.png)

https://stackblitz.com/edit/sokoban  
https://stackblitz.com/edit/sokoban-level-editor

## Tetris

<img src="https://i.imgur.com/eyodOLx.png" width="220">

https://stackblitz.com/edit/typescript-tetris

## Tic-tac-toe

<img src="https://i.imgur.com/pacK1im.png" height="220">

https://stackblitz.com/edit/typescript-tictactoe

## Chess

<img src="https://i.imgur.com/1eqYzFC.png" width="220" height="220">

https://stackblitz.com/edit/typescript-nanochess

## Peg-Solitair

![Peg-Solitair](https://i.imgur.com/5lqUrNx.png)

https://stackblitz.com/edit/typescript-peg-solitair

## Lightsout

<img src="https://i.imgur.com/lqcTxaY.png" width="220" height="220">

https://stackblitz.com/edit/typescript-lightsout  
Play: https://typescript-lightsout.stackblitz.io/

## Conway's Game of Life

https://stackblitz.com/edit/conways-game-of-life-using-gridgame
npm package: @javaabu/js-map-selector
Description: JavaScript Google Map input selector
Author: Arushad Ahmed
Latest version: 2.0.3

# JS Map Selector

[JS Map Selector](https://github.com/Javaabu/js-map-selector) provides helpful JavaScript functionalities that you can use to display Google Maps inputs using a simple data attribute API.

```html
<div data-map-selector="true"
     data-lat="7.084013"
     data-lng="72.926863"
     data-disabled="true"
>
    <div class="map-selector-map bg-light rounded"></div>
</div>
```

See a demo of this package in action [here](https://js-map-selector.demo.mv/).

## Documentation

You'll find the documentation on [https://docs.javaabu.com/docs/js-map-selector](https://docs.javaabu.com/docs/js-map-selector).

Find yourself stuck using the package? Found a bug? Do you have general questions or suggestions for improving this package? Feel free to create an [issue](../../issues) on GitHub, we'll try to address it as soon as possible.

If you've found a bug regarding security please mail [info@javaabu.com](mailto:info@javaabu.com) instead of using the issue tracker.


## Changelog

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

## Contributing

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

## Security

If you discover any security related issues, please email [info@javaabu.com](mailto:info@javaabu.com) instead of using the issue tracker.

## Credits

- [Javaabu Pvt. Ltd.](https://github.com/javaabu)
- [Arushad Ahmed (@dash8x)](http://arushad.com)
- [All Contributors](../../contributors)

## License

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.
npm package: @javaabu/js-utilities
Description: JavaScript utilities used for Javaabu Laravel projects
Author: Arushad Ahmed
Latest version: 2.32.0

# Javaabu Javascript Utilities

JS utilities used for Laravel backends

## Documentation

You'll find the documentation on [https://docs.javaabu.com/docs/js-utilities](https://docs.javaabu.com/docs/js-utilities).

Find yourself stuck using the package? Found a bug? Do you have general questions or suggestions for improving this package? Feel free to create an [issue](../../issues) on GitHub, we'll try to address it as soon as possible.

If you've found a bug regarding security please mail [info@javaabu.com](mailto:info@javaabu.com) instead of using the issue tracker.


## Changelog

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

## Contributing

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

## Security

If you discover any security related issues, please email [info@javaabu.com](mailto:info@javaabu.com) instead of using the issue tracker.

## Credits

- [Javaabu Pvt. Ltd.](https://github.com/javaabu)
- [Arushad Ahmed (@dash8x)](http://arushad.com)
- [All Contributors](../../contributors)

## License

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.
npm package: @javadev/xmltojson
Description: XML to JSON and JSON to XML conversion utility.
Author: Valentyn Kolesnikov
Latest version: 1.0.10

xml-to-json
===========

XML to JSON and JSON to XML conversion utility..
It also can prettify xml and json strings.

### Usage

```javascript
var json = xmlToJson("<a/>");

// {
//   "a": {
//     "-self-closing": "true"
//   },
//   "#omit-xml-declaration": "yes"
// }

var prettyXml = formatXml("<a><b/></a>");

// <a>
//   <b/>
// </a>

var xml = jsonToXml("{}");

// <?xml version="1.0" encoding="UTF-8"?>
// <root></root>

var xml = jsonToXml("{}", "myroot");

// <?xml version="1.0" encoding="UTF-8"?>
// <myroot></myroot>

var prettyJson = formatJson('{"a":{"b":true}}');

// {
//    "a": {
//       "b": true
//    }
// }
```
npm package: @javagt/array-to-tree
Description: Small packages that converts a collection of array-based routes to a file-tree format.
Latest version: 1.0.1

Small packages that converts a collection of array-based routes to a file-tree format.

```javascript
import toTree from "@javagt/array-to-tree";
console.log(
  toTree([
    ["foo", "bar.txt"],
    ["foo", "rab.txt"],
    ["foo", "baz", "other.txt"],
  ])
);

/*
<ref *1> {
  type: 'directory',
  children: {
    foo: {
      name: 'foo',
      route: [Array],
      type: 'directory',
      children: [Object],
      parent: [Circular *1]
    }
  }
*/
```
npm package: @javahollow/time-slider
Description: a time slider for react
Author: javahollow
Latest version: 2.0.1

### react-timeline-range-slider
![demo gif](./demo.gif)
### Installation

     npm i react-timeline-range-slider
### Props

| Prop | Type | Default | Description|
|--|--|--|--|
| timelineInterval | array |[startOfToday(), endOfToday()]|Interval to display|
|selectedInterval|array|[new Date(), addHours(new Date(), 1)]|Selected interval inside the timeline|
|disabledIntervals|array|[]|Array of disabled intervals inside the timeline|
|containerClassName|string||ClassName of the wrapping container|
|step|number|1800000|Number of milliseconds between steps (the default value is 30 minutes)|
|ticksNumber|number|48|Number of steps on the timeline (the default value is 30 minutes)|
|error|bool|false|Is the selected interval is not valid|
|mode|int/function|3|The interaction mode. Value of 1 will allow handles to cross each other. Value of 2 will keep the sliders from crossing and separated by a step. Value of 3 will make the handles pushable and keep them a step apart. ADVANCED: You can also supply a function that will be passed the current values and the incoming update. Your function should return what the state should be set as.|
|formatTick|function|ms => format(new Date(ms), 'HH:mm')|Function that determines the format in which the date will be displayed|
|onUpdateCallback|function|||
|onChangeCallback|function|||
### Example
[Live demo](https://codesandbox.io/s/react-timeline-range-slider-ve7w2?file=/src/App.js)
```javascript
import React from 'react'  
import { endOfToday, set } from 'date-fns' 
import TimeRange from 'react-timeline-range-slider'  

const now = new Date()
const getTodayAtSpecificHour = (hour = 12) =>
	set(now, { hours: hour, minutes: 0, seconds: 0, milliseconds: 0 })

const selectedStart = getTodayAtSpecificHour()
const selectedEnd = getTodayAtSpecificHour(14)

const startTime = getTodayAtSpecificHour(7)
const endTime = endOfToday()

const disabledIntervals = [
  { start: getTodayAtSpecificHour(16), end: getTodayAtSpecificHour(17) },
  { start: getTodayAtSpecificHour(7), end: getTodayAtSpecificHour(12) },
  { start: getTodayAtSpecificHour(20), end: getTodayAtSpecificHour(24) }
]

class App extends React.Component {  
  state = {  
    error: false,  
    selectedInterval: [selectedStart, selectedEnd],  
  }
	
  errorHandler = ({ error }) => this.setState({ error })  

  onChangeCallback = selectedInterval => this.setState({ selectedInterval })  

  render() {  
    const { selectedInterval, error } = this.state  
      return (  
        <TimeRange
          error={error}  
          ticksNumber={36}  
          selectedInterval={selectedInterval}  
          timelineInterval={[startTime, endTime]}  
          onUpdateCallback={this.errorHandler}  
          onChangeCallback={this.onChangeCallback}
          disabledIntervals={disabledIntervals}  
        />
      )  
  }  
}  

export default App
```