UNPKG

js-angusj-clipper

Version:

Polygon and line clipping and offsetting library for Javascript / Typescript - a port of Angus Johnson's clipper to WebAssembly / Asm.JS

69 lines (68 loc) 2.2 kB
{ "name": "js-angusj-clipper", "version": "1.3.1", "description": "Polygon and line clipping and offsetting library for Javascript / Typescript - a port of Angus Johnson's clipper to WebAssembly / Asm.JS", "main": "universal/index.js", "typings": "universal/index.d.ts", "scripts": { "_pull-docker-image": "docker pull emscripten/emsdk", "travis": "yarn lint && yarn build && yarn test", "test": "jest -t unit", "benchmark": "jest -t benchmark", "lint": "eslint src", "build": "yarn build:web && yarn build:universal", "build:universal": "rimraf ./dist && rimraf ./universal && yarn build:ts && yarn build:asm && shx mv dist universal", "build:web": "rimraf ./dist && rimraf ./web && yarn build:ts && yarn build:asm --env web && shx mv dist web", "build:ts": "tsc -p .", "build:asm": "yarn _pull-docker-image && ts-node build/compile-asm", "prettier-all": "prettier --write ." }, "files": [ "universal", "web" ], "repository": { "type": "git", "url": "git+https://github.com/xaviergonz/js-angusj-clipper.git" }, "keywords": [ "polygon", "clipping", "offseting", "boolean", "geometry" ], "author": "Javier Gonzalez Garces <xaviergonz@gmail.com>", "license": "MIT", "bugs": { "url": "https://github.com/xaviergonz/js-angusj-clipper/issues" }, "homepage": "https://github.com/xaviergonz/js-angusj-clipper#readme", "devDependencies": { "@types/command-line-args": "^5.2.0", "@types/jest": "^29.4.0", "@types/node": "^18.11.18", "@types/shelljs": "^0.8.11", "@typescript-eslint/eslint-plugin": "^5.50.0", "@typescript-eslint/parser": "^5.50.0", "command-line-args": "^5.2.1", "eslint": "^8.33.0", "eslint-config-prettier": "^8.6.0", "eslint-plugin-import": "^2.27.5", "eslint-plugin-prettier": "^4.2.1", "jest": "^29.4.1", "prettier": "^2.8.3", "rimraf": "^4.1.2", "shelljs": "^0.8.5", "shx": "^0.3.4", "ts-jest": "^29.0.5", "ts-node": "^10.9.1", "typescript": "^4.9.5" }, "prettier": { "printWidth": 100, "arrowParens": "always", "endOfLine": "lf" }, "packageManager": "yarn@3.4.1" }