{"id":19475482,"url":"https://github.com/artdecocode/frame-of-mind","last_synced_at":"2026-05-15T00:39:05.837Z","repository":{"id":57241348,"uuid":"153181263","full_name":"artdecocode/frame-of-mind","owner":"artdecocode","description":"Add a frame around strings.","archived":false,"fork":false,"pushed_at":"2019-04-25T09:07:58.000Z","size":50,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-08T13:23:58.852Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://artdeco.bz","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/artdecocode.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2018-10-15T21:02:45.000Z","updated_at":"2019-04-25T09:08:00.000Z","dependencies_parsed_at":"2022-09-07T23:13:18.576Z","dependency_job_id":null,"html_url":"https://github.com/artdecocode/frame-of-mind","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artdecocode%2Fframe-of-mind","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artdecocode%2Fframe-of-mind/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artdecocode%2Fframe-of-mind/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artdecocode%2Fframe-of-mind/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/artdecocode","download_url":"https://codeload.github.com/artdecocode/frame-of-mind/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240699252,"owners_count":19843510,"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-11-10T19:33:08.509Z","updated_at":"2026-05-15T00:39:05.805Z","avatar_url":"https://github.com/artdecocode.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# frame-of-mind\n\n[![npm version](https://badge.fury.io/js/frame-of-mind.svg)](https://npmjs.org/package/frame-of-mind)\n\n`frame-of-mind` adds a frame around strings.\n\n```sh\nyarn add -E frame-of-mind\n```\n\n## Table Of Contents\n\n- [Table Of Contents](#table-of-contents)\n- [API](#api)\n- [`frameOfMind(string: string, options?: Config): string`](#frameofmindstring-stringoptions-config-string)\n  * [`_frameOfMind.Config`](#type-_frameofmindconfig)\n- [Copyright](#copyright)\n\n\u003cp align=\"center\"\u003e\u003ca href=\"#table-of-contents\"\u003e\u003cimg src=\".documentary/section-breaks/0.svg?sanitize=true\"\u003e\u003c/a\u003e\u003c/p\u003e\n\n## API\n\nThe package is available by importing its default function:\n\n```js\nimport frameOfMind from 'frame-of-mind'\n```\n\n\u003cp align=\"center\"\u003e\u003ca href=\"#table-of-contents\"\u003e\u003cimg src=\".documentary/section-breaks/1.svg?sanitize=true\"\u003e\u003c/a\u003e\u003c/p\u003e\n\n## `frameOfMind(`\u003cbr/\u003e\u0026nbsp;\u0026nbsp;`string: string,`\u003cbr/\u003e\u0026nbsp;\u0026nbsp;`options?: Config,`\u003cbr/\u003e`): string`\n\nThis function will add a frame around strings with single or multiple lines.\n\n__\u003ca name=\"type-_frameofmindconfig\"\u003e`_frameOfMind.Config`\u003c/a\u003e__: Options for the program.\n\n|  Name   |      Type       |         Description         | Default |\n| ------- | --------------- | --------------------------- | ------- |\n| padding | \u003cem\u003enumber\u003c/em\u003e | The left and right padding. | `1`     |\n\n```js\nimport frameOfMind from 'frame-of-mind'\n\nconst res = frameOfMind(\n  `There are thousands upon thousands of students\nwho have practised meditation and obtained its fruits.\nDo not doubt its possibilities because of the simplicity of the method.\nIf you can not find the truth right where you are,\nwhere else do you expect to find it?`\n)\n```\n```\n┌─────────────────────────────────────────────────────────────────────────┐\n│ There are thousands upon thousands of students                          │\n│ who have practised meditation and obtained its fruits.                  │\n│ Do not doubt its possibilities because of the simplicity of the method. │\n│ If you can not find the truth right where you are,                      │\n│ where else do you expect to find it?                                    │\n└─────────────────────────────────────────────────────────────────────────┘\n```\n\n\u003cp align=\"center\"\u003e\u003ca href=\"#table-of-contents\"\u003e\u003cimg src=\".documentary/section-breaks/2.svg?sanitize=true\"\u003e\u003c/a\u003e\u003c/p\u003e\n\n## Copyright\n\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003cth\u003e\n      \u003ca href=\"https://artd.eco\"\u003e\n        \u003cimg src=\"https://raw.githubusercontent.com/wrote/wrote/master/images/artdeco.png\" alt=\"Art Deco\" /\u003e\n      \u003c/a\u003e\n    \u003c/th\u003e\n    \u003cth\u003e© \u003ca href=\"https://artd.eco\"\u003eArt Deco\u003c/a\u003e   2019\u003c/th\u003e\n    \u003cth\u003e\n      \u003ca href=\"https://www.technation.sucks\" title=\"Tech Nation Visa\"\u003e\n        \u003cimg src=\"https://raw.githubusercontent.com/artdecoweb/www.technation.sucks/master/anim.gif\"\n          alt=\"Tech Nation Visa\" /\u003e\n      \u003c/a\u003e\n    \u003c/th\u003e\n    \u003cth\u003e\u003ca href=\"https://www.technation.sucks\"\u003eTech Nation Visa Sucks\u003c/a\u003e\u003c/th\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n\u003cp align=\"center\"\u003e\u003ca href=\"#table-of-contents\"\u003e\u003cimg src=\".documentary/section-breaks/-1.svg?sanitize=true\"\u003e\u003c/a\u003e\u003c/p\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartdecocode%2Fframe-of-mind","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fartdecocode%2Fframe-of-mind","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartdecocode%2Fframe-of-mind/lists"}