UNPKG

ink-use-stream-dimensions

Version:

Get the columns and rows of a stream in a ink app

79 lines (78 loc) 2.19 kB
{ "name": "ink-use-stream-dimensions", "type": "module", "version": "0.1.2", "description": "Get the columns and rows of a stream in a ink app", "main": "./build/cjs/index.js", "module": "./build/esm/index.js", "exports": { "./package.json": "./package.json", ".": { "import": "./build/esm/index.js", "require": "./build/cjs/index.js", "types": "./build/esm/index.d.ts" } }, "files": [ "build/" ], "scripts": { "check-licenses": "license-checker --summary --unknown --direct --production", "prebuild": "npm run clean", "build": "tsc -p tsconfig.json", "postbuild": "esm2cjs --in build/esm --out build/cjs --loglevel error --cleanOutDir", "clean": "del-cli --force ./build", "fmt": "prettier --write src/", "lint": "prettier --check src/ && xo", "test": "ava", "prepublishOnly": "npm run lint && npm run test && npm run build" }, "repository": "github:gowikel/use-stream-dimensions", "keywords": [ "ink", "ink-hook", "react", "terminal", "console", "dimensions", "stream", "command-line", "stdout", "stdout-stream" ], "author": "Pedro Jose Piquero Plaza <pedropiqueroplaza@proton.me>", "license": "Unlicense", "bugs": { "url": "https://github.com/gowikel/use-stream-dimensions/issues" }, "homepage": "https://github.com/gowikel/use-stream-dimensions#readme", "peerDependencies": { "ink": "^4.0.0", "react": "^18.0.0" }, "devDependencies": { "@alcalzone/esm2cjs": "^1.1.2", "@ava/typescript": "^5.0.0", "@sindresorhus/tsconfig": "^5.0.0", "@testing-library/react": "^15.0.7", "@types/node": "^20.12.11", "@types/react": "^18.3.1", "@types/sinon": "^17.0.3", "ava": "^6.1.3", "del-cli": "^5.1.0", "eslint-config-xo-react": "^0.27.0", "eslint-plugin-react": "^7.34.1", "eslint-plugin-react-hooks": "^4.6.2", "ink": "^4.4.1", "ink-testing-library": "^3.0.0", "license-checker": "^25.0.1", "prettier": "^3.2.5", "react-dom": "^18.3.1", "sinon": "^17.0.2", "typescript": "^5.4.5", "xo": "^0.58.0" }, "dependencies": { "react": "^18.0.0" } }