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.
node-box-view
Advanced tools
Node.js client library for Box View API.
npm install node-box-view
var boxViewLib = require('node-box-view'),
boxView = new boxViewLib(YOUR_API_KEY);
For general API documentaion, please review the Box View API Documentation.
Fetches a list of all documents uploaded using this API Key.
options (object)
:
limit (int)
- The number of documents to return (default=10, max=50)created_before (Date)
- An upper limit on the creation timestamps of documents returned (default=now)created_after (Date)
- A lower limit on the creation timestamps of documents returnedcallback (function)
- A callback with the following arguments:
null
Response example:
{
"document_collection": {
"total_count": 1,
"entries": [
{
"type": "document",
"id": "e460608a44c84c02b70a020e7f516de3",
"status": "done",
"name": "",
"created_at": "2013-09-12T19:01:34Z"
}
]
}
}
Retrieves the metadata for a single document.
documentId
- Document IDfields
()- Array of fields to return (id and type are always)callback (function)
- A callback with the following arguments:
null
Response example:
{
"type": "document",
"id": "documentId",
"status": "done",
"name": "Leaves of Grass",
"created_at": "2013-08-30T00:17:37Z"
}
Uploading a document from url.
file_path (string)
- A path to a file to readoptions (object)
:
fileName (string)
- The name of the file. If options.params.name is not set, it will be inferred from the file path.thumnails(string)
- Comma-separated list of thumbnail dimensions of the format {width}x{height} (e.g. '128×128,256×256') – width can be between 16 and 1024, height between 16 and 768non_svg (boolean)
- Whether to also create the non-svg version of the document, default=false. read more herecallback (function)
- A callback with the following arguments:
null
Response example:
{
"type": "document",
"id": "2da6cf9261824fb0a4fe532f94d14625",
"status": "processing",
"name": "",
"created_at": "2013-08-30T00:17:37Z"
}
Uploading a document from file.
url (string)
- The URL of the ocument to be converted.options (object)
:
fileName (string)
- The name of the file. If options.params.name is not set, it will be inferred from the file path.thumnails(string)
- Comma-separated list of thumbnail dimensions of the format {width}x{height} (e.g. '128×128,256×256') – width can be between 16 and 1024, height between 16 and 768non_svg (boolean)
- Whether to also create the non-svg version of the document, default=false. read more herecallback (function)
- A callback with the following arguments:
null
Response example:
{
"type": "document",
"id": "2da6cf9261824fb0a4fe532f94d14625",
"status": "done",
"name": "",
"created_at": "2013-08-30T00:17:37Z"
}
Retrieve a thumbnail image of the first page of a document. Thumbnails can have a width between 16 and 1024 pixels and a height between 16 and 768 pixels.
documentId (string)
- Document ID.width (int)
- The width of the thumbnail in pixels, between 16 and 1024heigth (int)
- The height of the thumbnail in pixels, between 16 and 768file (string)
- PNG thumbnail destination file path (include file name and extention)callback (function)
- A callback with the following arguments:
null
Updates the metadata of a specific document.
documentId (string)
- Document IDoptions (object)
:
name (string)
- The name of the documentcallback (function)
- A callback with the following arguments:
null
Removes a document completely from the View API servers.
documentId (string)
- Document ID.callback (function)
- A callback with the following arguments:
null
Create a session to view the document.
documentId (string)
- Document ID.callback (function)
- A callback with the following arguments:
null
FAQs
Node.js client library for Box View API.
The npm package node-box-view receives a total of 8 weekly downloads. As such, node-box-view popularity was classified as not popular.
We found that node-box-view 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.