Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
box-view-cli
Advanced tools
A CLI for the Box View API
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!
npm install -g box-view-cli
Usage: box-view [options] [command]
Commands:
help [options] output usage information
options [options] output concise command information
upload [options] upload a document to the View API
session [options] create a viewing session on the View API
content [options] request document content from the View API
view [options] upload a document and create a session all in one fancy command
status [options] request document content from the View API
list [options] request a list of documents from the View API
Options:
-h, --help output usage information
-v, --version output the version number
-t, --token [token] Box View API Token (default: $BOX_VIEW_API_TOKEN)
--completion [type] Print shell completion script (types: bash)
Usage: list [options]
Options:
-h, --help output usage information
-n, --number [limit] the maximum number of documents to request
-b, --before [date] the latest document to request
-a, --after [date] the earliest document to request
Usage: status [options]
Options:
-h, --help output usage information
-i, --document-id [id] the document ID
--fields [fields] the fields to request (comma-separated)
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
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
-T, --disable-text disable text selection
-a, --annotations enable annotations
-N, --author-name [authorName] annotation author name
-A, --author-id [authorId] annotation author id
-o, --open open the viewing session URL on success
Usage: content [options]
Options:
-h, --help output usage information
-i, --document-id [id] the document ID
-e, --extension [extension] the type of content to request (zip, pdf); if empty, get the original document type
-o, --output [file] the name of the file to output data to
Usage: thumbnail [options]
Options:
-h, --help output usage information
-i, --document-id [id] the document ID
-o, --output [file] the name of the file to output data to
-w, --width [width] the desired width of the thumbnail
-h, --height [height] the desired height of the thumbnail
View is a combination of the upload and session commands, which takes (almost) all the arguments of each. It's magical. Be careful.
box-view view --open --file=/path/to/some/file.pdf --non-svg --downloadable --duration=999999999
In lieu of a formal styleguide, take care to maintain the existing coding style.
Copyright 2014 Cameron Lakenen
FAQs
A CLI for Box View API
The npm package box-view-cli receives a total of 22 weekly downloads. As such, box-view-cli popularity was classified as not popular.
We found that box-view-cli demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.