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

@the-grid/caliper

Package Overview
Dependencies
Maintainers
17
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@the-grid/caliper

Measurement library

  • 0.7.18
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
Maintainers
17
Weekly downloads
 
Created
Source

Caliper Build Status

Measurement library for The Grid content, handling different media and non-media types.

Local testing

First make sure you have all dependencies installed (check .travis.yml file to a list of dependencies on Ubuntu):

npm install

Make sure you have the environment variables set:

  • AMAZON_API_BUCKET: AWS bucket we use for uploading processed images for tests
  • AMAZON_API_ID: Our ID on AWS
  • AMAZON_API_REGION: Our region on AWS
  • AMAZON_API_TOKEN: Access token on AWS

(Please ask some Caliper maintainer about env vars if you want to use it for local development).

Use the following command to run tests locally:

grunt

It is also helpful to run tests for only a pattern, e.g. for running image related tests:

grunt test --grep "measuring images"

Specifications

Caliper deals with many media and non-media (e.g. text only html blocks). You can find more information about schemas for those types and their calculated measurements in The Grid's API docs.

Tools

To run Caliper on some image URL and draw measurements:

./bin/caliperize <SOME IMAGE URL>

FAQs

Package last updated on 14 Jan 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