# @anandaroop/yat

> A silly geolocation component

Latest version **1.0.9** (published 2017-08-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install @anandaroop/yat
pnpm add @anandaroop/yat
yarn add @anandaroop/yat
bun add @anandaroop/yat
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.9 |
| Published | 2017-08-11 |
| First published | 2017-08-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Anandaroop Roy |
| Maintainers | anandaroop |

## Links

- npm: https://www.npmjs.com/package/@anandaroop/yat
- Repository: https://github.com/anandaroop/yat
- npm.io page: https://npm.io/package/@anandaroop/yat

## Dependencies (1)

- [react](https://npm.io/package/react.md) ^15.0.0

## Recent versions

- 1.0.9 (latest) — 2017-08-11
- 1.0.8 — 2017-08-11
- 1.0.7 — 2017-08-11
- 1.0.6 — 2017-08-11
- 1.0.5 — 2017-08-11
- 1.0.4 — 2017-08-11
- 1.0.3 — 2017-08-11
- 1.0.2 — 2017-08-11
- 1.0.1 — 2017-08-11
- 0.3.0 — 2017-08-11
- 0.2.8 — 2017-08-11
- 0.2.7 — 2017-08-11
- 0.2.6 — 2017-08-11
- 0.2.2 — 2017-08-11
- 0.2.1 — 2017-08-11

## README

# yat

Yat is a simple client-side geolocation React component, made mostly to tinker with publishing npm packages.

You don't have to be a [yat](https://en.wikipedia.org/wiki/New_Orleans_English) to use it.

## Installation

```sh
yarn add @anandaroop/yat
```

## Basic Usage

In your html:

```html
<div id="root">
  <!-- component will mount here  -->
</div>  
```

In your javascript:

```js
import React from 'react'
import ReactDOM from 'react-dom'
import Yat from '@anandaroop/yatyat'

ReactDOM.render(
  <Yat />,
  document.querySelector('#root')
)
```

Resulting in the html output:

```
-74.9938, 39.8526
```

## Options

Let's support both lon,lat and lat,lon ordering.

```jsx
import React from 'react'
import Yat from '@anandaroop/yatyat'

MyComponent = () =>
  <div>
    <p>Here's lon,lat ordering (the default)</p>
    <Yat order="lon,lat" />

    <p>Here's lat,lon ordering</p>
    <Yat order="lat,lon" />
  </div>
```

## Development

Component source code lives under `/src/components`.

Implementations, specs and stories are all co-located under each component directory.

```
src/components/
└── Yat
    ├── __snapshots__
    ├── index.js
    ├── spec.js
    └── stories.js
```

### Testing

Use Jest for behavior and snapshot testing

```
$ yarn test
```

### Stories

Use Storybook for a nice developer experience, and to document

```
$ yarn run storybook
$ open http://localhost:6006
```

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