Socket
Socket
Sign inDemoInstall

turf-flip

Package Overview
Dependencies
1
Maintainers
9
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.10 to 3.0.12

6

package.json
{
"name": "turf-flip",
"version": "3.0.10",
"version": "3.0.12",
"description": "turf flip module",

@@ -28,7 +28,7 @@ "main": "index.js",

"tape": "^3.5.0",
"turf-helpers": "^3.0.10"
"turf-helpers": "^3.0.12"
},
"dependencies": {
"turf-meta": "^3.0.10"
"turf-meta": "^3.0.12"
}
}
# turf-flip
[![build status](https://secure.travis-ci.org/Turfjs/turf-flip.png)](http://travis-ci.org/Turfjs/turf-flip)
# flip
turf flip module
### `turf.flip(input)`
Takes input features and flips all of their coordinates
from `[x, y]` to `[y, x]`.
**Parameters**
### Parameters
- `input` **(Feature | FeatureCollection)** input features
| parameter | type | description |
| --------- | -------------------------- | -------------- |
| `input` | Feature\,FeatureCollection | input features |
**Examples**
### Example
```js
```javascript
var serbia = {

@@ -40,9 +31,15 @@ "type": "Feature",

Returns **(Feature | FeatureCollection)** a feature or set of features of the same type as `input` with flipped coordinates
**Returns** `Feature,FeatureCollection`, a feature or set of features of the same type as `input` with flipped coordinates
---
## Installation
This module is part of the [Turfjs project](http://turfjs.org/), an open source
module collection dedicated to geographic algorithms. It is maintained in the
[Turfjs/turf](https://github.com/Turfjs/turf) repository, where you can create
PRs and issues.
Requires [nodejs](http://nodejs.org/).
### Installation
Install this module individually:
```sh

@@ -52,8 +49,6 @@ $ npm install turf-flip

## Tests
Or install the Turf module that includes it as a function:
```sh
$ npm test
$ npm install turf
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc