UNPKG

evaluatify

Version:

Transform anything into an executable script string, useful in `webview.evaluateJavascript(script)` cases.

57 lines (56 loc) 1.4 kB
{ "name": "evaluatify", "version": "1.1.0", "description": "Transform anything into an executable script string, useful in `webview.evaluateJavascript(script)` cases.", "keywords": [ "webview", "bridge", "JSC", "JavascriptInterface", "evaluateJavascript", "eval", "evaluate" ], "files": [ "dist", "README.md" ], "main": "dist/lib/index.js", "module": "dist/esm/index.js", "scripts": { "test": "jest --coverage", "lint": "eslint ./src --ext .ts", "build": "run-p test clean lint && run-p build:cjs build:esm", "build:cjs": "tsc --module commonjs --declaration --outDir ./dist/lib", "build:esm": "tsc --module esnext --declaration --outDir ./dist/esm", "prepublishOnly": "npm run build", "clean": "rm -rf dist" }, "license": "ISC", "devDependencies": { "@types/jest": "^26.0.24", "@typescript-eslint/eslint-plugin": "^4.29.0", "@typescript-eslint/parser": "^4.29.0", "eslint": "^7.32.0", "eslint-config-alloy": "^4.2.0", "husky": "4.3.8", "jest": "^27.0.6", "lint-staged": "9.4.3", "npm-run-all": "^4.1.5", "prettier": "^2.2.1", "ts-jest": "^27.0.4", "typescript": "^4.3.5" }, "lint-staged": { "*.{ts}": [ "eslint --fix", "prettier --write" ] }, "husky": { "hooks": { "pre-commit": "lint-staged" } }, "dependencies": {} }