{"versions":{"2.0.0":{"name":"fontverter","version":"2.0.0","description":"Convert font buffers between TTF/WOFF/WOFF2","main":"index.js","dependencies":{"wawoff2":"^2.0.0","woff2sfnt-sfnt2woff":"^1.0.0"},"devDependencies":{"coveralls":"^3.0.2","eslint":"^7.0.0","eslint-config-prettier":"^7.0.0","eslint-config-standard":"^16.0.0","eslint-plugin-import":"^2.17.3","eslint-plugin-mocha":"^8.0.0","eslint-plugin-node":"^11.0.0","eslint-plugin-promise":"^4.0.1","eslint-plugin-standard":"^5.0.0","mocha":"^7.0.0","nyc":"^15.0.0","offline-github-changelog":"^2.0.0","prettier":"~2.2.0","unexpected":"^12.0.0"},"scripts":{"lint":"eslint . && prettier --check '**/*.{js,json,md}'","test":"mocha","test:ci":"npm run coverage","coverage":"nyc --reporter=lcov --reporter=text --all -- npm test && echo google-chrome coverage/lcov-report/index.html","preversion":"offline-github-changelog --next=${npm_package_version} > CHANGELOG.md && git add CHANGELOG.md"},"repository":{"type":"git","url":"git+https://github.com/papandreou/fontverter.git"},"keywords":["font","convert","transcode","TTF","WOFF","WOFF2","wasm"],"author":{"name":"Andreas Lind","email":"andreaslindpetersen@gmail.com"},"license":"BSD-3-Clause","bugs":{"url":"https://github.com/papandreou/fontverter/issues"},"homepage":"https://github.com/papandreou/fontverter#readme","gitHead":"fd99310e4b839b64785d05eb8b2d63d532374903","_id":"fontverter@2.0.0","_nodeVersion":"14.16.1","_npmVersion":"6.14.12","dist":{"shasum":"6d9e05f963cd402d45dfcae27c83f551ba88c2c7","size":42975,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/fontverter/-/fontverter-2.0.0.tgz","integrity":"sha512-DFVX5hvXuhi1Jven1tbpebYTCT9XYnvx6/Z+HFUPb7ZRMCW+pj2clU9VMhoTPgWKPhAs7JJDSk3CW1jNUvKCZQ=="},"_npmUser":{"name":"anonymous","email":"andreaslindpetersen@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"andreaslindpetersen@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fontverter_2.0.0_1618870439487_0.5013355372726458"},"_hasShrinkwrap":false,"publish_time":1618870439633,"_cnpm_publish_time":1618870439633,"_cnpmcore_publish_time":"2021-12-16T19:50:24.909Z","contributors":[]},"1.0.1":{"name":"fontverter","version":"1.0.1","description":"Convert font buffers between TTF/WOFF/WOFF2","main":"index.js","dependencies":{"wawoff2":"^2.0.0","woff2sfnt-sfnt2woff":"^1.0.0"},"devDependencies":{"coveralls":"^3.0.2","eslint":"^7.0.0","eslint-config-prettier":"^7.0.0","eslint-config-standard":"^16.0.0","eslint-plugin-import":"^2.17.3","eslint-plugin-mocha":"^8.0.0","eslint-plugin-node":"^11.0.0","eslint-plugin-promise":"^4.0.1","eslint-plugin-standard":"^5.0.0","mocha":"^7.0.0","nyc":"^15.0.0","offline-github-changelog":"^2.0.0","prettier":"~2.2.0","unexpected":"^12.0.0"},"scripts":{"lint":"eslint . && prettier --check '**/*.{js,json,md}'","test":"mocha","test:ci":"npm run coverage","coverage":"nyc --reporter=lcov --reporter=text --all -- npm test && echo google-chrome coverage/lcov-report/index.html","preversion":"offline-github-changelog --next=${npm_package_version} > CHANGELOG.md && git add CHANGELOG.md"},"repository":{"type":"git","url":"git+https://github.com/papandreou/fontverter.git"},"keywords":["font","convert","transcode","TTF","WOFF","WOFF2","wasm"],"author":{"name":"Andreas Lind","email":"andreaslindpetersen@gmail.com"},"license":"BSD-3-Clause","bugs":{"url":"https://github.com/papandreou/fontverter/issues"},"homepage":"https://github.com/papandreou/fontverter#readme","gitHead":"2332d27efac388598fdf6afe7929e2b3bc296249","_id":"fontverter@1.0.1","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"shasum":"f48b9a3db4217ee04515c9821906263fe021c7fe","size":42798,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/fontverter/-/fontverter-1.0.1.tgz","integrity":"sha512-+Mt6jyy90ZXZqTq1XFb5tZfbzuiUWyPnmZ0SKRW5WM2m6k9UUTz0PKuJsidCOZnVzGxY+rBiaf2w837AHFWTXw=="},"_npmUser":{"name":"anonymous","email":"andreaslindpetersen@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"andreaslindpetersen@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fontverter_1.0.1_1617555788856_0.781930190795779"},"_hasShrinkwrap":false,"publish_time":1617555788996,"_cnpm_publish_time":1617555788996,"_cnpmcore_publish_time":"2021-12-16T19:50:25.215Z","contributors":[]},"1.0.0":{"name":"fontverter","version":"1.0.0","description":"Convert font buffers between TTF/WOFF/WOFF2","main":"index.js","dependencies":{"wawoff2":"^1.0.2","woff2sfnt-sfnt2woff":"^1.0.0"},"devDependencies":{"coveralls":"^3.0.2","eslint":"^7.0.0","eslint-config-prettier":"^7.0.0","eslint-config-standard":"^16.0.0","eslint-plugin-import":"^2.17.3","eslint-plugin-mocha":"^8.0.0","eslint-plugin-node":"^11.0.0","eslint-plugin-promise":"^4.0.1","eslint-plugin-standard":"^5.0.0","mocha":"^7.0.0","nyc":"^15.0.0","offline-github-changelog":"^2.0.0","prettier":"~2.2.0","unexpected":"^12.0.0"},"scripts":{"lint":"eslint . && prettier --check '**/*.{js,json,md}'","test":"mocha","test:ci":"npm run coverage","coverage":"nyc --reporter=lcov --reporter=text --all -- npm test && echo google-chrome coverage/lcov-report/index.html","preversion":"offline-github-changelog --next=${npm_package_version} > CHANGELOG.md && git add CHANGELOG.md"},"repository":{"type":"git","url":"git+https://github.com/papandreou/fontverter.git"},"keywords":["font","convert","transcode","TTF","WOFF","WOFF2","wasm"],"author":{"name":"Andreas Lind","email":"andreaslindpetersen@gmail.com"},"license":"BSD-3-Clause","bugs":{"url":"https://github.com/papandreou/fontverter/issues"},"homepage":"https://github.com/papandreou/fontverter#readme","gitHead":"0b36a3b5325bdf7ab5cf8da43a9f9c1e9858adbc","_id":"fontverter@1.0.0","_nodeVersion":"14.11.0","_npmVersion":"6.14.8","dist":{"shasum":"64d3d947c8492ffc97fc4801300d535f989bc0e5","size":41647,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/fontverter/-/fontverter-1.0.0.tgz","integrity":"sha512-W/PzAhMjG3QNwIzT5nlVpxyCTc7xFPjxWIHsWWhG7OrA845UTnvDG6yb5gdymXiF2B9fxllE5uiQzSyfdE8d0w=="},"_npmUser":{"name":"anonymous","email":"andreaslindpetersen@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"andreaslindpetersen@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fontverter_1.0.0_1612615369888_0.7853135188085072"},"_hasShrinkwrap":false,"publish_time":1612615370120,"_cnpm_publish_time":1612615370120,"_cnpmcore_publish_time":"2021-12-16T19:50:25.467Z","contributors":[]},"2.1.0":{"_id":"fontverter@2.1.0","bugs":{"url":"https://github.com/papandreou/fontverter/issues"},"dist":{"shasum":"d59b738f31773742c8446c8b4c69b73c7bc4704f","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/fontverter/-/fontverter-2.1.0.tgz","fileCount":16,"integrity":"sha512-UhH5aYymXL1bM8V5CA88V+aUe5Ypxu810AYjepQpdk5mLb8SA3xs+HeSr/vUkhEBL9oLhWCx7ezuge6/mqpT0A==","signatures":[{"sig":"MEUCIFoeSEuwAngb3B5NHC4C6OT+7tPuAAQlVmeoh5TI/T+gAiEAvryTrsC1QqJI912wfNPKgCPYINUZJqCTFPPpeidiG8A=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCxaroXOmFjqHU37tqvyLdPv4IsUMuIyxRtt6Q4eEQHkQIhAJYTOa6/C29ypPXL1HsY05bDrrxtrialq1mIJAPGp0I2"}],"unpackedSize":55621,"size":43359},"main":"index.js","name":"fontverter","types":"index.d.ts","author":{"name":"Andreas Lind","email":"andreaslindpetersen@gmail.com"},"gitHead":"b731d4f54f6dd83a295b997a343723812ef2a549","license":"BSD-3-Clause","scripts":{"lint":"eslint . && prettier --check '**/*.{js,json,md}'","test":"mocha","test:ci":"npm run coverage","coverage":"nyc --reporter=lcov --reporter=text --all -- npm test && echo google-chrome coverage/lcov-report/index.html","preversion":"offline-github-changelog --next=${npm_package_version} > CHANGELOG.md && git add CHANGELOG.md"},"version":"2.1.0","_npmUser":{"name":"anonymous","email":"andreaslindpetersen@gmail.com"},"homepage":"https://github.com/papandreou/fontverter#readme","keywords":["font","convert","transcode","TTF","WOFF","WOFF2","wasm"],"repository":{"url":"git+https://github.com/papandreou/fontverter.git","type":"git"},"_npmVersion":"11.19.1","description":"Convert font buffers between TTF/WOFF/WOFF2","directories":{},"maintainers":[{"name":"anonymous","email":"andreaslindpetersen@gmail.com"}],"_nodeVersion":"24.22.1","dependencies":{"wawoff2":"^2.0.0","woff2sfnt-sfnt2woff":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^15.0.0","mocha":"^7.0.0","eslint":"^7.0.0","prettier":"~2.2.0","coveralls":"^3.0.2","unexpected":"^12.0.0","eslint-plugin-node":"^11.0.0","eslint-plugin-mocha":"^8.0.0","eslint-plugin-import":"^2.17.3","eslint-plugin-promise":"^4.0.1","eslint-config-prettier":"^7.0.0","eslint-config-standard":"^16.0.0","eslint-plugin-standard":"^5.0.0","offline-github-changelog":"^2.0.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/fontverter_2.1.0_1794646317446_0.7594747558550102"},"_cnpmcore_publish_time":"2026-11-14T08:51:57.558Z","publish_time":1794646317558,"_source_registry_name":"default","contributors":[]}},"dist-tags":{"latest":"2.1.0"},"name":"fontverter","time":{"created":"2022-01-27T11:00:19.581Z","modified":"2026-11-14T08:52:11.492Z","2.0.0":"2021-04-19T22:13:59.633Z","1.0.1":"2021-04-04T17:03:08.996Z","1.0.0":"2021-02-06T12:42:50.120Z","2.1.0":"2026-11-14T08:51:57.558Z"},"readme":"# fontverter\n\nConvert Buffer instances back and forth between SFNT (TrueType/OpenType), WOFF, and WOFF2 formats.\n\nUses the WebAssembly-based [`wawoff2`](https://github.com/fontello/wawoff2) and [`woff2sfnt-sfnt2woff`](https://github.com/odemiral/woff2sfnt-sfnt2woff) modules under the hood, so no binaries or native modules are involved.\n\n```js\nconst fontverter = require('fontverter');\n\nconst mySfntFontBuffer = Buffer.from(/*...*/);\nconst myWoffFontBuffer = await fontverter.convert(mySfntFontBuffer, 'woff');\nconst myWoff2FontBuffer = await fontverter.convert(myWoffFontBuffer, 'woff2');\n```\n\n## API\n\n#### `fontverter.convert(buffer, toFormat[, fromFormat]): Promise<Buffer>`\n\nAsynchronously convert a Buffer instance containing a font to another format.\n\n`toFormat` and `fromFormat` can be either `'sfnt'`, `'woff'`, or `'woff2'`.\n\nIf `fromFormat` is omitted, the source format will be detected based on the signature at the start of the buffer.\n\nFor backwards compatibility reasons, `'truetype'` is supported as an alias for `'sfnt'` in both `toFormat` and `fromFormat`.\n\nReturns a promise that is fulfilled with the converted font as a Buffer instance, or rejected with an error.\nIf `toFormat` is the same as the current format (as specified by `fromFormat` or detected), the original buffer instance will be returned without any conversion taking place.\n\n#### `fontverter.detectFormat(buffer): String`\n\nReturns the detected format of the font contained in `buffer` (either `'sfnt'`, `'woff'`, or `'woff2'`), or throws an exception if the format could not be detected.\n\n## Releases\n\n[Changelog](https://github.com/papandreou/fontverter/blob/master/CHANGELOG.md)\n\n## License\n\n3-clause BSD license -- see the `LICENSE` file for details.","users":{}}