{"id":31243622,"url":"https://github.com/punkbit/array-to-txt-file","last_synced_at":"2025-10-13T19:32:57.259Z","repository":{"id":145344655,"uuid":"90769275","full_name":"punkbit/array-to-txt-file","owner":"punkbit","description":"Takes in an array and will write each value to a text file. Each value is force-converted toString(), and concatenated with a newline.","archived":false,"fork":false,"pushed_at":"2017-05-10T12:24:46.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-23T01:48:04.912Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/punkbit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-09T16:44:25.000Z","updated_at":"2017-05-09T16:44:27.000Z","dependencies_parsed_at":"2023-07-03T09:17:41.445Z","dependency_job_id":null,"html_url":"https://github.com/punkbit/array-to-txt-file","commit_stats":null,"previous_names":["punkbit/array-to-txt-file"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/punkbit/array-to-txt-file","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/punkbit%2Farray-to-txt-file","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/punkbit%2Farray-to-txt-file/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/punkbit%2Farray-to-txt-file/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/punkbit%2Farray-to-txt-file/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/punkbit","download_url":"https://codeload.github.com/punkbit/array-to-txt-file/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/punkbit%2Farray-to-txt-file/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279016917,"owners_count":26085888,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-09-23T01:48:03.082Z","updated_at":"2025-10-13T19:32:57.217Z","avatar_url":"https://github.com/punkbit.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# array-to-txt-file\n\ntakes in an array and will write each value to a text file.\nEach value is force-converted toString(), and concatenated with a newline.\nObjects are written via JSON.stringify output.\n\n## Install\n    $ npm install array-to-txt-file\n\n\n## Example\n```\nconst arrayToTxtFile = require('array-to-txt-file')\n\narrayToTxtFile(['Hi there', function add(a,b) {return a+b}, {a: 1, b: 2, c: {d: 3}}], './test-output.txt', err =\u003e {\n    if(err) {\n      console.error(err)\n      return\n    }\n    console.log('Successfully wrote to txt file')\n})\n```\n```\ntest-output.txt:\n\nHi there\nfunction add(a,b) {return a+b}\n{\"a\":1,\"b\":2,\"c\":{\"d\":3}}\n```\n\n## Unit tests\n\n    $ npm test\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpunkbit%2Farray-to-txt-file","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpunkbit%2Farray-to-txt-file","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpunkbit%2Farray-to-txt-file/lists"}