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

box-view-cli

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

box-view-cli

A CLI for Box View API

  • 0.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
22
increased by633.33%
Maintainers
1
Weekly downloads
 
Created
Source

Box View API CLI

A CLI for the Box View API

WARNING

This CLI is meant as a convenience tool for development. It is not intended for production use. You will probably be rate-limited if you try!

Installation

npm install -g box-view-cli

Usage

  Usage: box-view [options] [command]

  Commands:

    help [command]         output usage information
    upload [options]       upload a document to the View API
    session [options]      create a viewing session on the View API
    boom [options]         upload a document and create a session all in one fancy command

  Options:

    -h, --help           output usage information
    -v, --version        output the version number
    -t, --token [token]  Box View API Token (default: $BOX_VIEW_API_TOKEN)

Upload

  Usage: upload [options]

  Options:

    -h, --help            output usage information
    -u, --url [url]       specify document by URL
    -f, --file [file]     specify document by filename
    -n, --name [name]     the name of the document
    --thumbnails [sizes]  request thumbnails (format: comma-separated {width}x{height})
    --non-svg             request non-svg version

Session

  Usage: session [options]

  Options:

    -h, --help                 output usage information
    -i, --document-id [id]     the document ID
    -d, --duration [duration]  the duration (in minutes) of the session
    -e, --expires [expires]    the timestamp at which this session should expire
    -D, --downloadable         allow downloads
    -o, --open                 open the viewing session URL on success

Boom

Boom is a combination of the upload and session commands, which takes (almost) all the arguments of each. It's magical. Be careful.

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style.

License

(The MIT License)

Copyright 2014 Cameron Lakenen

Keywords

FAQs

Package last updated on 18 Jun 2014

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