{"id":18314346,"url":"https://github.com/agrublev/fc-md-website","last_synced_at":"2026-03-19T03:52:43.725Z","repository":{"id":44057194,"uuid":"216885355","full_name":"agrublev/fc-md-website","owner":"agrublev","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-04T17:08:32.000Z","size":185,"stargazers_count":0,"open_issues_count":10,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-15T06:41:27.197Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/agrublev.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-10-22T18:42:05.000Z","updated_at":"2019-10-22T18:42:17.000Z","dependencies_parsed_at":"2023-01-23T06:15:26.230Z","dependency_job_id":null,"html_url":"https://github.com/agrublev/fc-md-website","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/agrublev%2Ffc-md-website","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agrublev%2Ffc-md-website/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agrublev%2Ffc-md-website/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agrublev%2Ffc-md-website/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/agrublev","download_url":"https://codeload.github.com/agrublev/fc-md-website/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248045220,"owners_count":21038552,"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-05T16:32:06.957Z","updated_at":"2026-01-22T17:08:23.289Z","avatar_url":"https://github.com/agrublev.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# md-browser-preview\n\nPreview markdown text in web browser.\nCompile .md into .html, then launch local web server and default web browser in your system.\nCompilation and reloading browser is automatically done when saving .md file.\n\n## Install\n\n1. `npm install -g md-browser-preview`\n1. `md-browser-preview xxx.md`\n\n## Usage\n\n### CLI\n\n    Usage:\n    \u003e md-browser-preview [options] [filename]\n\n    Options:\n      -o, --output   where to output compiled html file              [string] [default: false]\n      -p, --port     port listen on for inner local web server        [number] [default: 5000]\n      -b, --browser  web browser to launch in your system        [string] [default: \"default\"]\n      -t, --title    title of generated html document [string] [default: \"md-browser-preview\"]\n      -g, --gfm      use github favored markdown                     [boolean] [default: true]\n      -s, --style   highlight.js style sheet name                [string] [default: \"github\"]\n      -h, --help     show this help menu                                             [boolean]\n\n### Node.js Programming\n\n#### Basic Usage\n\n```javascript\nconst MdBrowserPreview = require('md-browser-preview');\n\nMdBrowserPreview.init({\n    input: './target.md',\n    output: '.'\n});\n```\n\n#### Advanced Usage\n\n```javascript\nconst MdBrowserPreview = require('md-browser-preview');\n\n// instanciate\nlet mbp = new MdBrowserPreview({\n    input: './target.md',\n    output: '.'\n});\n\n// compile, launch local server and browser, then start watching.\nmbp.compile().then(() =\u003e {\n    return mbp.serve();\n}).then(() =\u003e {\n    mbp.startWatch();\n});\n\n// exit local server and stop watching.\nmbp.exit();\n```\n\n## Development\n\n1. `git clone https://github.com/ytkj/md-browser-preview.git`\n1. `cd md-browser-preview`\n1. `npm install`\n1. `npm link`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagrublev%2Ffc-md-website","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagrublev%2Ffc-md-website","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagrublev%2Ffc-md-website/lists"}