{"id":23045484,"url":"https://github.com/cdxoo/block-quote","last_synced_at":"2025-04-03T02:12:12.127Z","repository":{"id":50128263,"uuid":"253770464","full_name":"cdxOo/block-quote","owner":"cdxOo","description":"simple indent sanitization for multi line strings","archived":false,"fork":false,"pushed_at":"2024-06-16T15:52:11.000Z","size":83,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-16T05:09:36.058Z","etag":null,"topics":["indent","multi-line","string"],"latest_commit_sha":null,"homepage":"","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/cdxOo.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-07T11:15:36.000Z","updated_at":"2021-06-03T12:11:28.000Z","dependencies_parsed_at":"2024-12-15T21:22:35.808Z","dependency_job_id":"f40eee16-d02a-4152-a154-b9518c5ab1c3","html_url":"https://github.com/cdxOo/block-quote","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdxOo%2Fblock-quote","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdxOo%2Fblock-quote/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdxOo%2Fblock-quote/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdxOo%2Fblock-quote/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cdxOo","download_url":"https://codeload.github.com/cdxOo/block-quote/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246922248,"owners_count":20855345,"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","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":["indent","multi-line","string"],"created_at":"2024-12-15T21:20:56.635Z","updated_at":"2025-04-03T02:12:12.103Z","avatar_url":"https://github.com/cdxOo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @cdxoo/block-quote\nSimple indent sanitization for multi line strings via tag for template literals in es6.\n\n## Installation\n\n    npm install --save @cdxoo/block-quote\n\n## Usage\n\n```javascript\nconst bq = require('@cdxoo/block-quote');\n    \nlet str1 = bq`\n    alice\n        foo\n        bar\n    bob\n        baz\n`;\n//    | \u003c- beginning of the line\n// =\u003e |alice\n//    |    foo\n//    |    bar\n//    |bob\n//    |    baz\n\n// also works when code itself is indented deeper\n// and placeholders are used; e.g.:\nlet getInner = () =\u003e (\n    (\n        (\n            bq`\n                inner {\n                    foo\n                    bar\n                }\n            `\n        )\n    )\n);\nlet str1 = bq`\n    outer {\n        ${ getInner() }\n    }\n`;\n// =\u003e |outer {\n//    |    inner {\n//    |        foo\n//    |        bar\n//    |    }\n//    |}\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdxoo%2Fblock-quote","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcdxoo%2Fblock-quote","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdxoo%2Fblock-quote/lists"}