# geojson-fixtures

> geojson fixtures for testing and validation

Latest version **1.0.0** (published 2016-05-10) · ISC license · 0 weekly downloads

## Install

```sh
npm install geojson-fixtures
pnpm add geojson-fixtures
yarn add geojson-fixtures
bun add geojson-fixtures
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2016-05-10 |
| First published | 2014-07-15 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 8 |
| Author | Tom MacWright |
| Maintainers | aaronlidman, ajashton, ansis, bsudekum, camilleanne, dnomadb, dthompson, gretacb, ian29, ianshward, ingalls, jfirebaugh, kkaefer, lbud, lxbarth, mapbox-admin, miccolis, mikemorris, morganherlocker, mourner, nickidlugash, rclark, samanbb, sgillies, springmeyer, tmcw, tristen, willwhite, yhahn |
| Keywords | geojson, fixtures, files, json, test |

## Links

- npm: https://www.npmjs.com/package/geojson-fixtures
- Repository: https://github.com/mapbox/geojson-fixtures
- Issues: https://github.com/mapbox/geojson-fixtures/issues
- npm.io page: https://npm.io/package/geojson-fixtures

## Dependencies (1)

- [geojsonhint](https://npm.io/package/geojsonhint.md) ^1.0.0

## 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) — 2016-05-10
- 0.6.1 — 2015-02-11
- 0.6.0 — 2015-02-11
- 0.5.0 — 2015-02-11
- 0.4.0 — 2015-02-11
- 0.3.0 — 2015-02-11
- 0.2.0 — 2014-11-07
- 0.1.0 — 2014-07-28
- 0.0.0 — 2014-07-15

## README

# geojson-fixtures

Test fixtures of [GeoJSON](http://geojson.org/) objects.

## API

* `fixtures.geometry.*`
* `fixtures.feature.*`
* `fixtures.featurecollection.*`
* `fixtures.all[]`: all kinds of fixtures

## Helper

Includes a test helper for writing fixture-based tests with [substack/tape](https://github.com/substack/tape).

```js
// first argument is require('tape') or a 't' test runner
// second is the type of fixtures: 'all', 'geometry', 'feature', 'featurecollection'
// third is the function to run to turn input into output: the tested function.
// fourth is the directory where test output should be stored.
// fifth is whether to enable geojsonhint as a last step. set to false to disable.
// sixth is a postcondition that can be any arbitrary test
geojsonFixtures(test, 'all', centroid, __dirname + '/test', true, function(t, input, output) {
    t.ok(input);
});
```

## Install

    npm install --save-dev geojson-fixtures

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