{ "name": "ttf2woff2", "version": "4.0.5", "description": "Convert TTF files to WOFF2 ones.", "main": "dist/index", "browser": "jssrc/index.js", "engines": { "node": ">=12" }, "directories": { "test": "tests" }, "metapak": { "configs": [ "main", "readme", "eslint", "babel", "jest" ], "data": { "files": "'src/**/*.js' 'jssrc/**/*.js'", "testsFiles": "'tests/**/*.test.js'", "distFiles": "'dist/**/*.js'", "ignore": [ "dist", "build" ], "bundleFiles": [ "dist", "src", "jssrc", "binding.gyp", "csrc" ] } }, "scripts": { "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s && git add CHANGELOG.md", "cli": "env NODE_ENV=${NODE_ENV:-cli}", "compile": "rimraf -f 'dist' && npm run compile:cjs && npm run compile:mjs", "compile:cjs": "babel --env-name=cjs --out-dir=dist --source-maps=true src", "compile:mjs": "babel --env-name=mjs --out-file-extension=.mjs --out-dir=dist --source-maps=true src", "configure": "node-gyp configure", "cover": "npm run jest -- --coverage", "coveralls": "npm run cover && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage", "cz": "env NODE_ENV=${NODE_ENV:-cli} git cz", "emcc": "miniquery -p \"targets.#.sources.#\" ./binding.gyp | grep -v \"csrc/addon.cc\" | xargs emcc --bind -o jssrc/ttf2woff2.js -O3 --memory-init-file 0 -s \"TOTAL_MEMORY=536870912\" -s \"ALLOW_MEMORY_GROWTH=1\" -s BINARYEN_ASYNC_COMPILATION=0 -s 'EXPORTED_RUNTIME_METHODS=[\"getValue\", \"writeArrayToMemory\"]' -s NODEJS_CATCH_EXIT=0 -s NODEJS_CATCH_REJECTION=0 --post-js jssrc/post.js csrc/fallback.cc", "emcc-debug": "miniquery -p \"targets.#.sources.#\" ./binding.gyp | grep -v \"csrc/addon.cc\" | xargs emcc --bind -o jssrc/ttf2woff2.js -s \"ALLOW_MEMORY_GROWTH=1\" -s \"ASSERTIONS=1\" -s BINARYEN_ASYNC_COMPILATION=0 -s 'EXPORTED_RUNTIME_METHODS=[\"getValue\", \"writeArrayToMemory\"]' -s NODEJS_CATCH_EXIT=0 -s NODEJS_CATCH_REJECTION=0 --post-js jssrc/post.js csrc/fallback.cc", "install": "((node-gyp configure && node-gyp build) > builderror.log) || (exit 0)", "jest": "NODE_ENV=test jest", "lint": "eslint 'src/**/*.js' 'jssrc/**/*.js'", "make": "node-gyp build", "metapak": "metapak", "precz": "npm t && npm run lint && npm run metapak -- -s && npm run compile", "prepare": "npm run compile", "prettier": "prettier --write 'src/**/*.js' 'jssrc/**/*.js'", "preversion": "npm run lint && npm test && npm t && npm run metapak -- -s && npm run compile", "test": "npm run jest", "version": "npm run changelog" }, "repository": { "type": "git", "url": "git@github.com:nfroidure/ttf2woff2.git" }, "keywords": [ "ttf", "woff2", "fonts" ], "author": { "name": "Nicolas Froidure", "email": "nicolas.froidure@insertafter.com", "url": "https://insertafter.com/en/index.html" }, "license": "MIT", "bugs": { "url": "https://github.com/nfroidure/ttf2woff2/issues" }, "homepage": "https://github.com/nfroidure/ttf2woff2", "dependencies": { "bindings": "^1.5.0", "bufferstreams": "^3.0.0", "nan": "^2.14.2", "node-gyp": "^9.0.0" }, "devDependencies": { "@babel/cli": "^7.12.1", "@babel/core": "^7.12.3", "@babel/preset-env": "^7.12.1", "commitizen": "^4.1.2", "conventional-changelog-cli": "^2.1.1", "coveralls": "^3.1.0", "cz-conventional-changelog": "^3.3.0", "eslint": "^8.14.0", "eslint-plugin-prettier": "^4.0.0", "jest": "^27.0.6", "metapak": "^3.1.10", "metapak-nfroidure": "11.0.4", "miniquery": "^1.1.2", "mocha": "^9.0.2", "mocha-lcov-reporter": "^1.3.0", "prettier": "^2.6.2" }, "bin": { "ttf2woff2": "bin/ttf2woff2.js" }, "gypfile": true, "contributors": [ { "name": "Anders Kaseorg", "email": "andersk@mit.edu" } ], "files": [ "dist", "src", "jssrc", "binding.gyp", "csrc", "LICENSE", "README.md", "CHANGELOG.md" ], "config": { "commitizen": { "path": "./node_modules/cz-conventional-changelog" } }, "greenkeeper": { "ignore": [ "commitizen", "cz-conventional-changelog", "conventional-changelog-cli", "eslint", "eslint-config-prettier", "prettier", "@babel/cli", "@babel/core", "@babel/preset-env", "jest", "coveralls" ] }, "eslintConfig": { "extends": [ "eslint:recommended" ], "parserOptions": { "ecmaVersion": 2018, "sourceType": "module", "modules": true }, "env": { "es6": true, "node": true, "jest": true, "mocha": true }, "plugins": [ "prettier" ], "rules": { "prettier/prettier": "error" } }, "eslintIgnore": [ "jssrc/ttf2woff2.wasm", "jssrc/ttf2woff2.js", "jssrc/post.js" ], "prettier": { "semi": true, "printWidth": 80, "singleQuote": true, "trailingComma": "all", "proseWrap": "always" }, "module": "src/index.mjs", "babel": { "ignore": [ "jssrc/ttf2woff2.wasm", "jssrc/ttf2woff2.js" ], "presets": [ [ "@babel/env", { "targets": { "node": "12" } } ] ], "env": { "cjs": { "presets": [ [ "@babel/env", { "targets": { "node": "12" }, "modules": "commonjs" } ] ], "comments": true }, "mjs": { "presets": [ [ "@babel/env", { "targets": { "node": "12" }, "modules": false } ] ], "comments": false } }, "sourceMaps": true }, "jest": { "coverageReporters": [ "lcov" ], "testPathIgnorePatterns": [ "/node_modules/" ], "roots": [ "/tests" ], "transformIgnorePatterns": [ "jssrc/ttf2woff2.wasm", "jssrc/ttf2woff2.js" ], "moduleFileExtensions": [ "js", "wasm" ] } }