{"_id":"parse-bmfont-ascii","_rev":"17-14c5d99a1bc925c9bb442cdfadd3ca40","name":"parse-bmfont-ascii","description":"parses ASCII BMFont files to a JavaScript object","dist-tags":{"latest":"1.0.6"},"versions":{"1.0.0":{"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":"https://registry.npmjs.org/parse-bmfont-ascii/-/parse-bmfont-ascii-1.0.0.tgz","integrity":"sha512-cNLA0ZgeXIxQR/MCygY2EEVypoMLK8AjK0iCRsxRotpJy9cbCZkIdxTmkK4PHBi6b/kdgHNNnc555rnYQGw/eg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDySAFSex/zkg8GNQ52Hj2hqgvsys+yp8w2/Y1hr25cWgIhAIa3Vus8SvhgYfvQTkUzv5/fCIetL4AHvMkX0dQFCBJd"}]}},"1.0.1":{"name":"parse-bmfont-ascii","version":"1.0.1","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/mattdesl/parse-bmfont-ascii.git"},"homepage":"https://github.com/mattdesl/parse-bmfont-ascii","bugs":{"url":"https://github.com/mattdesl/parse-bmfont-ascii/issues"},"gitHead":"a230b71cb54de99cd0b4fa0543ccb8d2725f71b6","_id":"parse-bmfont-ascii@1.0.1","_shasum":"87c83e38244caf924b4d2fbf46d0c550e887c29b","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"mattdesl","email":"dave.des@gmail.com"},"maintainers":[{"name":"mattdesl","email":"dave.des@gmail.com"}],"dist":{"shasum":"87c83e38244caf924b4d2fbf46d0c550e887c29b","tarball":"https://registry.npmjs.org/parse-bmfont-ascii/-/parse-bmfont-ascii-1.0.1.tgz","integrity":"sha512-h1z6Mw7zzUGne01uEjiJvbFfwjRx7u9wHvAiBT8/fBtUhgRpInDqP9UR7ss0uJxfIHZ8HL4qNqJhw1pbCiM+xA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAY38JnGPZbSyHZ494mrZiu4K+sCmaHkpoCc8rkNoFZoAiB3TgLgXWCbrm0ySaSGdNjyia/WjdSO6+thqm6T+DjtGA=="}]}},"1.0.2":{"name":"parse-bmfont-ascii","version":"1.0.2","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","parse","convert","bmfont","bm","bitmap","font","bitmaps","angel","angelcode","code","text","gl","sprite","sprites","stackgl"],"repository":{"type":"git","url":"git://github.com/mattdesl/parse-bmfont-ascii.git"},"homepage":"https://github.com/mattdesl/parse-bmfont-ascii","bugs":{"url":"https://github.com/mattdesl/parse-bmfont-ascii/issues"},"gitHead":"1e49ba4f6421c19f1a1aee016490c8c5b2add2bf","_id":"parse-bmfont-ascii@1.0.2","_shasum":"dc8ed1daedbbb39c84497ba9442787b64809de53","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"mattdesl","email":"dave.des@gmail.com"},"maintainers":[{"name":"mattdesl","email":"dave.des@gmail.com"}],"dist":{"shasum":"dc8ed1daedbbb39c84497ba9442787b64809de53","tarball":"https://registry.npmjs.org/parse-bmfont-ascii/-/parse-bmfont-ascii-1.0.2.tgz","integrity":"sha512-6Qpn8x/ShdNEwKzT+29KrAlD5VSQC2SZo9aM6UAZDx8I7sSQ/O0lSQTFLufskfYKqRl+8HKYk4qFDvwPXvpHcg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEkwyk/5w0Aa6k/YYUAgrzNt9Z9eXhQO9MkRVXMBg73+AiAqa+wc+gvIln/G5PNLWV64XAjUr3O5u+cmQ97JSX7+qA=="}]}},"1.0.3":{"name":"parse-bmfont-ascii","version":"1.0.3","description":"parses ASCII BMFont files 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","parse","convert","bmfont","bm","bitmap","font","bitmaps","angel","angelcode","code","text","gl","sprite","sprites","stackgl"],"repository":{"type":"git","url":"git://github.com/mattdesl/parse-bmfont-ascii.git"},"homepage":"https://github.com/mattdesl/parse-bmfont-ascii","bugs":{"url":"https://github.com/mattdesl/parse-bmfont-ascii/issues"},"gitHead":"e26dcc84ad34d8fd8644125d1293e3cfa2ab17bd","_id":"parse-bmfont-ascii@1.0.3","_shasum":"00fd22a7a6c7dac52bb8fc97a5a85a94cdcd20b6","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"mattdesl","email":"dave.des@gmail.com"},"maintainers":[{"name":"mattdesl","email":"dave.des@gmail.com"}],"dist":{"shasum":"00fd22a7a6c7dac52bb8fc97a5a85a94cdcd20b6","tarball":"https://registry.npmjs.org/parse-bmfont-ascii/-/parse-bmfont-ascii-1.0.3.tgz","integrity":"sha512-lw1krFkMs4STifV1e5IizSPrmItawzYXvwrkMcGwDav/YrhDO8W5iYA3vLjfBEn/zgHOH4uW8scn/gm8xNUb7g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGSFEDxwraDzGcmIWJThhqUEjwoj+1HYWG5qhStuPCw+AiAxo+cKtmj1t22e4bFehVJvkBj84wkZZZh/0Wo4WNHR7A=="}]}},"1.0.4":{"name":"parse-bmfont-ascii","version":"1.0.4","description":"parses ASCII BMFont files 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","parse","convert","bmfont","bm","bitmap","font","bitmaps","angel","angelcode","code","text","gl","sprite","sprites","stackgl"],"repository":{"type":"git","url":"git://github.com/mattdesl/parse-bmfont-ascii.git"},"homepage":"https://github.com/mattdesl/parse-bmfont-ascii","bugs":{"url":"https://github.com/mattdesl/parse-bmfont-ascii/issues"},"gitHead":"d4c0ca418ba8b28a497a4ac2f046f4e6e8bf72a7","_id":"parse-bmfont-ascii@1.0.4","_shasum":"e42a35f58242d582a928312a8b135a0e9958f568","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"mattdesl","email":"dave.des@gmail.com"},"maintainers":[{"name":"mattdesl","email":"dave.des@gmail.com"}],"dist":{"shasum":"e42a35f58242d582a928312a8b135a0e9958f568","tarball":"https://registry.npmjs.org/parse-bmfont-ascii/-/parse-bmfont-ascii-1.0.4.tgz","integrity":"sha512-bAbTEJhmlw3a6Xwgr7iujyIOksjQfroMQ6kVNhTRSS7C5IVqXtFQ6MSAVe+SnkkwSVbjRvTHLyGBhxAWp8yCPQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHz/58zyEZh6T/vEPiAi6aiCOT41c//mtVy7qnbaiTEbAiEAlOi2w5ajp14hAXhyz7K9nOVl6zVLYFxsY4sDM8Xr/Wc="}]}},"1.0.5":{"name":"parse-bmfont-ascii","version":"1.0.5","description":"parses ASCII BMFont files 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","parse","convert","bmfont","bm","bitmap","font","bitmaps","angel","angelcode","code","text","gl","sprite","sprites","stackgl"],"repository":{"type":"git","url":"git://github.com/mattdesl/parse-bmfont-ascii.git"},"homepage":"https://github.com/mattdesl/parse-bmfont-ascii","bugs":{"url":"https://github.com/mattdesl/parse-bmfont-ascii/issues"},"gitHead":"0821cff389d466c44c381bc3323983b8ffc2b0db","_id":"parse-bmfont-ascii@1.0.5","_shasum":"6c0ae6fc483caa657b3d203d427bfa2bcd2d6782","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"mattdesl","email":"dave.des@gmail.com"},"maintainers":[{"name":"mattdesl","email":"dave.des@gmail.com"}],"dist":{"shasum":"6c0ae6fc483caa657b3d203d427bfa2bcd2d6782","tarball":"https://registry.npmjs.org/parse-bmfont-ascii/-/parse-bmfont-ascii-1.0.5.tgz","integrity":"sha512-c8/LZlmMLWpTCYFFhq/tihXtIMI1TV0OZ/vDBCx/1x/77SCUvB0I6SazczM3c/kYTJi/pW4NtfWKPnarEWEfHg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICmAD4VzQn3qYet+d62+SAKdjVq6SBAqVC8fU83JWNCHAiEArO0maWOw8wFcdFaBNIPr5cDrTzcOjxnU01bUIm5Nbv8="}]}},"1.0.6":{"name":"parse-bmfont-ascii","version":"1.0.6","description":"parses ASCII BMFont files 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","parse","convert","bmfont","bm","bitmap","font","bitmaps","angel","angelcode","code","text","gl","sprite","sprites","stackgl"],"repository":{"type":"git","url":"git://github.com/mattdesl/parse-bmfont-ascii.git"},"homepage":"https://github.com/mattdesl/parse-bmfont-ascii","bugs":{"url":"https://github.com/mattdesl/parse-bmfont-ascii/issues"},"gitHead":"5f22b037ae7460f629dd681db23cd9b543a76b06","_id":"parse-bmfont-ascii@1.0.6","_shasum":"11ac3c3ff58f7c2020ab22769079108d4dfa0285","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"mattdesl","email":"dave.des@gmail.com"},"maintainers":[{"name":"mattdesl","email":"dave.des@gmail.com"}],"dist":{"shasum":"11ac3c3ff58f7c2020ab22769079108d4dfa0285","tarball":"https://registry.npmjs.org/parse-bmfont-ascii/-/parse-bmfont-ascii-1.0.6.tgz","integrity":"sha512-U4RrVsUFCleIOBsIGYOMKjn9PavsGOXxbvYGtMOEfnId0SVNsgehXh1DxUdVPLoxd5mvcEtvmKs2Mmf0Mpa1ZA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF0BzcUEoXnFTGBOfOYj0fkXhlxOyiXvsVMziM+WT1+qAiAMoiOVaIX+RYZossQ4qg5+588j8DqziCW6Mz3GsS+yVg=="}]}}},"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","maintainers":[{"name":"mattdesl","email":"dave.des@gmail.com"}],"time":{"modified":"2022-06-23T10:28:06.571Z","created":"2015-03-10T19:53:10.372Z","1.0.0":"2015-03-10T19:53:10.372Z","1.0.1":"2015-03-10T19:54:37.017Z","1.0.2":"2015-03-10T19:56:13.597Z","1.0.3":"2015-03-10T20:20:11.530Z","1.0.4":"2015-03-13T16:25:13.014Z","1.0.5":"2015-03-13T20:07:38.070Z","1.0.6":"2015-03-14T19:27:26.188Z"},"homepage":"https://github.com/mattdesl/parse-bmfont-ascii","keywords":["ascii","parse","convert","bmfont","bm","bitmap","font","bitmaps","angel","angelcode","code","text","gl","sprite","sprites","stackgl"],"repository":{"type":"git","url":"git://github.com/mattdesl/parse-bmfont-ascii.git"},"author":{"name":"Matt DesLauriers","email":"dave.des@gmail.com","url":"https://github.com/mattdesl"},"bugs":{"url":"https://github.com/mattdesl/parse-bmfont-ascii/issues"},"license":"MIT","readmeFilename":"README.md","users":{"mojaray2k":true}}