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.
txt-file-to-json
Advanced tools
Reads a txt file having a table and returns an array of obects. In which each object consists of all headers as keys and there data as values.
Reads a text file or data variable having a table and returns an array of obects. In which each object consists of all headers as keys and there data as values.
npm i --save txt-file-to-json
txt-file-to-json
support CommonJS.
Use filePath
key to provide TEXT data from file
.
const txtToJson = require("txt-file-to-json");
const dataInJSON = txtToJSON({ filePath: "./filePath.txt" });
Use data
key to provide TEXT data from variable or directly
.
const txtToJSON = require("txt-file-to-json");
const dataInJSON = txtToJSON({ data: someTEXTData });
FIRST_NAME LAST_NAME NUMBER EMAIL ADDRESS
Debra Burks 880012XXXX debra.burks@yahoo.com 9273 Thome Ave., Orchard Park, NY - 14127
Kasha Todd null kasha.todd@yahoo.com 910, Vine Street, Campbell, CA - 95008
Tameka Fisher 880111XXXX tameka.fisher@yahoo.com 7693 Honey Creek St., Redondo Beach, CA - 90278
Daryl Spence 990015XXXX null 988 Pearl Lane!!! (Uniondale), NY - 11553
Charolette Rice 720012XXXX charolette.rice@msn.com 107 ~ River Dr. `Sacramento`, "CA" 95820
[
{
FIRST_NAME: 'Debra',
LAST_NAME: 'Burks',
NUMBER: '880012XXXX',
EMAIL: 'debra.burks@yahoo.com',
ADDRESS: '9273 Thome Ave., Orchard Park, NY - 14127'
},
{
FIRST_NAME: 'Kasha',
LAST_NAME: 'Todd',
NUMBER: null,
EMAIL: 'kasha.todd@yahoo.com',
ADDRESS: '910, Vine Street, Campbell, CA - 95008'
},
{
FIRST_NAME: 'Tameka',
LAST_NAME: 'Fisher',
NUMBER: '880111XXXX',
EMAIL: 'tameka.fisher@yahoo.com',
ADDRESS: '7693 Honey Creek St., Redondo Beach, CA - 90278'
},
{
FIRST_NAME: 'Daryl',
LAST_NAME: 'Spence',
NUMBER: '990015XXXX',
EMAIL: null,
ADDRESS: '988 Pearl Lane!!! (Uniondale), NY - 11553'
},
{
FIRST_NAME: 'Charolette',
LAST_NAME: 'Rice',
NUMBER: '720012XXXX',
EMAIL: 'charolette.rice@msn.com',
ADDRESS: '107 ~ River Dr. `Sacramento`, "CA" 95820'
}
]
FAQs
Reads a txt file having a table and returns an array of obects. In which each object consists of all headers as keys and there data as values.
The npm package txt-file-to-json receives a total of 200 weekly downloads. As such, txt-file-to-json popularity was classified as not popular.
We found that txt-file-to-json 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.