
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
@placemarkio/check-geojson
Advanced tools
A spiritual successor to [geojsonhint](https://github.com/mapbox/geojsonhint), which is no longer maintained.
A spiritual successor to geojsonhint, which is no longer maintained.
check-geojson is a parser and validator for GeoJSON strings. It is tailored to the use cases of validating user-generated GeoJSON content, or troubleshooting GeoJSON that you've received.
Note: the API is not yet stable.
Unlike geojsonhint, this checker only produces errors, not warnings. So things that geojsonhint would warn about, like:
This does not check for. Additionally, the crs
member is ignored by this tool: as of
the latest GeoJSON specification, this is not used.
We're using the same test fixtures as geojsonhint as a starter.
pnpm add @placemarkio/check-geojson
yarn add @placemarkio/check-geojson
import { check } from "@placemarkio/check-geojson"
let geojsonObject;
try {
geojsonObject = check('… geojson string …')
} catch (e) {
/// e.issues
}
If your GeoJSON is already an object, you will need to convert it to a string first. geojson-check will re-parse it. You should consider the performance penalty of this.
const issues = getIssues(JSON.stringify(geojsonObject));
if (issues.length > 0) {
// ...
}
FAQs
A spiritual successor to [geojsonhint](https://github.com/mapbox/geojsonhint), which is no longer maintained.
The npm package @placemarkio/check-geojson receives a total of 16,191 weekly downloads. As such, @placemarkio/check-geojson popularity was classified as popular.
We found that @placemarkio/check-geojson demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.