open-index/open-npm huggingface dataset:
npm package: @julionav/tinykeys
Description: A tiny (~400 B) & modern library for keybindings.
Author: Jamie Kyle
Latest version: 1.0.3

# `tinykeys`

> A tiny (~400 B) & modern library for keybindings.
> [See Demo](https://jamiebuilds.github.io/tinykeys/)

## Install

```sh
npm install --save tinykeys
```

## Usage

```js
import tinykeys from "tinykeys"

tinykeys(window, {
  "Shift+D": () => {
    alert("The 'Shift' and 'd' keys were pressed at the same time")
  },
  "y e e t": () => {
    alert("The keys 'y', 'e', 'e', and 't' were pressed in order")
  },
  "$mod+KeyD": () => {
    alert("Either 'Control+d' or 'Meta+d' were pressed")
  },
})
```

## Keybinding Syntax

Keybindings are made up of a **_sequence_** of **_presses_**.

A **_press_** can be as simple as a single **_key_** which matches against
[`KeyboardEvent.code`](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/code/code_values)
and
[`KeyboardEvent.key`](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key)
(case-insensitive).

```js
// Matches `event.key`:
"d"
// Matches: `event.code`:
"KeyD"
```

Presses can optionally be prefixed with **_modifiers_** which match against any
valid value to
[`KeyboardEvent.getModifierState()`](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/getModifierState).

```js
"Control+d"
"Meta+d"
"Shift+D"
"Alt+KeyD"
"Meta+Shift+D"
```

There is also a special `$mod` modifier that makes it easy to support cross
platform keybindings:

- Mac: `$mod` = `Meta` (⌘)
- Windows/Linux: `$mod` = `Control`

```js
"$mod+D" // Meta/Control+D
"$mod+Shift+D" // Meta/Control+Shift+D
```

### Keybinding Sequences

Keybindings can also consist of several key presses in a row:

```js
"g i" // i.e. "Go to Inbox"
"g a" // i.e. "Go to Archive"
"ArrowUp ArrowUp ArrowDown ArrowDown ArrowLeft ArrowRight ArrowLeft ArrowRight B A"
```

Each press can optionally be prefixed with modifier keys:

```js
"$mod+K $mod+1" // i.e. "Toggle Level 1"
"$mod+K $mod+2" // i.e. "Toggle Level 2"
"$mod+K $mod+3" // i.e. "Toggle Level 3"
```

Each press in the sequence must be pressed within 1000ms of the last.
npm package: @julioxus/react-native-geocoder-osm
Description: Geocoding Service for React, React-native and nodejs, This Project uses Open Street Map API
Author: Rangga Darmajati
Latest version: 0.0.2

# react-native-geocoder-osm

Geocoding Service for React-Native


This Project uses OpenStreetMap API

## Installation

```bash
npm install --save react-native-geocoder-osm
```
or

```bash
yarn add react-native-geocoder-osm
```
## Usage

```python
import GeocoderOsm from 'react-native-geocoder-osm';
// Position Geocoding
let coor = {
    lat:-7.014681299999999,,
    lng:107.6392892
}

// GeoCodePosition
GeocoderOsm.getGeoCodePosition(coor.lat, coor.lng).then((res) => {
  // res is an Array of geocoding object
  console.log("getGeoCodePosition", res)
}).catch((e) => {
  console.log('getGeoCodePosition error', e)
});

// GeoAddress
let place = 'baleendah';
GeocoderOsm.getGeoAddress(place).then((res) => {
  // res is an Array of geocoding object
  console.log("getGeoAddress", res)
}).catch((e) => {
  console.log('getGeoAddress error', e)
});
```

## Geocoding Object Format
Both iOS and Android will return the following object:
```bash
{
        "place_id": 14298080,
        "licence": "Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright",
        "osm_type": "node",
        "osm_id": 1308657314,
        "boundingbox": [
            "-7.0383774",
            "-6.9983774",
            "107.6105706",
            "107.6505706"
        ],
        "lat": "-7.0183774",
        "lon": "107.6305706",
        "display_name": "Baleendah, Jawa Barat, 40375, Indonesia",
        "class": "place",
        "type": "village",
        "importance": 0.375,
        "icon": "https://nominatim.openstreetmap.org/images/mapicons/poi_place_village.p.20.png",
        "address": {
            "village": "Baleendah",
            "state": "Jawa Barat",
            "postcode": "40375",
            "country": "Indonesia",
            "country_code": "id"
        }
    }
```

## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

## License
[MIT](https://choosealicense.com/licenses/mit/)