
Security News
Another Round of TEA Protocol Spam Floods npm, But It’s Not a Worm
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.
@accusoft/prizmdoc-rest-client
Advanced tools
**(BETA)** HTTP client designed to simplify interactions with PrizmDoc Server. Specifically:
(BETA) HTTP client designed to simplify interactions with PrizmDoc Server. Specifically:
npm install @accusoft/prizmdoc-rest-client
Here's an example demonstrating converting a JPEG to PDF:
const PrizmDocRestClient = require('@accusoft/prizmdoc-rest-client');
const fs = require('fs');
async function main() {
// Construct an instance of the PrizmDocRestClient.
const prizmdocServer = new PrizmDocRestClient({
baseUrl: 'https://api.accusoft.com',
headers: {
'Acs-Api-Key': 'YOUR_API_KEY'
}
});
// Create an affinity session for our processing work.
//
// You should use an affinity session anytime you have a group
// of HTTP requests that go together as part of a processing
// chain. The session ensures that all HTTP requests will
// automatically use the same affinity (be routed to the same
// PrizmDoc Server machine in the cluster).
const session = prizmdocServer.createAffinitySession();
let res;
// Create a new work file for the input document
res = await session.post('/PCCIS/V1/WorkFile', {
body: fs.readFileSync('input.jpg')
});
const inputWorkFile = await res.json();
// Start a conversion process using the input work file
res = await session.post('/v2/contentConverters', {
body: JSON.stringify({
input: {
sources: [
{
fileId: inputWorkFile.fileId
}
],
dest: {
format: 'pdf'
}
}
})
});
let process = await res.json();
// Wait for the process to finish
process = await session.getFinalProcessStatus(`/v2/contentConverters/${process.processId}`);
// Did the process error?
if (process.state !== 'complete') {
throw new Error(`The process failed to complete: ${JSON.stringify(process, null, 2)}`);
}
// Download the output work file and save it to disk.
res = await session.get(`/PCCIS/V1/WorkFile/${process.output.results[0].fileId}`);
res.body.pipe(fs.createWriteStream('output.pdf'));
}
main();
FAQs
**(BETA)** HTTP client designed to simplify interactions with PrizmDoc Server. Specifically:
The npm package @accusoft/prizmdoc-rest-client receives a total of 32 weekly downloads. As such, @accusoft/prizmdoc-rest-client popularity was classified as not popular.
We found that @accusoft/prizmdoc-rest-client 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.

Security News
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.

Security News
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads

Research
/Security News
A malicious Chrome extension posing as an Ethereum wallet steals seed phrases by encoding them into Sui transactions, enabling full wallet takeover.