# turf-is-clockwise

> turf isClockwise module

Latest version **1.0.0** (published 2014-12-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install turf-is-clockwise
pnpm add turf-is-clockwise
yarn add turf-is-clockwise
bun add turf-is-clockwise
```

## 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.0 |
| Published | 2014-12-11 |
| First published | 2014-05-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | morganherlocker |
| Maintainers | morganherlocker |
| Keywords | clockwise, turf, geojson, coordinates, gis, geo |

## Links

- npm: https://www.npmjs.com/package/turf-is-clockwise
- Repository: https://github.com/morganherlocker/turf-isClockwise
- Issues: https://github.com/morganherlocker/turf-isClockwise/issues
- npm.io page: https://npm.io/package/turf-is-clockwise

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.0.0 (latest) — 2014-12-11
- 0.1.2 — 2014-07-22
- 0.0.2 — 2014-06-02
- 0.0.1 — 2014-05-23

## README

turf-isClockwise
================
[![Build Status](https://travis-ci.org/Turfjs/turf-isClockwise.svg?branch=master)](https://travis-ci.org/Turfjs/turf-isClockwise)

Takes a ring and return true or false whether or not the ring is clockwise or counter-clockwise.

###Install

```sh
npm install turf-is-clockwise
```

###Parameters

|name|description|
|---|---|
|ring|an array of coordinates|

###Usage

```js
isClockwise(ring)
```

###Example

```js
var isClockwise = require('turf-is-clockwise')

var clockwiseRing = [[0,0],[1,1],[1,0],[0,0]]
var counterClockwiseRing = [[0,0],[1,0],[1,1],[0,0]]

var isCW = isClockwise(clockwiseRing)
var counterCW = isClockwise(counterClockwiseRing)

console.log(isCW) // true
console.log(counterCW) // false
```

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