
Product
Socket for Jira Is Now Available
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.
json-to-txt
Advanced tools
Reads JSON data (Array of objects) and returns a string in a txt file format.
Reads JSON data (Array of objects) and returns a string in a txt file format.
npm i --save json-to-txt
json-to-txt support CommonJS.
Use filePath key to provide JSON data from file.
const jsonToTxt = require("json-to-txt");
const dataInString = jsonToTxt({ filePath: "./filePath.json" });
Use data key to provide JSON data from variable or directly.
const jsonToTxt = require("json-to-txt");
const dataInString = jsonToTxt({ data: someJSONData });
[
{
NAME: {FIRST_NAME: 'Debra', LAST_NAME: 'Burks'},
NUMBER: '880012XXXX',
EMAIL: 'debra.burks@yahoo.com',
ADDRESS: '9273 Thome Ave., Orchard Park, NY - 14127'
},
{
NAME: {FIRST_NAME: 'Kasha', LAST_NAME: 'Todd'},
NUMBER: null,
EMAIL: 'kasha.todd@yahoo.com',
ADDRESS: '910, Vine Street, Campbell, CA - 95008'
},
{
NAME: {FIRST_NAME: 'Tameka', LAST_NAME: 'Fisher'},
NUMBER: '880111XXXX',
EMAIL: 'tameka.fisher@yahoo.com',
ADDRESS: '7693 Honey Creek St., Redondo Beach, CA - 90278'
},
{
NAME: {FIRST_NAME: 'Daryl', LAST_NAME: 'Spence'},
NUMBER: '990015XXXX',
EMAIL: null,
ADDRESS: '988 Pearl Lane!!! (Uniondale), NY - 11553'
},
{
NAME: {FIRST_NAME: 'Charolette', LAST_NAME: 'Rice'},
NUMBER: '720012XXXX',
EMAIL: 'charolette.rice@msn.com',
ADDRESS: '107 ~ River Dr. `Sacramento`, "CA" 95820'
}
]
NAME NUMBER EMAIL ADDRESS
{ FIRST_NAME : Debra , LAST_NAME : Burks } 880012XXXX debra.burks@yahoo.com 9273 Thome Ave., Orchard Park, NY - 14127
{ FIRST_NAME : Kasha , LAST_NAME : Todd } null kasha.todd@yahoo.com 910, Vine Street, Campbell, CA - 95008
{ FIRST_NAME : Tameka , LAST_NAME : Fisher } 880111XXXX tameka.fisher@yahoo.com 7693 Honey Creek St., Redondo Beach, CA - 90278
{ FIRST_NAME : Daryl , LAST_NAME : Spence } 990015XXXX null 988 Pearl Lane!!! (Uniondale), NY - 11553
{ FIRST_NAME : Charolette , LAST_NAME : Rice } 720012XXXX charolette.rice@msn.com 107 ~ River Dr. `Sacramento`, "CA" 95820
FAQs
Reads JSON data (Array of objects) and returns a string in a txt file format.
The npm package json-to-txt receives a total of 52 weekly downloads. As such, json-to-txt popularity was classified as not popular.
We found that json-to-txt 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.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.