{"id":13525638,"url":"https://github.com/jamiebuilds/min-indent","last_synced_at":"2025-03-15T13:31:13.093Z","repository":{"id":57297291,"uuid":"108493311","full_name":"jamiebuilds/min-indent","owner":"jamiebuilds","description":"Get the shortest leading whitespace from lines in a string","archived":false,"fork":false,"pushed_at":"2020-08-02T02:07:38.000Z","size":245,"stargazers_count":19,"open_issues_count":2,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-10T03:09:20.779Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jamiebuilds.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-10-27T03:09:42.000Z","updated_at":"2024-05-20T11:10:04.000Z","dependencies_parsed_at":"2022-09-01T08:41:28.203Z","dependency_job_id":null,"html_url":"https://github.com/jamiebuilds/min-indent","commit_stats":null,"previous_names":["thejameskyle/min-indent"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamiebuilds%2Fmin-indent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamiebuilds%2Fmin-indent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamiebuilds%2Fmin-indent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamiebuilds%2Fmin-indent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jamiebuilds","download_url":"https://codeload.github.com/jamiebuilds/min-indent/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243735835,"owners_count":20339536,"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":[],"created_at":"2024-08-01T06:01:20.610Z","updated_at":"2025-03-15T13:31:12.625Z","avatar_url":"https://github.com/jamiebuilds.png","language":"JavaScript","funding_links":[],"categories":["Repository"],"sub_categories":["Text/String"],"readme":"# min-indent [![Build Status](https://travis-ci.org/thejameskyle/min-indent.svg?branch=master)](https://travis-ci.org/thejameskyle/min-indent)\n\n\u003e Get the shortest leading whitespace from lines in a string\n\nThe line with the least number of leading whitespace, ignoring empty lines, determines the number.\n\nUseful for removing redundant indentation.\n\n\n## Install\n\n```\n$ npm install --save min-indent\n```\n\n\n## Usage\n\n```js\nconst minIndent = require('min-indent');\n\nconst str = '\\tunicorn\\n\\t\\tcake';\n/*\n\tunicorn\n\t\tcake\n*/\n\nminIndent(str); // 1\n```\n\n\n## Related\n\n- [strip-indent](https://github.com/sindresorhus/strip-indent) - Strip leading whitespace from each line in a string\n- [strip-indent-cli](https://github.com/sindresorhus/strip-indent-cli) - CLI for this module\n- [indent-string](https://github.com/sindresorhus/indent-string) - Indent each line in a string\n\n\n## License\n\nMIT © [James Kyle](https://thejameskyle.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamiebuilds%2Fmin-indent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjamiebuilds%2Fmin-indent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamiebuilds%2Fmin-indent/lists"}