{"_id":"write-md-safe","_rev":"146519","name":"write-md-safe","description":"Write markdown files from a Marked token list or string","dist-tags":{"latest":"1.2.0"},"maintainers":[{"name":"bconnorwhite","email":"connor.bcw@gmail.com"}],"time":{"modified":"2021-06-03T11:30:04.000Z","created":"2020-09-07T03:01:25.035Z","1.2.0":"2021-04-13T13:29:15.195Z","1.1.3":"2021-04-06T03:27:10.513Z","1.1.2":"2021-03-30T20:37:15.939Z","1.1.1":"2021-03-30T20:35:17.238Z","1.1.0":"2020-10-11T01:55:05.284Z","1.0.4":"2020-09-30T23:17:00.084Z","1.0.3":"2020-09-07T03:31:45.898Z","1.0.2":"2020-09-07T03:19:58.212Z","1.0.1":"2020-09-07T03:18:41.918Z","1.0.0":"2020-09-07T03:01:25.035Z"},"users":{},"author":{"name":"Connor White","email":"connor.bcw@gmail.com","url":"https://connorwhite.org"},"repository":{"type":"git","url":"git+https://github.com/bconnorwhite/write-md-safe.git"},"versions":{"1.2.0":{"name":"write-md-safe","version":"1.2.0","description":"Write markdown files from a Marked token list or string","license":"MIT","author":{"name":"Connor White","email":"connor.bcw@gmail.com","url":"https://connorwhite.org"},"homepage":"htps://connorwhite.org/github/write-md-safe","repository":{"type":"git","url":"git+https://github.com/bconnorwhite/write-md-safe.git"},"keywords":["write","markdown","md","file","safe","json","marked","string"],"main":"./build/index.js","scripts":{"build":"bob build","commit":"bob commit","lint":"bob lint","release":"bob publish","test":"bob test"},"dependencies":{"marked":"^2.0.3","write-file-safe":"^1.3.1"},"devDependencies":{"@bconnorwhite/bob":"^2.9.4","@types/marked":"^2.0.2","@types/mock-fs":"^4.13.0","mock-fs":"^4.13.0","read-file-safe":"^1.0.10"},"eslintConfig":{"extends":"eslint-config-bob"},"husky":{"hooks":{"commit-msg":"bob lint commit"}},"npmpackagejsonlint":{"extends":"npm-package-json-lint-config-bob"},"_id":"write-md-safe@1.2.0","dist":{"shasum":"e9d9328ee8314a65d94b25533681772b052553a7","size":2719,"noattachment":false,"key":"/write-md-safe/-/write-md-safe-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/write-md-safe/download/write-md-safe-1.2.0.tgz"},"_npmUser":{"name":"bconnorwhite","email":"connor.bcw@gmail.com"},"directories":{},"maintainers":[{"name":"bconnorwhite","email":"connor.bcw@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/write-md-safe_1.2.0_1618320554948_0.4206987568083298"},"_hasShrinkwrap":false,"publish_time":1618320555195,"_cnpm_publish_time":1618320555195},"1.1.3":{"name":"write-md-safe","version":"1.1.3","description":"Write markdown files from a Marked token list or string","license":"MIT","author":{"name":"Connor White","email":"connor.bcw@gmail.com","url":"https://connorwhite.org"},"homepage":"htps://connorwhite.org/github/write-md-safe","repository":{"type":"git","url":"git+https://github.com/bconnorwhite/write-md-safe.git"},"keywords":["write","markdown","md","file","safe","json","marked","string"],"main":"./build/index.js","scripts":{"build":"bob build","commit":"bob commit","lint":"bob lint","release":"bob publish","test":"bob test"},"dependencies":{"marked":"^2.0.1","write-file-safe":"^1.2.3"},"devDependencies":{"@bconnorwhite/bob":"^2.9.4","@types/marked":"^2.0.1","@types/mock-fs":"^4.13.0","mock-fs":"^4.13.0","read-file-safe":"^1.0.10"},"eslintConfig":{"extends":"eslint-config-bob"},"husky":{"hooks":{"commit-msg":"bob lint commit"}},"npmpackagejsonlint":{"extends":"npm-package-json-lint-config-bob"},"_id":"write-md-safe@1.1.3","dist":{"shasum":"c8b73bc51ac6aa15453e9742853f569f5e93adc7","size":2573,"noattachment":false,"key":"/write-md-safe/-/write-md-safe-1.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/write-md-safe/download/write-md-safe-1.1.3.tgz"},"_npmUser":{"name":"bconnorwhite","email":"connor.bcw@gmail.com"},"directories":{},"maintainers":[{"name":"bconnorwhite","email":"connor.bcw@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/write-md-safe_1.1.3_1617679630375_0.29112151697184885"},"_hasShrinkwrap":false,"publish_time":1617679630513,"_cnpm_publish_time":1617679630513},"1.1.2":{"name":"write-md-safe","version":"1.1.2","description":"Write markdown files from a Marked token list or string","license":"MIT","author":{"name":"Connor White","email":"connor.bcw@gmail.com","url":"https://connorwhite.org"},"homepage":"htps://connorwhite.org/github/write-md-safe","repository":{"type":"git","url":"git+https://github.com/bconnorwhite/write-md-safe.git"},"keywords":["write","markdown","md","file","safe","json","marked","string"],"main":"./build/index.js","scripts":{"build":"bob build","commit":"bob commit","lint":"bob lint","release":"bob publish","test":"bob test"},"dependencies":{"marked":"^2.0.1","write-file-safe":"^1.2.2"},"devDependencies":{"@bconnorwhite/bob":"^2.9.2","@types/marked":"^2.0.1","@types/mock-fs":"^4.13.0","mock-fs":"^4.13.0","read-file-safe":"^1.0.10"},"eslintConfig":{"extends":"eslint-config-bob"},"husky":{"hooks":{"commit-msg":"bob lint commit"}},"npmpackagejsonlint":{"extends":"npm-package-json-lint-config-bob"},"_id":"write-md-safe@1.1.2","dist":{"shasum":"9bf1a286787bdb75f6667f66f1d9ab7a54da9915","size":2493,"noattachment":false,"key":"/write-md-safe/-/write-md-safe-1.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/write-md-safe/download/write-md-safe-1.1.2.tgz"},"_npmUser":{"name":"bconnorwhite","email":"connor.bcw@gmail.com"},"directories":{},"maintainers":[{"name":"bconnorwhite","email":"connor.bcw@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/write-md-safe_1.1.2_1617136635806_0.3308123153219815"},"_hasShrinkwrap":false,"publish_time":1617136635939,"_cnpm_publish_time":1617136635939},"1.1.1":{"name":"write-md-safe","version":"1.1.1","description":"Write markdown files from a Marked token list or string","license":"MIT","author":{"name":"Connor White","email":"connor.bcw@gmail.com","url":"https://connorwhite.org"},"homepage":"htps://connorwhite.org/github/write-md-safe","repository":{"type":"git","url":"git+https://github.com/bconnorwhite/write-md-safe.git"},"keywords":["write","markdown","md","file","safe","json","marked","string"],"main":"./build/index.js","scripts":{"build":"bob build","commit":"bob commit","lint":"bob lint","release":"bob publish","test":"bob test"},"dependencies":{"marked":"^2.0.1","write-file-safe":"^1.2.2"},"devDependencies":{"@bconnorwhite/bob":"^2.9.2","@types/marked":"^2.0.1","@types/mock-fs":"^4.13.0","mock-fs":"^4.13.0","read-file-safe":"^1.0.10"},"eslintConfig":{"extends":"eslint-config-bob"},"husky":{"hooks":{"commit-msg":"bob lint commit"}},"npmpackagejsonlint":{"extends":"npm-package-json-lint-config-bob"},"_id":"write-md-safe@1.1.1","dist":{"shasum":"15907efe84634a6b92972ed8b7c8c71d65324498","size":2435,"noattachment":false,"key":"/write-md-safe/-/write-md-safe-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/write-md-safe/download/write-md-safe-1.1.1.tgz"},"_npmUser":{"name":"bconnorwhite","email":"connor.bcw@gmail.com"},"directories":{},"maintainers":[{"name":"bconnorwhite","email":"connor.bcw@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/write-md-safe_1.1.1_1617136517106_0.461289013176714"},"_hasShrinkwrap":false,"publish_time":1617136517238,"_cnpm_publish_time":1617136517238},"1.1.0":{"name":"write-md-safe","version":"1.1.0","description":"Write markdown files from a Marked token list or string","license":"MIT","author":{"name":"Connor White","email":"connor.bcw@gmail.com","url":"https://connorwhite.org"},"homepage":"htps://connorwhite.org/github/write-md-safe","repository":{"type":"git","url":"git+https://github.com/bconnorwhite/write-md-safe.git"},"keywords":["write","markdown","md","file","safe","json","marked","string"],"main":"./build/index.js","scripts":{"build":"bob build","commit":"bob commit","lint":"bob lint","release":"bob publish","test":"bob test"},"dependencies":{"@types/marked":"^1.1.0","marked":"^1.2.0","write-file-safe":"^1.2.2"},"devDependencies":{"@bconnorwhite/bob":"^2.9.2","@types/mock-fs":"^4.13.0","mock-fs":"^4.13.0","read-file-safe":"^1.0.10"},"eslintConfig":{"extends":"eslint-config-bob"},"husky":{"hooks":{"commit-msg":"bob lint commit"}},"npmpackagejsonlint":{"extends":"npm-package-json-lint-config-bob"},"_id":"write-md-safe@1.1.0","dist":{"shasum":"944e4c270ee4782b76e70ebacf78e3356ef63504","size":2360,"noattachment":false,"key":"/write-md-safe/-/write-md-safe-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/write-md-safe/download/write-md-safe-1.1.0.tgz"},"maintainers":[{"name":"bconnorwhite","email":"connor.bcw@gmail.com"}],"_npmUser":{"name":"bconnorwhite","email":"connor.bcw@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/write-md-safe_1.1.0_1602381305179_0.33723782486547904"},"_hasShrinkwrap":false,"publish_time":1602381305284,"_cnpm_publish_time":1602381305284},"1.0.4":{"name":"write-md-safe","version":"1.0.4","description":"Write markdown files from a Marked token list or string","license":"MIT","author":{"name":"Connor White","email":"connor.bcw@gmail.com","url":"https://connorwhite.org"},"homepage":"htps://connorwhite.org/github/write-md-safe","repository":{"type":"git","url":"git+git+https://github.com/bconnorwhite/write-md-safe.git.git"},"keywords":["write","markdown","md","file","safe","json","marked","string"],"main":"./build/index.js","scripts":{"build":"bob build","postversion":"git push","prepublishOnly":"yarn run build"},"dependencies":{"@types/marked":"^1.1.0","marked":"^1.1.1","write-file-safe":"^1.0.3"},"devDependencies":{"@bconnorwhite/bob":"^2.0.1"},"_id":"write-md-safe@1.0.4","dist":{"shasum":"6c01235a5e8a55997a878aaffc0003bb1cfb03c6","size":1694,"noattachment":false,"key":"/write-md-safe/-/write-md-safe-1.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/write-md-safe/download/write-md-safe-1.0.4.tgz"},"maintainers":[{"name":"bconnorwhite","email":"connor.bcw@gmail.com"}],"_npmUser":{"name":"bconnorwhite","email":"connor.bcw@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/write-md-safe_1.0.4_1601507819980_0.08998925574117744"},"_hasShrinkwrap":false,"publish_time":1601507820084,"_cnpm_publish_time":1601507820084},"1.0.3":{"name":"write-md-safe","version":"1.0.3","description":"Write markdown files from a Marked token list or string","license":"MIT","author":{"name":"Connor White","email":"connor.bcw@gmail.com","url":"https://connorwhite.org"},"homepage":"htps://connorwhite.org/github/write-md-safe","repository":{"type":"git","url":"git+git+https://github.com/bconnorwhite/write-md-safe.git.git"},"keywords":[],"main":"./build/index.js","scripts":{"build":"bob build","postversion":"git push","prepublishOnly":"yarn run build"},"dependencies":{"marked":"^1.1.1","write-file-safe":"^1.0.3"},"devDependencies":{"@bconnorwhite/bob":"^2.0.1","@types/marked":"^1.1.0"},"_id":"write-md-safe@1.0.3","dist":{"shasum":"553cec88508319c4a61008c8a526e0d24af750e0","size":1666,"noattachment":false,"key":"/write-md-safe/-/write-md-safe-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/write-md-safe/download/write-md-safe-1.0.3.tgz"},"maintainers":[{"name":"bconnorwhite","email":"connor.bcw@gmail.com"}],"_npmUser":{"name":"bconnorwhite","email":"connor.bcw@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/write-md-safe_1.0.3_1599449505789_0.0017913481343692084"},"_hasShrinkwrap":false,"publish_time":1599449505898,"_cnpm_publish_time":1599449505898},"1.0.2":{"name":"write-md-safe","version":"1.0.2","description":"Write markdown files from a Marked token list or string","license":"MIT","author":{"name":"Connor White","email":"connor.bcw@gmail.com","url":"https://connorwhite.org"},"homepage":"htps://connorwhite.org/github/write-md-safe","repository":{"type":"git","url":"git+git+https://github.com/bconnorwhite/write-md-safe.git.git"},"keywords":[],"main":"./build/index.js","scripts":{"build":"bob build","postversion":"git push","prepublishOnly":"yarn run build"},"dependencies":{"marked":"^1.1.1","write-file-safe":"^1.0.3"},"devDependencies":{"@bconnorwhite/bob":"^2.0.1","@types/marked":"^1.1.0"},"_id":"write-md-safe@1.0.2","dist":{"shasum":"267f5e3e5b363bdcfc3218996d2e8bdc3eb118ed","size":1718,"noattachment":false,"key":"/write-md-safe/-/write-md-safe-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/write-md-safe/download/write-md-safe-1.0.2.tgz"},"maintainers":[{"name":"bconnorwhite","email":"connor.bcw@gmail.com"}],"_npmUser":{"name":"bconnorwhite","email":"connor.bcw@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/write-md-safe_1.0.2_1599448798123_0.4826968788985908"},"_hasShrinkwrap":false,"publish_time":1599448798212,"_cnpm_publish_time":1599448798212},"1.0.1":{"name":"write-md-safe","version":"1.0.1","description":"Write markdown files from a Marked token list or string","license":"MIT","author":{"name":"Connor White","email":"connor.bcw@gmail.com","url":"https://connorwhite.org"},"homepage":"htps://connorwhite.org/github/write-md-safe","repository":{"type":"git","url":"git+git+https://github.com/bconnorwhite/write-md-safe.git.git"},"keywords":[],"main":"./build/index.js","scripts":{"build":"bob build","postversion":"git push","prepublishOnly":"yarn run build"},"dependencies":{"marked":"^1.1.1","write-file-safe":"^1.0.3"},"devDependencies":{"@bconnorwhite/bob":"^2.0.1","@types/marked":"^1.1.0"},"_id":"write-md-safe@1.0.1","dist":{"shasum":"2c9c5b6ce00330e85ec3bd1d5324380d537ca238","size":1721,"noattachment":false,"key":"/write-md-safe/-/write-md-safe-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/write-md-safe/download/write-md-safe-1.0.1.tgz"},"maintainers":[{"name":"bconnorwhite","email":"connor.bcw@gmail.com"}],"_npmUser":{"name":"bconnorwhite","email":"connor.bcw@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/write-md-safe_1.0.1_1599448721818_0.722220011001983"},"_hasShrinkwrap":false,"publish_time":1599448721918,"_cnpm_publish_time":1599448721918},"1.0.0":{"name":"write-md-safe","version":"1.0.0","description":"Write markdown files from a Marked token list or string","license":"MIT","author":{"name":"Connor White","email":"connor.bcw@gmail.com","url":"https://connorwhite.org"},"homepage":"htps://connorwhite.org/github/write-md-safe","repository":{"type":"git","url":"git+git+https://github.com/bconnorwhite/write-md-safe.git.git"},"keywords":[],"main":"./build/index.js","scripts":{"build":"bob build","postversion":"git push","prepublishOnly":"yarn run build"},"dependencies":{"marked":"^1.1.1","write-file-safe":"^1.0.3"},"devDependencies":{"@bconnorwhite/bob":"^2.0.1","@types/marked":"^1.1.0"},"_id":"write-md-safe@1.0.0","dist":{"shasum":"48a837c09901c242e097b27d2036fea268c63d2d","size":1623,"noattachment":false,"key":"/write-md-safe/-/write-md-safe-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/write-md-safe/download/write-md-safe-1.0.0.tgz"},"maintainers":[{"name":"bconnorwhite","email":"connor.bcw@gmail.com"}],"_npmUser":{"name":"bconnorwhite","email":"connor.bcw@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/write-md-safe_1.0.0_1599447684897_0.024339368925167193"},"_hasShrinkwrap":false,"publish_time":1599447685035,"_cnpm_publish_time":1599447685035}},"readme":"<div align=\"center\">\n  <h1>write-md-safe</h1>\n  <a href=\"https://npmjs.com/package/write-md-safe\">\n    <img alt=\"NPM\" src=\"https://img.shields.io/npm/v/write-md-safe.svg\">\n  </a>\n  <a href=\"https://github.com/bconnorwhite/write-md-safe\">\n    <img alt=\"TypeScript\" src=\"https://img.shields.io/github/languages/top/bconnorwhite/write-md-safe.svg\">\n  </a>\n  <a href=\"https://coveralls.io/github/bconnorwhite/write-md-safe?branch=master\">\n    <img alt=\"Coverage Status\" src=\"https://img.shields.io/coveralls/github/bconnorwhite/write-md-safe.svg?branch=master\">\n  </a>\n  <a href=\"https://github.com/bconnorwhite/write-md-safe\">\n    <img alt=\"GitHub Stars\" src=\"https://img.shields.io/github/stars/bconnorwhite/write-md-safe?label=Stars%20Appreciated%21&style=social\">\n  </a>\n  <a href=\"https://twitter.com/bconnorwhite\">\n    <img alt=\"Twitter Follow\" src=\"https://img.shields.io/twitter/follow/bconnorwhite.svg?label=%40bconnorwhite&style=social\">\n  </a>\n</div>\n\n<br />\n\n> Write markdown files from a [Marked](https://www.npmjs.com/package/marked) token list or string.\n\n## Installation\n\n```bash\nyarn add write-md-safe\n```\n\n```bash\nnpm install write-md-safe\n```\n\n## API\n\n### Types\n```ts\nimport {\n  writeMarkdown,\n  writeMarkdownSync,\n  markdownContentToString,\n  MarkdownContent,\n  Token, // a Marked token\n  Tokens,\n  Options\n} from \"write-md-safe\";\n\nfunction writeMarkdown(path: string, content?: MarkdownContent, options?: Options): Promise<void>;\n\nfunction writeMarkdownSync(path: string, content?: MarkdownContent, options?: Options): void;\n\nfunction markdownContentToString(content?: MarkdownContent): string;\n\ntype MarkdownContent = string | (Token | string)[];\n\ntype Options = {\n  /**\n   * Recursively create parent directories if needed. Default: `true`\n   */\n  recursive?: boolean;\n  /**\n   * Ensure file ends with a newline. Default: `true`\n   */\n  appendNewline?: boolean;\n  /**\n   * Write even if file already exists. Default: `true`\n   */\n  overwrite?: boolean;\n}\n```\n\n<br />\n\n<h2>Dependencies<img align=\"right\" alt=\"dependencies\" src=\"https://img.shields.io/david/bconnorwhite/write-md-safe.svg\"></h2>\n\n- [marked](https://www.npmjs.com/package/marked): A markdown parser built for speed\n- [write-file-safe](https://www.npmjs.com/package/write-file-safe): Write files and create parent directories if necessary\n\n<br />\n\n<h2>Dev Dependencies<img align=\"right\" alt=\"David\" src=\"https://img.shields.io/david/dev/bconnorwhite/write-md-safe.svg\"></h2>\n\n- [@bconnorwhite/bob](https://www.npmjs.com/package/@bconnorwhite/bob): Bob is a toolkit for TypeScript projects\n- [@types/marked](https://www.npmjs.com/package/@types/marked): TypeScript definitions for Marked\n- [@types/mock-fs](https://www.npmjs.com/package/@types/mock-fs): TypeScript definitions for mock-fs\n- [mock-fs](https://www.npmjs.com/package/mock-fs): A configurable mock file system.  You know, for testing.\n- [read-file-safe](https://www.npmjs.com/package/read-file-safe): Read files without try catch\n\n<br />\n\n<h2>License <img align=\"right\" alt=\"license\" src=\"https://img.shields.io/npm/l/write-md-safe.svg\"></h2>\n\n[MIT](https://mit-license.org/)\n\n<br />\n\n## Related Packages:\n\n- [read-md-safe](https://npmjs.com/package/read-md-safe): Read markdown files as a Marked token list or string.\n- [write-file-safe](https://www.npmjs.com/package/write-file-safe): Write files, and create parent directories if necessary.\n","_attachments":{},"homepage":"htps://connorwhite.org/github/write-md-safe","license":"MIT"}