UNPKG

woff2-encoder

Version:

A TypeScript library for handling WOFF2 encoding using WebAssembly

107 lines (106 loc) 2.96 kB
{ "name": "woff2-encoder", "version": "2.0.0", "description": "A TypeScript library for handling WOFF2 encoding using WebAssembly", "author": "Kyedo <hey@kyedo.dev> (https://github.com/itskyedo)", "license": "MIT", "homepage": "https://github.com/itskyedo/woff2-encoder#readme", "repository": { "type": "git", "url": "git+https://github.com/itskyedo/woff2-encoder.git" }, "bugs": { "url": "https://github.com/itskyedo/woff2-encoder/issues" }, "keywords": [ "woff2", "ttf", "otf", "sfnt", "compress", "convert", "encode", "esm" ], "scripts": { "prepare": "npx husky", "format": "prettier --write .", "lint": "eslint --quiet .", "typecheck": "tsc --noEmit", "codecheck": "prettier --check . && npm run lint && npm run typecheck", "test": "vitest --watch=false", "build:wasm": "docker build --platform linux/amd64 -t woff2-encoder . && docker run --platform linux/amd64 --rm -v $(pwd):/src/woff2-encoder -u $(id -u):$(id -g) -it woff2-encoder make -C /src/woff2-encoder", "build:decompressTypes": "tsc src/decompress.ts --declaration --emitDeclarationOnly --outDir dist", "build": "rimraf dist && parcel build --no-cache --no-source-maps && npm run build:decompressTypes" }, "type": "module", "source": "src/index.ts", "module": "dist/index.js", "types": "dist/index.d.ts", "targets": { "module": { "outputFormat": "esmodule", "isLibrary": true, "optimize": true, "sourceMap": false, "includeNodeModules": false }, "decompress": { "outputFormat": "esmodule", "isLibrary": true, "optimize": true, "sourceMap": false, "includeNodeModules": false, "source": "src/decompress.ts", "distDir": "dist" } }, "@parcel/resolver-default": { "packageExports": true }, "exports": { "./package.json": "./package.json", ".": "./dist/index.js", "./*": "./dist/*.js" }, "typesVersions": { "*": { "package.json": [ "package.json" ], "*": [ "dist/*" ] } }, "engines": { "node": ">= 18.x" }, "sideEffects": false, "files": [ "dist", "README.md", "LICENSE" ], "devDependencies": { "@commitlint/cli": "^17.7.2", "@commitlint/config-conventional": "^17.7.0", "@parcel/packager-ts": "^2.9.3", "@parcel/transformer-typescript-types": "^2.9.3", "@shopify/eslint-plugin": "^43.0.0", "@typescript-eslint/eslint-plugin": "^6.7.4", "@typescript-eslint/parser": "^6.7.4", "@vitest/coverage-v8": "^1.1.0", "eslint": "^8.50.0", "eslint-config-prettier": "^9.0.0", "eslint-plugin-jsdoc": "^46.8.2", "eslint-plugin-sort-export-all": "^1.4.1", "lint-staged": "^15.2.9", "parcel": "^2.9.3", "prettier": "^3.0.3", "prettier-plugin-jsdoc": "^1.0.4", "rimraf": "^5.0.5", "typescript": "^4.7.4", "vitest": "^1.1.0" } }