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

@monkvision/sights

Package Overview
Dependencies
Maintainers
0
Versions
181
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@monkvision/sights

Monk sights library providing sight details and overlays

  • 4.5.5
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
204
increased by80.53%
Maintainers
0
Weekly downloads
 
Created
Source

@monkvision/sights

This documentation is for developers who are installing and using this package. If you are a developer contributing to this package, please refer to this page.

This package exposes the Monkvision sights info. The exported data contains sights label translations, vehicle type info, sight overlays (SVG) as well as miscellaneous sight details. This package is required if you are planning on using the standard Monkvision Capture workflow, of simply if you ar planning on using sights at all. The complete list of available sights in the SDK can be obtained in the official Monkvision documentation.

Installing

To install the package, you can run the following command :

yarn add @monkvision/sights

If you are using TypeScript, this package comes with its type definitions integrated, so you don't need to install anything else!

Usage

Sights

Once the package is installed, every sight available in this package can be obtained using its ID in the following way :

import { sights } from '@monkvision/sights';

console.log(sights['haccord-8YjMcu0D']);

Sight Labels

Each sight has a custom label, available in all languages supported by the Monk SDK. The labels can be obtained in the following way :

import { sights, labels } from '@monkvision/sights';

const sight = sights['haccord-8YjMcu0D'];
console.log(labels[sight.label].fr);

Vehicle Details

Each sight is associated with a specific vehicle. The details for each vehicle can be obtained in the following way :

import { sights, vehicles } from '@monkvision/sights';

const sight = sights['haccord-8YjMcu0D'];
console.log(vehicles[sight.vehicle]);

Contributing

Please refer to this page for more documentation if you are a developer contributing to this project.

FAQs

Package last updated on 18 Dec 2024

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