Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

harmful-osm-edits

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

harmful-osm-edits

Repository of problematic feature edits on OpenStreetMap

  • 0.3.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Problematic feature and changeset edits on OpenStreetMap

Setup

# Clone repository and install required packages
git clone git@github.com:mapbox/harmful-osm-edits.git
cd harmful-osm-edits
npm install

# Generate an example fixture for Mapbox, Bangalore (feature)
./generate-feature-fixture.js --type node --id 3352016856 --version 21

# Generate a new fixture for a feature passing required arguments
./generate-feature-fixture.js --type featureType --id featureId --version featureVersion

# Generate a new fixture for a changeset passing the required arguments
./generate-changeset-fixture.js --changeset changesetId

# Generate fixtures for multiple changeset ids
./generate-changeset-fixture.js --input sampleInput/generate-changeset-fixture-input.txt

Format

Feature

{
  "description": "Description of what makes this feature edit problematic",
  "newVersion": "Feature that was problematic",
  "oldVersion": "Version of feature before the problematic change"
}

Changeset

[
  {
    "oldVersion": "old Version for feature 1 of the changeset",
    "newVersion: "new Version for feature 1 of the changeset"
  },
  {
    "oldVersion": "old Version for feature 2 of the changeset",
    "newVersion: "new Version for feature 2 of the changeset"
  }
  .
  .
  .
]

Example

An ideal feature fixture with a great description, newVersion and oldVersion: node-3352016856-21.json

Example fixture for changeset : 46645754.json

Keywords

FAQs

Package last updated on 18 Aug 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc