{"name":"parse-bmfont-ascii","version":"1.0.0","description":"parses BMFont files (text) to a JavaScript object","main":"index.js","license":"MIT","author":{"name":"Matt DesLauriers","email":"dave.des@gmail.com","url":"https://github.com/mattdesl"},"dependencies":{},"devDependencies":{"tape":"^3.5.0"},"scripts":{"test":"node test/test.js"},"keywords":["ascii","bmfont","bm","bitmap","font","bitmaps","angel","angelcode","code","text","gl","sprite","sprites","stackgl"],"repository":{"type":"git","url":"git://github.com/Jam3/parse-bmfont-ascii.git"},"homepage":"https://github.com/Jam3/parse-bmfont-ascii","bugs":{"url":"https://github.com/Jam3/parse-bmfont-ascii/issues"},"gitHead":"86a403556ec6ac437e825bb68736ef9834a1c1df","_id":"parse-bmfont-ascii@1.0.0","_shasum":"5cd35925c531af4c2d59bdf7b9d84d461e4724ab","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"mattdesl","email":"dave.des@gmail.com"},"maintainers":[{"name":"mattdesl","email":"dave.des@gmail.com"}],"dist":{"shasum":"5cd35925c531af4c2d59bdf7b9d84d461e4724ab","tarball":"http://registry-npm.ywwl.com/parse-bmfont-ascii/download/parse-bmfont-ascii-1.0.0.tgz","integrity":"sha512-cNLA0ZgeXIxQR/MCygY2EEVypoMLK8AjK0iCRsxRotpJy9cbCZkIdxTmkK4PHBi6b/kdgHNNnc555rnYQGw/eg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDySAFSex/zkg8GNQ52Hj2hqgvsys+yp8w2/Y1hr25cWgIhAIa3Vus8SvhgYfvQTkUzv5/fCIetL4AHvMkX0dQFCBJd"}],"size":1511,"noattachment":false,"key":"/parse-bmfont-ascii/-/parse-bmfont-ascii-1.0.0.tgz"},"directories":{},"readme":"# parse-bmfont-ascii\n\n[![stable](http://badges.github.io/stability-badges/dist/stable.svg)](http://github.com/badges/stability-badges)\n\nParses ASCII (text) [BMFont files](http://www.angelcode.com/products/bmfont/).\n\nTakes a string or Buffer:\n\n```js\nvar fs = require('fs')\nvar parse = require('parse-bmfont-xml')\n\nfs.readFileSync(__dirname+'/Arial.fnt', function(err, data) {\n  var result = parse(data)\n  console.log(result.info.face)   // \"Arial\"\n  console.log(result.pages)       // [ 'sheet0.png' ]\n  console.log(result.chars)       // [ ... char data ... ]\n  console.log(result.kernings)    // [ ... kernings data ... ]\n})\n```\n\nThe spec for the returned JSON object is [here](https://github.com/mattdesl/bmfont2json/wiki/JsonSpec). The input data should match the spec, see [test/Nexa Light-32.fnt](test/Nexa Light-32.fnt) for an example.\n\n## See Also\n\nSee [text-modules](https://github.com/mattdesl/text-modules) for related modules.\n\n## Usage\n\n[![NPM](https://nodei.co/npm/parse-bmfont-ascii.png)](https://www.npmjs.com/package/parse-bmfont-ascii)\n\n#### `result = parse(data)`\n\nParses `data`, a string or Buffer that represents ASCII (text) data of an AngelCode BMFont file. The returned `result` object looks like this:\n\n```js\n{\n     pages: [\n         \"sheet_0.png\", \n         \"sheet_1.png\"\n     ],\n     chars: [\n         { chnl, height, id, page, width, x, y, xoffset, yoffset, xadvance },\n         ...\n     ],\n     info: { ... },\n     common: { ... },\n     kernings: [\n         { first, second, amount }\n     ]\n}\n```\n\n## License\n\nMIT, see [LICENSE.md](http://github.com/mattdesl/parse-bmfont-ascii/blob/master/LICENSE.md) for details.\n","publish_time":1426017190372,"_cnpm_publish_time":1426017190372,"dist-tags":{"latest":"1.0.6"}}