Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
amazon-textract-response-tocsv
Advanced tools
Readme
Amazon Textract Response to CSV export tables and extract key-value
pairs in form documents from JSON
returned by Amazon Textract into a comma-separated values (CSV) file.
This module work both with ESM and CommonJs
import { writeTables } from "amazon-textract-response-tocsv";
const analyze_document_text = async () => {
try {
const analyzeDoc = new AnalyzeDocumentCommand(params);
const response = await textractClient.send(analyzeDoc);
//call writeTables with the response
await writeTables(response);
} catch (err) {
console.log("Error", err);
}
};
The writeTables function of Amazon Textract Response to CSV take one parameters the
JSON returned by Amazon Textract.
And then exports data in an file named : tables_output.csv
import { writeTables, writeKeyValuePair } from "amazon-textract-response-tocsv";
await writeTables(response);
const {
writeTables,
writeKeyValuePair,
} = require("amazon-textract-response-tocsv");
await writeTables(response);
import { writeKeyValuePair } from "amazon-textract-response-tocsv";
const analyze_document_text = async () => {
try {
const analyzeDoc = new AnalyzeDocumentCommand(params);
const response = await textractClient.send(analyzeDoc);
//call writeKeyValuePair with the response
await writeKeyValuePair(response);
} catch (err) {
console.log("Error", err);
}
};
The writeKeyValuePair function just like the writeTables function of Amazon Textract Response to CSV takes one parameters the JSON
returned by Amazon Textract.
The only difference is that the exported file will be named : key_value_output.csv
await writeKeyValuePair(response);
This project is released under the MIT License ✔
FAQs
This library loads Amazon Textract API response JSONs into csv with helper methods, for easier post-processing.
The npm package amazon-textract-response-tocsv receives a total of 21 weekly downloads. As such, amazon-textract-response-tocsv popularity was classified as not popular.
We found that amazon-textract-response-tocsv 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.