{"_id":"css-font-parser","_rev":"2864464","name":"css-font-parser","description":"A parser for the CSS font value","dist-tags":{"latest":"2.0.0"},"maintainers":[{"name":"bramstein","email":"b.l.stein@gmail.com"}],"time":{"modified":"2022-09-14T03:06:55.000Z","created":"2013-07-17T17:34:31.783Z","2.0.0":"2022-08-19T08:54:57.583Z","1.0.1":"2022-08-17T19:03:45.631Z","0.3.0":"2020-02-17T20:07:08.331Z","0.2.3":"2017-09-14T10:06:25.279Z","0.2.2":"2017-09-07T06:04:18.512Z","0.2.1":"2015-11-17T14:14:43.689Z","0.2.0":"2013-07-17T17:34:31.783Z"},"users":{},"author":{"name":"Bram Stein","email":"b.l.stein@gmail.com","url":"http://www.bramstein.com"},"repository":{"type":"git","url":"git+https://github.com/bramstein/css-font-parser.git"},"versions":{"2.0.0":{"name":"css-font-parser","version":"2.0.0","description":"A parser for the CSS font value","directories":{"test":"test"},"source":"src/parser.js","exports":{"require":"./dist/css-font-parser.cjs","default":"./dist/css-font-parser.modern.js"},"main":"./dist/css-font-parser.cjs","module":"./dist/css-font-parser.module.js","unpkg":"./dist/css-font-parser.umd.js","type":"module","scripts":{"test":"mocha --reporter spec && npm run lint","lint":"eslint src/*.js test/*.js","build":"microbundle"},"repository":{"type":"git","url":"git+https://github.com/bramstein/css-font-parser.git"},"keywords":["css","font","family","parser"],"author":{"name":"Bram Stein","email":"b.l.stein@gmail.com","url":"http://www.bramstein.com"},"license":"BSD","devDependencies":{"eslint":"^8.20.0","eslint-config-prettier":"^8.5.0","eslint-config-standard":"^17.0.0","eslint-plugin-import":"^2.26.0","eslint-plugin-n":"^15.2.4","eslint-plugin-promise":"^6.0.0","microbundle":"^0.15.1","mocha":"=10.0.0","prettier":"2.7.1","unexpected":"=13.0.0"},"gitHead":"4bfd9ace87515a5bf87ee166563c77b934e59b44","bugs":{"url":"https://github.com/bramstein/css-font-parser/issues"},"homepage":"https://github.com/bramstein/css-font-parser#readme","_id":"css-font-parser@2.0.0","_nodeVersion":"16.16.0","_npmVersion":"8.11.0","dist":{"shasum":"3cc15cd7a44614b4e10a0ae89b071198bb82a796","size":9379,"noattachment":false,"key":"/css-font-parser/-/css-font-parser-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/css-font-parser/download/css-font-parser-2.0.0.tgz"},"_npmUser":{"name":"bramstein","email":"b.l.stein@gmail.com"},"maintainers":[{"name":"bramstein","email":"b.l.stein@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/css-font-parser_2.0.0_1660899297382_0.1318807171741223"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-08-19T09:41:10.175Z","publish_time":1660899297583,"_cnpm_publish_time":1660899297583},"1.0.1":{"name":"css-font-parser","version":"1.0.1","description":"A parser for the CSS font value","main":"src/parser.js","directories":{"test":"test"},"type":"module","scripts":{"test":"mocha --reporter spec && npm run lint","lint":"eslint src/*.js test/*.js"},"repository":{"type":"git","url":"git+https://github.com/bramstein/css-font-parser.git"},"keywords":["css","font","family","parser"],"author":{"name":"Bram Stein","email":"b.l.stein@gmail.com","url":"http://www.bramstein.com"},"license":"BSD","devDependencies":{"eslint":"^8.20.0","eslint-config-prettier":"^8.5.0","eslint-config-standard":"^17.0.0","eslint-plugin-import":"^2.26.0","eslint-plugin-n":"^15.2.4","eslint-plugin-promise":"^6.0.0","mocha":"=10.0.0","prettier":"2.7.1","unexpected":"=13.0.0"},"gitHead":"8f1fff890f31dbe6bd72bd6aeab04ce6c32e4395","bugs":{"url":"https://github.com/bramstein/css-font-parser/issues"},"homepage":"https://github.com/bramstein/css-font-parser#readme","_id":"css-font-parser@1.0.1","_nodeVersion":"16.16.0","_npmVersion":"8.11.0","dist":{"shasum":"a0c5787fd06c9ec686e3df2d1553b8ee4a992d61","size":4434,"noattachment":false,"key":"/css-font-parser/-/css-font-parser-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/css-font-parser/download/css-font-parser-1.0.1.tgz"},"_npmUser":{"name":"bramstein","email":"b.l.stein@gmail.com"},"maintainers":[{"name":"bramstein","email":"b.l.stein@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/css-font-parser_1.0.1_1660763025403_0.7033174075168389"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-08-17T19:10:17.604Z","publish_time":1660763025631,"_cnpm_publish_time":1660763025631},"0.3.0":{"name":"css-font-parser","version":"0.3.0","description":"A parser for the CSS font value","main":"src/parser.js","directories":{"test":"test"},"scripts":{"test":"mocha --reporter spec"},"repository":{"type":"git","url":"git+https://github.com/bramstein/css-font-parser.git"},"keywords":["css","font","parser"],"author":{"name":"Bram Stein","email":"b.l.stein@gmail.com","url":"http://www.bramstein.com"},"license":"BSD","devDependencies":{"mocha":"=1.12.0","expect.js":"=0.2.0","closure-compiler":"=0.2.0"},"testling":{"browsers":["iexplore/6.0","iexplore/7.0","iexplore/8.0","iexplore/9.0","firefox/3.6","firefox/19.0","chrome/25","opera/12.0","opera/next","safari/5.1","safari/6.0","iphone/6.0","ipad/6.0","android-browser/4.2"],"harness":"mocha","html":"test/tap.html"},"gitHead":"c7e8de8caaac2940eaf7da5001eb21393cf1560a","bugs":{"url":"https://github.com/bramstein/css-font-parser/issues"},"homepage":"https://github.com/bramstein/css-font-parser#readme","_id":"css-font-parser@0.3.0","_npmVersion":"6.4.1","_nodeVersion":"10.14.1","_npmUser":{"name":"bramstein","email":"b.l.stein@gmail.com"},"dist":{"shasum":"0b83411ba5e1aeca5df8191e470ecd72767c972e","size":4774,"noattachment":false,"key":"/css-font-parser/-/css-font-parser-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/css-font-parser/download/css-font-parser-0.3.0.tgz"},"maintainers":[{"name":"bramstein","email":"b.l.stein@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/css-font-parser_0.3.0_1581970028168_0.19270409924799292"},"_hasShrinkwrap":false,"publish_time":1581970028331,"_cnpm_publish_time":1581970028331,"_cnpmcore_publish_time":"2021-12-16T18:36:11.953Z"},"0.2.3":{"name":"css-font-parser","version":"0.2.3","description":"A parser for the CSS font value","main":"src/parser.js","directories":{"test":"test"},"scripts":{"test":"mocha --reporter spec"},"repository":{"type":"git","url":"git+https://github.com/bramstein/css-font-parser.git"},"keywords":["css","font","parser"],"author":{"name":"Bram Stein","email":"b.l.stein@gmail.com","url":"http://www.bramstein.com"},"license":"BSD","devDependencies":{"mocha":"=1.12.0","expect.js":"=0.2.0","closure-compiler":"=0.2.0"},"testling":{"browsers":["iexplore/6.0","iexplore/7.0","iexplore/8.0","iexplore/9.0","firefox/3.6","firefox/19.0","chrome/25","opera/12.0","opera/next","safari/5.1","safari/6.0","iphone/6.0","ipad/6.0","android-browser/4.2"],"harness":"mocha","html":"test/tap.html"},"gitHead":"f76f0c4c60454c1980ad78d8f01434ff165c494f","bugs":{"url":"https://github.com/bramstein/css-font-parser/issues"},"homepage":"https://github.com/bramstein/css-font-parser#readme","_id":"css-font-parser@0.2.3","_npmVersion":"5.0.3","_nodeVersion":"8.1.3","_npmUser":{"name":"bramstein","email":"b.l.stein@gmail.com"},"dist":{"shasum":"9a391d2e47086be5401e47274e687ec06e238c0e","size":4480,"noattachment":false,"key":"/css-font-parser/-/css-font-parser-0.2.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/css-font-parser/download/css-font-parser-0.2.3.tgz"},"maintainers":[{"name":"bramstein","email":"b.l.stein@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/css-font-parser-0.2.3.tgz_1505383584915_0.11859670141711831"},"publish_time":1505383585279,"_hasShrinkwrap":false,"_cnpm_publish_time":1505383585279,"_cnpmcore_publish_time":"2021-12-16T18:36:12.156Z"},"0.2.2":{"name":"css-font-parser","version":"0.2.2","description":"A parser for the CSS font value","main":"lib/parser.js","directories":{"test":"test"},"scripts":{"test":"mocha --reporter spec"},"repository":{"type":"git","url":"git+https://github.com/bramstein/css-font-parser.git"},"keywords":["css","font","parser"],"author":{"name":"Bram Stein","email":"b.l.stein@gmail.com","url":"http://www.bramstein.com"},"license":"BSD","devDependencies":{"mocha":"=1.12.0","expect.js":"=0.2.0","closure-compiler":"=0.2.0"},"testling":{"browsers":["iexplore/6.0","iexplore/7.0","iexplore/8.0","iexplore/9.0","firefox/3.6","firefox/19.0","chrome/25","opera/12.0","opera/next","safari/5.1","safari/6.0","iphone/6.0","ipad/6.0","android-browser/4.2"],"harness":"mocha","html":"test/tap.html"},"gitHead":"6bbad017263ca6e8ecf0aeb593f5b68d34c73ed0","bugs":{"url":"https://github.com/bramstein/css-font-parser/issues"},"homepage":"https://github.com/bramstein/css-font-parser#readme","_id":"css-font-parser@0.2.2","_npmVersion":"5.0.3","_nodeVersion":"8.1.3","_npmUser":{"name":"bramstein","email":"b.l.stein@gmail.com"},"dist":{"shasum":"a42e91b836c73e6dac28963a339fd069ebdfe719","size":4475,"noattachment":false,"key":"/css-font-parser/-/css-font-parser-0.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/css-font-parser/download/css-font-parser-0.2.2.tgz"},"maintainers":[{"name":"bramstein","email":"b.l.stein@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/css-font-parser-0.2.2.tgz_1504764257539_0.6760127576999366"},"publish_time":1504764258512,"_hasShrinkwrap":false,"_cnpm_publish_time":1504764258512,"_cnpmcore_publish_time":"2021-12-16T18:36:12.381Z"},"0.2.1":{"name":"css-font-parser","version":"0.2.1","description":"A parser for the CSS font value","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha --reporter spec"},"repository":{"type":"git","url":"git+https://github.com/bramstein/css-font-parser.git"},"keywords":["css","font","parser"],"author":{"name":"Bram Stein","email":"b.l.stein@gmail.com","url":"http://www.bramstein.com"},"license":"BSD","dependencies":{"requirejs":"=2.1.8"},"devDependencies":{"mocha":"=1.12.0","expect.js":"=0.2.0","closure-compiler":"=0.2.0"},"testling":{"browsers":["iexplore/6.0","iexplore/7.0","iexplore/8.0","iexplore/9.0","firefox/3.6","firefox/19.0","chrome/25","opera/12.0","opera/next","safari/5.1","safari/6.0","iphone/6.0","ipad/6.0","android-browser/4.2"],"harness":"mocha","html":"test/tap.html"},"gitHead":"af9aa5ef7212c7e879d5e1a8baf49d6667e4aa08","bugs":{"url":"https://github.com/bramstein/css-font-parser/issues"},"homepage":"https://github.com/bramstein/css-font-parser#readme","_id":"css-font-parser@0.2.1","_shasum":"ccd5d87fdf144adbcd9871535ec7287dd530ae53","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"bramstein","email":"b.l.stein@gmail.com"},"maintainers":[{"name":"bramstein","email":"b.l.stein@gmail.com"}],"dist":{"shasum":"ccd5d87fdf144adbcd9871535ec7287dd530ae53","size":4402,"noattachment":false,"key":"/css-font-parser/-/css-font-parser-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/css-font-parser/download/css-font-parser-0.2.1.tgz"},"publish_time":1447769683689,"_hasShrinkwrap":false,"_cnpm_publish_time":1447769683689,"_cnpmcore_publish_time":"2021-12-16T18:36:12.612Z"},"0.2.0":{"name":"css-font-parser","version":"0.2.0","description":"A parser for the CSS font value","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha --reporter spec"},"repository":{"type":"git","url":"https://github.com/bramstein/css-font-parser.git"},"keywords":["css","font","parser"],"author":{"name":"Bram Stein","email":"b.l.stein@gmail.com","url":"http://www.bramstein.com"},"license":"BSD","dependencies":{"requirejs":"=2.1.8"},"devDependencies":{"mocha":"=1.12.0","expect.js":"=0.2.0","closure-compiler":"=0.2.0"},"testling":{"browsers":["iexplore/6.0","iexplore/7.0","iexplore/8.0","iexplore/9.0","firefox/3.6","firefox/19.0","chrome/25","opera/12.0","opera/next","safari/5.1","safari/6.0","iphone/6.0","ipad/6.0","android-browser/4.2"],"harness":"mocha","html":"test/tap.html"},"readmeFilename":"README.md","_id":"css-font-parser@0.2.0","dist":{"shasum":"f437619136efbf28df89f7c82ef49bdd89e9333b","size":3921,"noattachment":false,"key":"/css-font-parser/-/css-font-parser-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/css-font-parser/download/css-font-parser-0.2.0.tgz"},"_from":".","_npmVersion":"1.2.2","_npmUser":{"name":"bramstein","email":"b.l.stein@gmail.com"},"maintainers":[{"name":"bramstein","email":"b.l.stein@gmail.com"}],"publish_time":1374082471783,"_hasShrinkwrap":false,"_cnpm_publish_time":1374082471783,"_cnpmcore_publish_time":"2021-12-16T18:36:12.812Z"}},"readme":"## CSS font value parser\n\nA simple parser for parsing CSS font values in JavaScript. It has a parser for the font shorthand syntax and the font-family syntax.\n\n## Installation\n\nYou can install the parser using:\n\n```bash\nnpm install css-font-parser\n```\n\n## Usage\n\n```javascript\nimport { parseFont, parseFontFamily } from 'css-font-parser';\n\nparseFont('15px sans-serif');\n\n> {\n>   'font-family': ['sans-serif'],\n>   'font-size': '15px'\n> }\n\nparseFont('15px/18px \"Neue Helvetica\", Helvetica, sans-serif');\n\n> {\n>   'font-family': ['Neue Helvetica', 'Helvetica', 'sans-serif'],\n>   'font-size': '15px',\n>   'line-height': '18px'\n> }\n\nparseFontFamily('\"Neue Helvetica\", Helvetica, system-ui, sans-serif');\n\n> ['Neue Helvetica', 'Helvetica', 'system-ui', 'sans-serif']\n```\n\n## License\n\nLicensed under the three-clause BSD license.\n","_attachments":{},"homepage":"https://github.com/bramstein/css-font-parser#readme","bugs":{"url":"https://github.com/bramstein/css-font-parser/issues"},"license":"BSD"}