{"id":19124448,"url":"https://github.com/panates/putil-flattentext","last_synced_at":"2026-06-22T11:31:54.782Z","repository":{"id":21711300,"uuid":"93836582","full_name":"panates/putil-flattentext","owner":"panates","description":"Simple utility that converts manipulate \\t \\b \\r characters and flattens text","archived":false,"fork":false,"pushed_at":"2023-01-09T06:40:15.000Z","size":173,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-09-07T04:38:34.035Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/panates.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-06-09T08:25:52.000Z","updated_at":"2023-01-09T06:39:30.000Z","dependencies_parsed_at":"2023-01-12T18:30:32.789Z","dependency_job_id":null,"html_url":"https://github.com/panates/putil-flattentext","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/panates/putil-flattentext","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panates%2Fputil-flattentext","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panates%2Fputil-flattentext/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panates%2Fputil-flattentext/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panates%2Fputil-flattentext/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/panates","download_url":"https://codeload.github.com/panates/putil-flattentext/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panates%2Fputil-flattentext/sbom","scorecard":{"id":718666,"data":{"date":"2025-08-11","repo":{"name":"github.com/panates/putil-flattentext","commit":"3a4102b9dfdf80b955d7b196e21d97de98c6ce11"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.9,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":0,"reason":"Found 0/20 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":1,"reason":"9 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-76p7-773f-r4q5","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-22T10:33:07.355Z","repository_id":21711300,"created_at":"2025-08-22T10:33:07.356Z","updated_at":"2025-08-22T10:33:07.356Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34647747,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-22T02:00:06.391Z","response_time":106,"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":"2024-11-09T05:29:12.010Z","updated_at":"2026-06-22T11:31:54.766Z","avatar_url":"https://github.com/panates.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# putil-flattentext\n\n[![NPM Version][npm-image]][npm-url]\n[![NPM Downloads][downloads-image]][downloads-url]\n[![Build Status][travis-image]][travis-url]\n[![Test Coverage][coveralls-image]][coveralls-url]\n[![Dependencies][dependencies-image]][dependencies-url]\n[![DevDependencies][devdependencies-image]][devdependencies-url]\n\nSimple utility that manipulates \\t \\b \\r characters and converts it to space characters, or ignores them and results single line text.\nVery useful for pretty printing support. \n\n\n## Installation\n\n  - `npm install putil-flattentext --save`\n\n## Usage\n\n`flattentext(str, options)`\n\n\n```javascript\nconst flattenText = require('./');\nlet text =\n    'aaa\\n'+\n    '\\tbbb\\n'+\n    '\\t\\tccc\\n'+\n    '\\bddd\\r'+\n    'eee';\nconsole.log(flattenText(text, {\n  indent: 2, // default\n  noWrap: false, // default\n}));\n```\nResult output\n```\naaa\n  bbb\n      ccc\n    ddd\neee\n```\n\n```javascript\nconst flattenText = require('./');\nlet text =\n    'select \\n\\t(\\n\\t'+\n    'name,\\n'+\n    'address\\n'+\n    '\\b) from x \\r'+\n    'where ...';\nconsole.log(flattenText(text, {\n  noWrap: true, // default\n}));\n```\nResult output\n```\nselect (name, address) from x where ...\n```\n\n## Node Compatibility\n\n  - node `\u003e= 6.x`;\n  \n### License\n[MIT](LICENSE)\n\n[npm-image]: https://img.shields.io/npm/v/putil-flattentext.svg\n[npm-url]: https://npmjs.org/package/putil-flattentext\n[travis-image]: https://img.shields.io/travis/panates/putil-flattentext/master.svg\n[travis-url]: https://travis-ci.org/panates/putil-flattentext\n[coveralls-image]: https://img.shields.io/coveralls/panates/putil-flattentext/master.svg\n[coveralls-url]: https://coveralls.io/r/panates/putil-flattentext\n[downloads-image]: https://img.shields.io/npm/dm/putil-flattentext.svg\n[downloads-url]: https://npmjs.org/package/putil-flattentext\n[gitter-image]: https://badges.gitter.im/panates/putil-flattentext.svg\n[gitter-url]: https://gitter.im/panates/putil-flattentext?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge\n[dependencies-image]: https://david-dm.org/panates/putil-flattentext/status.svg\n[dependencies-url]:https://david-dm.org/panates/putil-flattentext\n[devdependencies-image]: https://david-dm.org/panates/putil-flattentext/dev-status.svg\n[devdependencies-url]:https://david-dm.org/panates/putil-flattentext?type=dev\n[quality-image]: http://npm.packagequality.com/shield/putil-flattentext.png\n[quality-url]: http://packagequality.com/#?package=putil-flattentext\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpanates%2Fputil-flattentext","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpanates%2Fputil-flattentext","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpanates%2Fputil-flattentext/lists"}