UNPKG

contain-by-screen

Version:

Position a dropdown element near a button in a way that fits on the screen.

59 lines (58 loc) 1.78 kB
{ "name": "contain-by-screen", "version": "2.1.0", "description": "Position a dropdown element near a button in a way that fits on the screen.", "main": "dist/src/index.js", "sideEffects": false, "scripts": { "prepare": "rimraf dist && babel -s true -d dist/src/ src/ -x .ts,.tsx --ignore '**/*.test.ts,**/*.test.tsx' && tsc && cp index.js.flow dist/src/", "build-watch": "babel --watch -s true -d dist/src/ src/ -x .ts,.tsx --ignore '**/*.test.ts,**/*.test.tsx'", "test": "yarn run lint && mocha && tsc --noEmit --emitDeclarationOnly false", "lint": "eslint .", "lint-fix": "eslint . --fix" }, "repository": { "type": "git", "url": "git+https://github.com/Macil/contain-by-screen.git" }, "keywords": [ "dropdown", "positioning", "menu" ], "author": "Chris Cowan <agentme49@gmail.com>", "license": "MIT", "browserify": { "transform": [ "envify" ] }, "bugs": { "url": "https://github.com/Macil/contain-by-screen/issues" }, "homepage": "https://github.com/Macil/contain-by-screen#readme", "devDependencies": { "@babel/cli": "^7.0.0", "@babel/core": "^7.0.0", "@babel/plugin-transform-runtime": "^7.0.0", "@babel/preset-env": "^7.0.0", "@babel/preset-typescript": "^7.22.15", "@babel/register": "^7.0.0", "@types/mocha": "^10.0.1", "@types/node": "^20.6.2", "@typescript-eslint/eslint-plugin": "^6.7.2", "@typescript-eslint/parser": "^6.7.2", "eslint": "^8.23.0", "eslint-config-prettier": "^9.0.0", "mocha": "^10.0.0", "prettier": "3.0.3", "rimraf": "^5.0.1", "typescript": "^5.2.2" }, "dependencies": { "@babel/runtime": "^7.0.0", "@types/lodash": "^4.14.198", "envify": "^4.1.0", "lodash": "^4.6.1" } }