{"_id":"html-frontmatter","_rev":"287070","name":"html-frontmatter","description":"Extract key-value metadata from HTML comments","dist-tags":{"latest":"1.6.1"},"maintainers":[{"name":"zeke","email":"zeke@sikelianos.com"}],"time":{"modified":"2021-06-03T18:39:21.000Z","created":"2014-10-02T20:33:14.120Z","1.6.1":"2016-12-27T15:08:14.540Z","1.6.0":"2016-05-18T04:48:58.250Z","1.5.1":"2015-03-23T23:52:49.672Z","1.5.0":"2015-03-20T04:59:46.638Z","1.4.1":"2015-03-14T04:28:43.913Z","1.4.0":"2015-03-14T04:26:55.255Z","1.3.2":"2015-01-26T22:57:31.228Z","1.3.1":"2015-01-26T19:06:22.766Z","1.3.0":"2014-11-19T01:13:37.266Z","1.2.1":"2014-10-04T03:41:59.662Z","1.2.0":"2014-10-04T03:34:48.200Z","1.1.0":"2014-10-02T21:08:23.020Z","1.0.0":"2014-10-02T20:33:14.120Z"},"users":{"techplex":true,"mhaidarh":true,"rubiadias":true,"itonyyo":true},"author":{"name":"Zeke Sikelianos","email":"zeke@sikelianos.com","url":"http://zeke.sikelianos.com/"},"repository":{"type":"git","url":"git+https://github.com/zeke/html-frontmatter.git"},"versions":{"1.6.1":{"name":"html-frontmatter","version":"1.6.1","description":"Extract key-value metadata from HTML comments","main":"index.js","scripts":{"test":"mocha && standard"},"repository":{"type":"git","url":"git+https://github.com/zeke/html-frontmatter.git"},"keywords":["html","frontmatter","comments","metadata"],"author":{"name":"Zeke Sikelianos","email":"zeke@sikelianos.com","url":"http://zeke.sikelianos.com/"},"license":"MIT","bugs":{"url":"https://github.com/zeke/html-frontmatter/issues"},"homepage":"https://github.com/zeke/html-frontmatter","devDependencies":{"mocha":"^3.2.0","standard":"^7.1.0"},"dependencies":{"dateutil":"^0.1.0"},"standard":{"env":{"mocha":true}},"gitHead":"dc6305e0f11412048bfb66c3b3c64f3328c44562","_id":"html-frontmatter@1.6.1","_shasum":"2da13f948fe1acfa055d9e683320e4f48ddd660d","_from":".","_npmVersion":"3.10.10","_nodeVersion":"7.2.1","_npmUser":{"name":"zeke","email":"zeke@sikelianos.com"},"dist":{"shasum":"2da13f948fe1acfa055d9e683320e4f48ddd660d","size":15007,"noattachment":false,"key":"/html-frontmatter/-/html-frontmatter-1.6.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/html-frontmatter/download/html-frontmatter-1.6.1.tgz"},"maintainers":[{"name":"zeke","email":"zeke@sikelianos.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/html-frontmatter-1.6.1.tgz_1482851292581_0.40439326222985983"},"directories":{},"publish_time":1482851294540,"_cnpm_publish_time":1482851294540,"_hasShrinkwrap":false},"1.6.0":{"name":"html-frontmatter","version":"1.6.0","description":"Extract key-value metadata from HTML comments","main":"index.js","scripts":{"test":"mocha && standard"},"repository":{"type":"git","url":"git+https://github.com/zeke/html-frontmatter.git"},"keywords":["html","frontmatter","comments","metadata"],"author":{"name":"Zeke Sikelianos","email":"zeke@sikelianos.com","url":"http://zeke.sikelianos.com/"},"license":"MIT","bugs":{"url":"https://github.com/zeke/html-frontmatter/issues"},"homepage":"https://github.com/zeke/html-frontmatter","devDependencies":{"mocha":"^1.21.4","standard":"^7.1.0"},"dependencies":{"dateutil":"^0.1.0"},"standard":{"env":{"mocha":true}},"gitHead":"4ebe1443179456329d14ff73f51ac026c0fbd1b0","_id":"html-frontmatter@1.6.0","_shasum":"606f7340909be01ba6a34dbe27af6e6ae65edb35","_from":".","_npmVersion":"3.8.3","_nodeVersion":"5.10.1","_npmUser":{"name":"zeke","email":"zeke@sikelianos.com"},"dist":{"shasum":"606f7340909be01ba6a34dbe27af6e6ae65edb35","size":4839,"noattachment":false,"key":"/html-frontmatter/-/html-frontmatter-1.6.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/html-frontmatter/download/html-frontmatter-1.6.0.tgz"},"maintainers":[{"name":"zeke","email":"zeke@sikelianos.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/html-frontmatter-1.6.0.tgz_1463546934005_0.27236518217250705"},"directories":{},"publish_time":1463546938250,"_cnpm_publish_time":1463546938250,"_hasShrinkwrap":false},"1.5.1":{"name":"html-frontmatter","version":"1.5.1","description":"Extract key-value metadata from HTML comments","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"https://github.com/zeke/html-frontmatter"},"keywords":["html","frontmatter","comments","metadata"],"author":{"name":"Zeke Sikelianos","email":"zeke@sikelianos.com","url":"http://zeke.sikelianos.com/"},"license":"ISC","bugs":{"url":"https://github.com/zeke/html-frontmatter/issues"},"homepage":"https://github.com/zeke/html-frontmatter","devDependencies":{"mocha":"^1.21.4"},"gitHead":"b0dcc00af46d95fa35909a3d9e9a544be3056403","_id":"html-frontmatter@1.5.1","_shasum":"309737ca4fcb9b5e50cc3f2a81ffece293eddf72","_from":".","_npmVersion":"2.7.3","_nodeVersion":"1.5.1","_npmUser":{"name":"zeke","email":"zeke@npmjs.com"},"maintainers":[{"name":"zeke","email":"zeke@sikelianos.com"}],"dist":{"shasum":"309737ca4fcb9b5e50cc3f2a81ffece293eddf72","size":4311,"noattachment":false,"key":"/html-frontmatter/-/html-frontmatter-1.5.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/html-frontmatter/download/html-frontmatter-1.5.1.tgz"},"directories":{},"publish_time":1427154769672,"_cnpm_publish_time":1427154769672,"_hasShrinkwrap":false},"1.5.0":{"name":"html-frontmatter","version":"1.5.0","description":"Extract key-value metadata from HTML comments","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"https://github.com/zeke/html-frontmatter"},"keywords":["html","frontmatter","comments","metadata"],"author":{"name":"Zeke Sikelianos","email":"zeke@sikelianos.com","url":"http://zeke.sikelianos.com/"},"license":"ISC","bugs":{"url":"https://github.com/zeke/html-frontmatter/issues"},"homepage":"https://github.com/zeke/html-frontmatter","devDependencies":{"mocha":"^1.21.4"},"gitHead":"39b319f581607d2ffd9dcb810b36404ba43071d9","_id":"html-frontmatter@1.5.0","_shasum":"50b538ba40d397044d6cd7761c5941549e5c9849","_from":".","_npmVersion":"2.7.3","_nodeVersion":"1.5.1","_npmUser":{"name":"zeke","email":"zeke@npmjs.com"},"dist":{"shasum":"50b538ba40d397044d6cd7761c5941549e5c9849","size":4105,"noattachment":false,"key":"/html-frontmatter/-/html-frontmatter-1.5.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/html-frontmatter/download/html-frontmatter-1.5.0.tgz"},"maintainers":[{"name":"zeke","email":"zeke@sikelianos.com"}],"directories":{},"publish_time":1426827586638,"_cnpm_publish_time":1426827586638,"_hasShrinkwrap":false},"1.4.1":{"name":"html-frontmatter","version":"1.4.1","description":"Extract key-value metadata from HTML comments","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"https://github.com/zeke/html-frontmatter"},"keywords":["html","frontmatter","comments","metadata"],"author":{"name":"Zeke Sikelianos","email":"zeke@sikelianos.com","url":"http://zeke.sikelianos.com/"},"license":"ISC","bugs":{"url":"https://github.com/zeke/html-frontmatter/issues"},"homepage":"https://github.com/zeke/html-frontmatter","devDependencies":{"mocha":"^1.21.4"},"gitHead":"f678eed2c8edc9f83b8480ba677570fb222097e7","_id":"html-frontmatter@1.4.1","_shasum":"946f8759295c472f78a98615dca4da2338ae690d","_from":".","_npmVersion":"2.5.0","_nodeVersion":"0.10.35","_npmUser":{"name":"zeke","email":"zeke@npmjs.com"},"maintainers":[{"name":"zeke","email":"zeke@sikelianos.com"}],"dist":{"shasum":"946f8759295c472f78a98615dca4da2338ae690d","size":3681,"noattachment":false,"key":"/html-frontmatter/-/html-frontmatter-1.4.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/html-frontmatter/download/html-frontmatter-1.4.1.tgz"},"directories":{},"publish_time":1426307323913,"_cnpm_publish_time":1426307323913,"_hasShrinkwrap":false},"1.4.0":{"name":"html-frontmatter","version":"1.4.0","description":"Extract key-value metadata from HTML comments","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"https://github.com/zeke/html-frontmatter"},"keywords":["html","frontmatter","comments","metadata"],"author":{"name":"Zeke Sikelianos","email":"zeke@sikelianos.com","url":"http://zeke.sikelianos.com/"},"license":"ISC","bugs":{"url":"https://github.com/zeke/html-frontmatter/issues"},"homepage":"https://github.com/zeke/html-frontmatter","devDependencies":{"mocha":"^1.21.4"},"gitHead":"e665eb90e300ac9d7635845d696d78fd04dea9e3","_id":"html-frontmatter@1.4.0","_shasum":"b00f10f3ede6498754921bc9cc323ceb287bf33e","_from":".","_npmVersion":"2.5.0","_nodeVersion":"0.10.35","_npmUser":{"name":"zeke","email":"zeke@npmjs.com"},"maintainers":[{"name":"zeke","email":"zeke@sikelianos.com"}],"dist":{"shasum":"b00f10f3ede6498754921bc9cc323ceb287bf33e","size":3679,"noattachment":false,"key":"/html-frontmatter/-/html-frontmatter-1.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/html-frontmatter/download/html-frontmatter-1.4.0.tgz"},"directories":{},"publish_time":1426307215255,"_cnpm_publish_time":1426307215255,"_hasShrinkwrap":false},"1.3.2":{"name":"html-frontmatter","version":"1.3.2","description":"Extract key-value metadata from HTML comments","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"https://github.com/zeke/html-frontmatter"},"keywords":["html","frontmatter","comments","metadata"],"author":{"name":"Zeke Sikelianos","email":"zeke@sikelianos.com","url":"http://zeke.sikelianos.com/"},"license":"ISC","bugs":{"url":"https://github.com/zeke/html-frontmatter/issues"},"homepage":"https://github.com/zeke/html-frontmatter","devDependencies":{"mocha":"^1.21.4"},"gitHead":"2e155ab5a8395ce3bb820617cc3e4f34d54e54b7","_id":"html-frontmatter@1.3.2","_shasum":"b540e27862823a9bbbf0968b3640251ea07665d5","_from":".","_npmVersion":"2.2.0","_nodeVersion":"0.10.31","_npmUser":{"name":"zeke","email":"zeke@npmjs.com"},"maintainers":[{"name":"zeke","email":"zeke@sikelianos.com"}],"dist":{"shasum":"b540e27862823a9bbbf0968b3640251ea07665d5","size":3628,"noattachment":false,"key":"/html-frontmatter/-/html-frontmatter-1.3.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/html-frontmatter/download/html-frontmatter-1.3.2.tgz"},"directories":{},"publish_time":1422313051228,"_cnpm_publish_time":1422313051228,"_hasShrinkwrap":false},"1.3.1":{"name":"html-frontmatter","version":"1.3.1","description":"Extract key-value metadata from HTML comments","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"https://github.com/zeke/html-frontmatter"},"keywords":["html","frontmatter","comments","metadata"],"author":{"name":"Zeke Sikelianos","email":"zeke@sikelianos.com","url":"http://zeke.sikelianos.com/"},"license":"ISC","bugs":{"url":"https://github.com/zeke/html-frontmatter/issues"},"homepage":"https://github.com/zeke/html-frontmatter","devDependencies":{"mocha":"^1.21.4"},"gitHead":"d38c1f55bd2af3b94dcdc68453b2e6f4e807c944","_id":"html-frontmatter@1.3.1","_shasum":"2708f7c050f766e4f6617f252549f84a3060d030","_from":".","_npmVersion":"2.2.0","_nodeVersion":"0.10.31","_npmUser":{"name":"zeke","email":"zeke@npmjs.com"},"maintainers":[{"name":"zeke","email":"zeke@sikelianos.com"}],"dist":{"shasum":"2708f7c050f766e4f6617f252549f84a3060d030","size":3537,"noattachment":false,"key":"/html-frontmatter/-/html-frontmatter-1.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/html-frontmatter/download/html-frontmatter-1.3.1.tgz"},"directories":{},"publish_time":1422299182766,"_cnpm_publish_time":1422299182766,"_hasShrinkwrap":false},"1.3.0":{"name":"html-frontmatter","version":"1.3.0","description":"Extract key-value metadata from HTML comments","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"https://github.com/zeke/html-frontmatter"},"keywords":["html","frontmatter","comments","metadata"],"author":{"name":"Zeke Sikelianos","email":"zeke@sikelianos.com","url":"http://zeke.sikelianos.com/"},"license":"ISC","bugs":{"url":"https://github.com/zeke/html-frontmatter/issues"},"homepage":"https://github.com/zeke/html-frontmatter","devDependencies":{"mocha":"^1.21.4"},"gitHead":"39c33fee82349429da32f740b6e75a88594008e7","_id":"html-frontmatter@1.3.0","_shasum":"1af257bf73390bf72e90f6b996e26631709d8e0e","_from":".","_npmVersion":"2.1.4","_nodeVersion":"0.10.31","_npmUser":{"name":"zeke","email":"zeke@sikelianos.com"},"maintainers":[{"name":"zeke","email":"zeke@sikelianos.com"}],"dist":{"shasum":"1af257bf73390bf72e90f6b996e26631709d8e0e","size":2994,"noattachment":false,"key":"/html-frontmatter/-/html-frontmatter-1.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/html-frontmatter/download/html-frontmatter-1.3.0.tgz"},"directories":{},"publish_time":1416359617266,"_cnpm_publish_time":1416359617266,"_hasShrinkwrap":false},"1.2.1":{"name":"html-frontmatter","version":"1.2.1","description":"Extract key-value metadata from HTML comments","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"https://github.com/zeke/html-frontmatter"},"keywords":["html","frontmatter","comments","metadata"],"author":{"name":"Zeke Sikelianos","email":"zeke@sikelianos.com","url":"http://zeke.sikelianos.com/"},"license":"ISC","bugs":{"url":"https://github.com/zeke/html-frontmatter/issues"},"homepage":"https://github.com/zeke/html-frontmatter","devDependencies":{"mocha":"^1.21.4"},"gitHead":"c6a95660cc6a85b50774bec681b81c11822e17ba","_id":"html-frontmatter@1.2.1","_shasum":"ae53c313fb553660aabd44a7295ec4344973ad39","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"zeke","email":"zeke@sikelianos.com"},"maintainers":[{"name":"zeke","email":"zeke@sikelianos.com"}],"dist":{"shasum":"ae53c313fb553660aabd44a7295ec4344973ad39","size":2926,"noattachment":false,"key":"/html-frontmatter/-/html-frontmatter-1.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/html-frontmatter/download/html-frontmatter-1.2.1.tgz"},"directories":{},"publish_time":1412394119662,"_cnpm_publish_time":1412394119662,"_hasShrinkwrap":false},"1.2.0":{"name":"html-frontmatter","version":"1.2.0","description":"Extract key-value metadata from HTML comments","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"https://github.com/zeke/html-frontmatter"},"keywords":["html","frontmatter","comments","metadata"],"author":{"name":"Zeke Sikelianos","email":"zeke@sikelianos.com","url":"http://zeke.sikelianos.com/"},"license":"ISC","bugs":{"url":"https://github.com/zeke/html-frontmatter/issues"},"homepage":"https://github.com/zeke/html-frontmatter","devDependencies":{"mocha":"^1.21.4"},"gitHead":"b4c826a223cc7e53e16942a4fca582ee7662a3ed","_id":"html-frontmatter@1.2.0","_shasum":"8d01a22b1fbce9001a1a66842af5ff8e0d62cc8b","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"zeke","email":"zeke@sikelianos.com"},"maintainers":[{"name":"zeke","email":"zeke@sikelianos.com"}],"dist":{"shasum":"8d01a22b1fbce9001a1a66842af5ff8e0d62cc8b","size":2855,"noattachment":false,"key":"/html-frontmatter/-/html-frontmatter-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/html-frontmatter/download/html-frontmatter-1.2.0.tgz"},"directories":{},"publish_time":1412393688200,"_cnpm_publish_time":1412393688200,"_hasShrinkwrap":false},"1.1.0":{"name":"html-frontmatter","version":"1.1.0","description":"Extract key-value metadata from HTML comments","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"https://github.com/zeke/html-frontmatter"},"keywords":["html","frontmatter","comments","metadata"],"author":{"name":"Zeke Sikelianos","email":"zeke@sikelianos.com","url":"http://zeke.sikelianos.com/"},"license":"ISC","bugs":{"url":"https://github.com/zeke/html-frontmatter/issues"},"homepage":"https://github.com/zeke/html-frontmatter","devDependencies":{"mocha":"^1.21.4"},"gitHead":"86ad04c24260a3926786b074d76b87decf6b0edd","_id":"html-frontmatter@1.1.0","_shasum":"db68ea78874ce21dd73d9349f0e09dc4df82b66e","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"zeke","email":"zeke@sikelianos.com"},"maintainers":[{"name":"zeke","email":"zeke@sikelianos.com"}],"dist":{"shasum":"db68ea78874ce21dd73d9349f0e09dc4df82b66e","size":2607,"noattachment":false,"key":"/html-frontmatter/-/html-frontmatter-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/html-frontmatter/download/html-frontmatter-1.1.0.tgz"},"directories":{},"publish_time":1412284103020,"_cnpm_publish_time":1412284103020,"_hasShrinkwrap":false},"1.0.0":{"name":"html-frontmatter","version":"1.0.0","description":"Extract key-value metadata from HTML comments","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"https://github.com/zeke/html-frontmatter"},"keywords":["html","frontmatter","comments","metadata"],"author":{"name":"Zeke Sikelianos","email":"zeke@sikelianos.com","url":"http://zeke.sikelianos.com/"},"license":"ISC","bugs":{"url":"https://github.com/zeke/html-frontmatter/issues"},"homepage":"https://github.com/zeke/html-frontmatter","devDependencies":{"mocha":"^1.21.4"},"gitHead":"668d2701416bb4af1a67f74ec0036c6eb7b68e0d","_id":"html-frontmatter@1.0.0","_shasum":"e3704e180a0f446a93f91f88c4d7dd57f84f251f","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"zeke","email":"zeke@sikelianos.com"},"maintainers":[{"name":"zeke","email":"zeke@sikelianos.com"}],"dist":{"shasum":"e3704e180a0f446a93f91f88c4d7dd57f84f251f","size":2441,"noattachment":false,"key":"/html-frontmatter/-/html-frontmatter-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/html-frontmatter/download/html-frontmatter-1.0.0.tgz"},"directories":{},"publish_time":1412281994120,"_cnpm_publish_time":1412281994120,"_hasShrinkwrap":false}},"readme":"# HTML Frontmatter\n\nExtract key-value metadata from HTML comments\n\nIn the world of printed books, [front\nmatter](http://en.wikipedia.org/wiki/Book_design#Front_matter) is the stuff\nat the beginning of the book like the title page, foreword, preface, table\nof contents, etc. In the world of computer programming, frontmatter is metadata at the top\nof a file. The term was (probably) popularized by the [Jekyll static site\ngenerator](http://jekyllrb.com/docs/frontmatter/).\n\nUnlike YAML frontmatter though, HTML frontmatter lives inside plain old HTML comments, so it will be\nquietly ignored by tools/browsers that don't know about it.\n\n## Installation\n\nDownload node at [nodejs.org](http://nodejs.org) and install it, if you haven't already.\n\n```sh\nnpm install html-frontmatter --save\n```\n\n## Usage\n\nGiven an HTML or Markdown file that looks like this:\n\n```html\n<!--\ntitle: GitHub Integration\nkeywords: github, git, npm, enterprise\npublished: 2014-10-02\ndescription: npmE works with GitHub!\n-->\n\n<h1>Hello World</h1>\n```\n\nAnd code like this:\n\n```js\nvar fm = require('html-frontmatter')\nvar frontmatter = fm(fs.readFileSync('github.md', 'utf-8'))\n```\n\nHere's what you'll get:\n\n```js\n{\n  title: \"GitHub Integration\",\n  keywords: \"github, git, npm, enterprise\",\n  published: \"Wed Oct 01 2014 17:00:00 GMT-0700 (PDT)\",\n  description: \"npmE works with GitHub!\"\n}\n```\n\n### Multiline Values\n\nIf you have a long string (like a description) and want it to span multiple\nlines, simply indent each subsequent line with *2 or more* spaces:\n\n```html\n<!--\ndescription: This is a long string that\n  wraps and goes on forever\n  and wraps some more\n-->\n```\n\n### Colons in Values\n\nYour values can contain colons. No worries.\n\n```html\n<!--\ntitle: How I roll: or, the life of a wheel\n-->\n```\n\n### Array Values\n\nYour values can include shallow arrays\n\n```html\n<!--\ntitle: This post has tags\ntags: [100, this is a string, true]\n-->\n```\n\nIs equivalent to:\n\n```html\n<!--\ntitle: This post has tags\ntags: [\n  100,\n  this is a string,\n  true\n  ]\n# note: the closing bracket of an array must be indented by 2 spaces or more\n-->\n```\n\nAnd will return:\n\n```js\n{\n  title: \"This post has tags\",\n  tags: [100, 'this is a string', true]\n}\n```\n\n### Coercion\n\n- Boolean \"true\" and \"false\" strings are converted to Boolean.\n- Numeric strings are converted to Number.\n- Strings in [YMD-ish format](https://github.com/borgar/dateutil#dateutilparse-string-)\nare converted to Date objects.\n\n### Under the Hood\n\nhtml-frontmatter exposes the regular expression it uses to detect presence\nof frontmatter as a property named `pattern`. You can use it to\nconditionally parse frontmatter:\n\n```js\nvar fm = require('html-frontmatter')\nvar content = \"A string that doesn't have frontmatter in it\"\nif (content.match(fm.pattern)) {\n  // nope\n}\n```\n\n\n## Tests\n\n```sh\nnpm install\nnpm test\n\n# ✓ extracts metadata from colon-delimited comments at the top of an HTML string\n# ✓ returns null if frontmatter is not found\n# ✓ handles values that contain colons\n# ✓ handles line-wrapped values\n# ✓ cleans up excess whitespace\n# ✓ ignores comments that are not at the top of the file\n# ✓ allows newlines before comments\n# ✓ ignores comment lines starting with hashes (#)\n# ✓ allows single-line comments\n# ✓ does not include additional comments\n# ✓ coerces boolean strings into Booleans\n# ✓ coerces numeric strings into Numbers\n# ✓ coerces YMD-ish date strings into Dates\n# ✓ exposes its regex pattern as `pattern`\n# ✓ handles missing right-hand-value\n# ✓ handles shallow arrays\n```\n","_attachments":{},"homepage":"https://github.com/zeke/html-frontmatter","bugs":{"url":"https://github.com/zeke/html-frontmatter/issues"},"license":"MIT"}