{"id":20513838,"url":"https://github.com/webreflection/essential-md","last_synced_at":"2025-04-14T00:01:52.110Z","repository":{"id":65993170,"uuid":"234591403","full_name":"WebReflection/essential-md","owner":"WebReflection","description":"An essential markdown-like utility for console logs","archived":false,"fork":false,"pushed_at":"2024-07-19T10:28:03.000Z","size":19,"stargazers_count":30,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-11T19:09:07.486Z","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":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WebReflection.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-01-17T16:39:22.000Z","updated_at":"2025-02-22T04:53:13.000Z","dependencies_parsed_at":"2023-07-14T03:30:50.546Z","dependency_job_id":null,"html_url":"https://github.com/WebReflection/essential-md","commit_stats":{"total_commits":16,"total_committers":1,"mean_commits":16.0,"dds":0.0,"last_synced_commit":"0126524e3aa353cfb51491b4d8a517f847909251"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebReflection%2Fessential-md","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebReflection%2Fessential-md/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebReflection%2Fessential-md/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebReflection%2Fessential-md/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WebReflection","download_url":"https://codeload.github.com/WebReflection/essential-md/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248799931,"owners_count":21163403,"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-15T21:13:29.360Z","updated_at":"2025-04-14T00:01:52.071Z","avatar_url":"https://github.com/WebReflection.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# essential-md\n\n[![Build Status](https://travis-ci.com/WebReflection/essential-md.svg?branch=master)](https://travis-ci.com/WebReflection/essential-md) [![Coverage Status](https://coveralls.io/repos/github/WebReflection/essential-md/badge.svg?branch=master)](https://coveralls.io/github/WebReflection/essential-md?branch=master)\n\n\u003csup\u003e**Social Media Photo by [Anastasiia Kamil](https://unsplash.com/@nastyakamil) on [Unsplash](https://unsplash.com/)**\u003c/sup\u003e\n\nA minimalistic markdown like utility to log:\n\n  * headers\n  * bold text\n  * underlined text\n  * dimmed text\n  * striked text\n  * lists of items\n  * quotes\n  * multi or single line code, to keep its content unaffected\n  * clear 1 up to N previous lines\n  * prompt to ask questions (for anything fancier, see [prompts](https://www.npmjs.com/package/prompts))\n\n## API\n\nEvery exported method can be used either as function or as template literal tag.\n\n  * `emd` to transform content into a string\n  * `log` to convert and `console.log(...)` the result right away\n  * `error` to `console.error` a bold red `Error:` in front of the message\n  * `info` to `console.info` a bold blue `Info:` in front of the message\n  * `warn` to `console.warn` a bold yellow `Warning:` in front of the message\n  * `clear` to clear any previous logged line (`clear(1)`, `clear(7)`, ... default `1`)\n  * `prompt` to ask questions (`prompt('What is your name?').then(...)`)\n  * `ok` to `console.log` a bold green `OK:` in front of the message\n  * `blue`, `green`, `red`, and `yellow`, to easily color some part of the text\n\n## Examples\n\n```js\nimport {log, green, red} from 'essential-md';\n// const {log, green, red} = require('essential-md');\n\nlog`\n# This is a header\n\nWith some extra content, plus:\n\n  * a ${green`green`} text\n  * a ${red`red`} text\n\n... and literally **nothing else**\n`;\n```\n\n## The `essential-md` Markdown flavour\n\n  * `# header` or `#header#` to have top header\n  * `## header` or `## header ##` to have less relevant headers\n  * `*bold*` or `**bold**` to have bold text\n  * `_underlined_` or `__underlined__` to have underlined text\n  * `-dim-` or `--dim--` to have dimmed text (not on Windows though, Windows doesn't understand dimmed text ...)\n  * `~strike~` or `~~strike~~` to strike the text\n  * `'''` or 3 backticks to have multi-line code\n  * single backtick to have inline code\n  * a line starting with a space and one of these `*+-.` chars to have lists\n  * a line starting with `\u003e` to quote text\n\nThat's all folks!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebreflection%2Fessential-md","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebreflection%2Fessential-md","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebreflection%2Fessential-md/lists"}