{"id":24985666,"url":"https://github.com/codekirei/hanging-indent","last_synced_at":"2025-03-29T10:43:45.672Z","repository":{"id":57260684,"uuid":"45426142","full_name":"codekirei/hanging-indent","owner":"codekirei","description":"format a string into a hanging indent with Node.js","archived":false,"fork":false,"pushed_at":"2018-10-04T00:37:40.000Z","size":12,"stargazers_count":2,"open_issues_count":3,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-08T17:01:52.493Z","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/codekirei.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":"2015-11-02T22:26:06.000Z","updated_at":"2019-09-10T00:30:11.000Z","dependencies_parsed_at":"2022-08-25T02:11:18.813Z","dependency_job_id":null,"html_url":"https://github.com/codekirei/hanging-indent","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codekirei%2Fhanging-indent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codekirei%2Fhanging-indent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codekirei%2Fhanging-indent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codekirei%2Fhanging-indent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codekirei","download_url":"https://codeload.github.com/codekirei/hanging-indent/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246174471,"owners_count":20735409,"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":"2025-02-04T10:53:52.392Z","updated_at":"2025-03-29T10:43:45.651Z","avatar_url":"https://github.com/codekirei.png","language":"JavaScript","readme":"![hanging-indent](logo.png)\n---\n[![Build Status](https://travis-ci.org/codekirei/hanging-indent.svg?branch=master)](https://travis-ci.org/codekirei/hanging-indent)\n[![Coverage Status](https://coveralls.io/repos/codekirei/hanging-indent/badge.svg?branch=master\u0026service=github)](https://coveralls.io/github/codekirei/hanging-indent?branch=master)\n\n\u003cb\u003e[About](#about)\u003c/b\u003e | \n\u003cb\u003e[Installation](#installation)\u003c/b\u003e | \n\u003cb\u003e[API](#api)\u003c/b\u003e | \n\u003cb\u003e[License](#license)\u003c/b\u003e\n\n## About\n\n**Turn this**\n```\nViral polaroid cronut etsy photo booth, tousled next level literally. Put a bird on it narwhal irony four dollar toast ugh, typewriter poutine austin VHS fashion axe. Wolf butcher humblebrag, roof party chillwave chambray actually typewriter hella messenger bag poutine green juice bitters meggings. Chicharrones irony plaid marfa hammock crucifix. Semiotics seitan fanny pack, biodiesel fingerstache humblebrag twee. Actually gastropub tousled cornhole, readymade mixtape vice yuccie skateboard williamsburg cred chillwave squid art party 90's. Occupy ramps before they sold out, ennui trust fund tacos flannel.\n```\n\n**Into this**\n```\nViral polaroid cronut etsy photo booth, tousled next level literally. Put a\n    bird on it narwhal irony four dollar toast ugh, typewriter poutine austin\n    VHS fashion axe. Wolf butcher humblebrag, roof party chillwave chambray\n    actually typewriter hella messenger bag poutine green juice bitters\n    meggings. Chicharrones irony plaid marfa hammock crucifix. Semiotics seitan\n    fanny pack, biodiesel fingerstache humblebrag twee. Actually gastropub\n    tousled cornhole, readymade mixtape vice yuccie skateboard williamsburg\n    cred chillwave squid art party 90's. Occupy ramps before they sold out,\n    ennui trust fund tacos flannel.\n```\n\nSample text courtesy [hipster ipsum](http://hipsum.co/) :neckbeard:\n\n## Installation\n\n**Install from terminal**\n\n`$ npm install hanging-indent`\n\n**Require in file**\n\n```javascript\nvar hangingIndent = require('hanging-indent')\n```\n\n## API\n\n### hangingIndent(line, indent, limit)\n\n**Params**\n\n* **line**: line to break into a hanging-indented paragraph\n  * type: string\n  * required: yes\n* **indent**: amount of spaces to indent lines\n  * type: number\n  * required: no\n  * default: 4\n* **limit**: max number of characters that can be in a line\n  * type: number\n  * required: no\n  * default: 80\n\n**Returns**\n\nformatted string with spaces and newlines inserted\n\n## License\n\n[MIT](license)\n","funding_links":[],"categories":["Packages","包"],"sub_categories":["Text"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodekirei%2Fhanging-indent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodekirei%2Fhanging-indent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodekirei%2Fhanging-indent/lists"}