UNPKG

textarea-selection-bounds

Version:

A handy package to get the bounds of the current text selection in a textarea element

71 lines 2.05 kB
{ "name": "textarea-selection-bounds", "version": "4.3.0", "description": "A handy package to get the bounds of the current text selection in a textarea element", "main": "./lib/index.js", "exports": { ".": { "import": "./lib/index.js" } }, "type": "module", "files": [ "lib" ], "license": "MIT", "private": false, "devDependencies": { "@awdware/eslint-config-base": "^2.1.1", "@awdware/eslint-config-nodejs": "^2.0.0", "@awdware/prettier-config": "^1.0.0", "@jest/globals": "^30.2.0", "@types/jest": "^30.0.0", "@types/node": "^25.0.10", "cpy-cli": "^6.0.0", "eslint": "^9.39.2", "eslint-plugin-import": "2.32.0", "eslint-plugin-unused-imports": "^4.3.0", "http-server": "^14.1.1", "jest": "^30.2.0", "jest-junit": "^16.0.0", "legally": "^3.5.10", "prettier": "^3.8.1", "rimraf": "^6.1.2", "ts-jest": "^29.4.6", "ts-node": "^10.9.2", "typescript": "~5.9.3", "typescript-eslint": "^8.53.1" }, "prettier": "@awdware/prettier-config", "keywords": [ "typescript", "textarea", "selection", "bounds", "rect", "range" ], "author": { "name": "Janik Schumacher (LoaderB0T)", "url": "https://awdware.de" }, "homepage": "https://github.com/LoaderB0T/textarea-selection-bounds", "bugs": { "url": "https://github.com/LoaderB0T/textarea-selection-bounds/issues" }, "repository": { "type": "git", "url": "https://github.com/LoaderB0T/textarea-selection-bounds.git" }, "scripts": { "preinstall": "npx only-allow pnpm", "lint": "pnpm eslint ./src/**", "test": "node --experimental-vm-modules ./node_modules/jest/bin/jest.js", "prebuild": "pnpm rimraf lib", "build": "tsc -p .", "copy-test": "pnpm cpy --flat ./test/index.html ./lib", "build-test": "pnpm build --sourceMap false && pnpm copy-test && pnpm build --sourceMap false --watch", "start-test": "pnpm http-server ./lib", "test-script": "node --loader ts-node/esm ./src/test.ts" } }