{"id":20719869,"url":"https://github.com/itw-creative-works/simply-beautiful","last_synced_at":"2025-04-23T14:25:44.894Z","repository":{"id":57361557,"uuid":"213551697","full_name":"itw-creative-works/simply-beautiful","owner":"itw-creative-works","description":"Beautify HTML, JS, CSS, and JSON in the browser or in Node.js!","archived":false,"fork":false,"pushed_at":"2024-06-19T22:00:10.000Z","size":145,"stargazers_count":10,"open_issues_count":6,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-30T00:31:38.496Z","etag":null,"topics":["beautify","beautify-css","beautify-html","beautify-js","beautify-json","css","html","javascript","js","json","prettify","pretty","pretty-print"],"latest_commit_sha":null,"homepage":"https://itwcreativeworks.com","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/itw-creative-works.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":"2019-10-08T04:53:46.000Z","updated_at":"2025-03-26T00:58:37.000Z","dependencies_parsed_at":"2024-06-18T22:51:28.657Z","dependency_job_id":"8d1b4d9b-103c-431e-bc71-5697833c2d1e","html_url":"https://github.com/itw-creative-works/simply-beautiful","commit_stats":{"total_commits":23,"total_committers":2,"mean_commits":11.5,"dds":"0.34782608695652173","last_synced_commit":"dbe5cee95532813bb6e43e9735085c5e663da96d"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itw-creative-works%2Fsimply-beautiful","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itw-creative-works%2Fsimply-beautiful/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itw-creative-works%2Fsimply-beautiful/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itw-creative-works%2Fsimply-beautiful/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itw-creative-works","download_url":"https://codeload.github.com/itw-creative-works/simply-beautiful/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250449975,"owners_count":21432578,"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":["beautify","beautify-css","beautify-html","beautify-js","beautify-json","css","html","javascript","js","json","prettify","pretty","pretty-print"],"created_at":"2024-11-17T03:18:38.028Z","updated_at":"2025-04-23T14:25:44.878Z","avatar_url":"https://github.com/itw-creative-works.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://itwcreativeworks.com\"\u003e\n    \u003cimg src=\"https://cdn.itwcreativeworks.com/assets/itw-creative-works/images/logo/itw-creative-works-brandmark-black-x.svg\" width=\"100px\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/github/package-json/v/itw-creative-works/simply-beautiful.svg\"\u003e\n  \u003cbr\u003e\n  \u003cimg src=\"https://img.shields.io/librariesio/release/npm/simply-beautiful.svg\"\u003e\n  \u003cimg src=\"https://img.shields.io/bundlephobia/min/simply-beautiful.svg\"\u003e\n  \u003cimg src=\"https://img.shields.io/codeclimate/maintainability-percentage/itw-creative-works/simply-beautiful.svg\"\u003e\n  \u003cimg src=\"https://img.shields.io/npm/dm/simply-beautiful.svg\"\u003e\n  \u003cimg src=\"https://img.shields.io/node/v/simply-beautiful.svg\"\u003e\n  \u003cimg src=\"https://img.shields.io/website/https/itwcreativeworks.com.svg\"\u003e\n  \u003cimg src=\"https://img.shields.io/github/license/itw-creative-works/simply-beautiful.svg\"\u003e\n  \u003cimg src=\"https://img.shields.io/github/contributors/itw-creative-works/simply-beautiful.svg\"\u003e\n  \u003cimg src=\"https://img.shields.io/github/last-commit/itw-creative-works/simply-beautiful.svg\"\u003e\n  \u003cbr\u003e\n  \u003cbr\u003e\n  \u003ca href=\"https://itwcreativeworks.com\"\u003eSite\u003c/a\u003e | \u003ca href=\"https://www.npmjs.com/package/simply-beautiful\"\u003eNPM Module\u003c/a\u003e | \u003ca href=\"https://github.com/itw-creative-works/simply-beautiful\"\u003eGitHub Repo\u003c/a\u003e\n  \u003cbr\u003e\n  \u003cbr\u003e\n  \u003cstrong\u003esimply-beautiful\u003c/strong\u003e will beautify (pretty print) any web language including HTML, CSS, Javascript, and even JSON! Configure your own indent size and more!\n  \u003cbr\u003e\n  \u003cbr\u003e\n  \u003cimg src=\"https://media.giphy.com/media/REiJphYIQy13i/source.gif\"\u003e\n  \u003cbr\u003e\n  \u003cbr\u003e\n\u003c/p\u003e\n\n## 🌐 Simply Beautiful Works in Node AND browser environments\nYes, this module works in both Node and browser environments, including compatibility with [Webpack](https://www.npmjs.com/package/webpack) and [Browserify](https://www.npmjs.com/package/browserify)!\n\n## 🦄 Un-minify any of the following languages\n* HTML\n* CSS\n* Javascript\n* JSON\n\n## 📦 Install Simply Beautiful\n### Option 1: Install via npm\nInstall with npm if you plan to use Simply Beautiful in a Node project or in the browser.\n```shell\nnpm install simply-beautiful\n```\nIf you plan to use `simply-beautiful` in a browser environment, you will probably need to use [Webpack](https://www.npmjs.com/package/webpack), [Browserify](https://www.npmjs.com/package/browserify), or a similar service to compile it.\n\n```js\nconst beautify = require('simply-beautiful');\n```\n\n### Option 2: Install via CDN\nInstall with CDN if you plan to use Simply Beautiful only in a browser environment.\n```html\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/simply-beautiful@latest/dist/index.min.js\"\u003e\u003c/script\u003e\n\u003cscript type=\"text/javascript\"\u003e\n  var beautify = SimplyBeautiful(); // The script above exposes the global variable 'SimplyBeautiful'\n\u003c/script\u003e\n```\n\n## ⚡️ Using Simply Beautiful\n### Via the npm module or the CDN\nAfter you have followed the install step, you can start using `simply-beautiful` with your website or software!\n```js\nvar options = {\n  indent_size: 2,\n  // ...\n}\nconsole.log(beautify.html('\u003cdiv\u003e\u003cdiv\u003e\u003cdiv\u003e\u003c/div\u003e\u003c/div\u003e\u003c/div\u003e', options));\nconsole.log(beautify.css('p { color: red; text-align: center; }', options));\nconsole.log(beautify.js(\"function test() { (function() { console.log('Hello World!') }()); }\", options));\nconsole.log(beautify.json('{ \"top\": { \"middle\": { \"bottom\": 69 } } }', options));\n```\n\n## 🧩 Extending Capabilities\n### Options\nFind a kitchen-sink example of the options you can supply to customize the output of the beautifier!\n```js\nvar options = {\n  indent_size: 4,\n  space_before_conditional: true,\n  jslint_happy: true,\n  max_char: 0,\n}\n```\n\n## 📝 What Can Simply Beautiful do?\nSimply beautify will pretty print any HTML, CSS Javascript, or JSON and it works in both browser and Node.js environments!\n\nBased on this pen [here](https://codepen.io/jasondavis/pen/JoxMXa).\n\n## 🗨️ Final Words\nIf you are still having difficulty, we would love for you to post\na question to [the Simply Beautiful issues page](https://github.com/itw-creative-works/simply-beautiful/issues). It is much easier to answer questions that include your code and relevant files! So if you can provide them, we'd be extremely grateful (and more likely to help you find the answer!)\n\n## 📚 Projects Using this Library\n[Somiibo](https://somiibo.com/): A Social Media Bot with an open-source module library. \u003cbr\u003e\n[JekyllUp](https://jekyllup.com/): A website devoted to sharing the best Jekyll themes. \u003cbr\u003e\n[Slapform](https://slapform.com/): A backend processor for your HTML forms on static sites. \u003cbr\u003e\n[SoundGrail Music App](https://app.soundgrail.com/): A resource for producers, musicians, and DJs. \u003cbr\u003e\n[Hammock Report](https://hammockreport.com/): An API for exploring and listing backyard products. \u003cbr\u003e\n\nAsk us to have your project listed! :)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitw-creative-works%2Fsimply-beautiful","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitw-creative-works%2Fsimply-beautiful","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitw-creative-works%2Fsimply-beautiful/lists"}