New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@allmaps/cli

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@allmaps/cli

Allmaps CLI

  • 1.0.0-beta.4
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

@allmaps/cli

Installation

With pnpm:

pnpm add -g @allmaps/cli

Run Allmaps CLI:

allmaps

Examples

Turn masks of georeferenced maps into GeoJSON

Manifest URL:

Use Allmaps API to find Georef Annotation:

Fetch Georef Annotation with cURL, pipe to Allmaps CLI and transform pixel mask to GeoJSON:

curl -L "https://annotations.allmaps.org/?url=https://collections.leventhalmap.org/search/commonwealth:4t64k3596/manifest" \
| allmaps transform pixel-mask

You can pipe as multiple Georef Annotations to Allmaps CLI:

Manifest URLs:

Georef Annotations:

Concatenate these two Georef Annotations with Bash and transform pixel masks to GeoJSON:

cat \
<(curl -L "https://annotations.allmaps.org/?url=https://collections.leventhalmap.org/search/commonwealth:4t64k3596/manifest") \
<(curl -L "https://annotations.allmaps.org/?url=https://collections.leventhalmap.org/search/commonwealth:6108xt43s/manifest") \
| allmaps transform pixel-mask

Combine multiple Georef Annotations

Allmaps CLI can combine multiple Georef Annotations and output them as a single AnnotationPage:

cat \
<(curl https://annotations.allmaps.org/manifests/f2aa771c7d0ae1e8) \
<(curl https://annotations.allmaps.org/images/813b0579711371e2) \
| allmaps annotation generate

If you have a directory containing multiple Georef Annotations, you can run:

cat *.json | allmaps annotation generate

If you're running MacOS, you can use pbcopy to copy the generated Georef Annotation to your clipboard:

cat *.json | allmaps annotation generate | pbcopy

Keywords

FAQs

Package last updated on 03 Feb 2023

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