{"id":19721887,"url":"https://github.com/turfjs/turf-is-clockwise","last_synced_at":"2026-06-12T00:31:34.401Z","repository":{"id":17314580,"uuid":"20085361","full_name":"Turfjs/turf-is-clockwise","owner":"Turfjs","description":null,"archived":false,"fork":false,"pushed_at":"2014-12-11T17:03:48.000Z","size":180,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-01-30T17:27:44.353Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Turfjs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-05-23T03:16:36.000Z","updated_at":"2014-12-11T17:03:48.000Z","dependencies_parsed_at":"2022-09-14T22:41:10.383Z","dependency_job_id":null,"html_url":"https://github.com/Turfjs/turf-is-clockwise","commit_stats":null,"previous_names":["morganherlocker/turf-isclockwise"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Turfjs%2Fturf-is-clockwise","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Turfjs%2Fturf-is-clockwise/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Turfjs%2Fturf-is-clockwise/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Turfjs%2Fturf-is-clockwise/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Turfjs","download_url":"https://codeload.github.com/Turfjs/turf-is-clockwise/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241044197,"owners_count":19899478,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T23:15:52.212Z","updated_at":"2026-06-12T00:31:34.350Z","avatar_url":"https://github.com/Turfjs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"turf-isClockwise\n================\n[![Build Status](https://travis-ci.org/Turfjs/turf-isClockwise.svg?branch=master)](https://travis-ci.org/Turfjs/turf-isClockwise)\n\nTakes a ring and return true or false whether or not the ring is clockwise or counter-clockwise.\n\n###Install\n\n```sh\nnpm install turf-is-clockwise\n```\n\n###Parameters\n\n|name|description|\n|---|---|\n|ring|an array of coordinates|\n\n###Usage\n\n```js\nisClockwise(ring)\n```\n\n###Example\n\n```js\nvar isClockwise = require('turf-is-clockwise')\n\nvar clockwiseRing = [[0,0],[1,1],[1,0],[0,0]]\nvar counterClockwiseRing = [[0,0],[1,0],[1,1],[0,0]]\n\nvar isCW = isClockwise(clockwiseRing)\nvar counterCW = isClockwise(counterClockwiseRing)\n\nconsole.log(isCW) // true\nconsole.log(counterCW) // false\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fturfjs%2Fturf-is-clockwise","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fturfjs%2Fturf-is-clockwise","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fturfjs%2Fturf-is-clockwise/lists"}