r3bl-ts-utils
Version:
The `r3bl-ts-utils` package is a set of useful TypeScript functions and classes that can be used in Node.js and browser environments. They are inspired by Kotlin stdlib, and Rust to write code as expressions rather than statements, colorized text, powerfu
119 lines (118 loc) • 4.27 kB
JSON
{
"name": "r3bl-ts-utils",
"version": "2.0.9",
"description": "The `r3bl-ts-utils` package is a set of useful TypeScript functions and classes that can be used in Node.js and browser environments. They are inspired by Kotlin stdlib, and Rust to write code as expressions rather than statements, colorized text, powerful Text User Interface (TUI) framework to build powerful CLI apps, cache, and timer utilities.",
"main": "build/index.js",
"types": "build/index.d.ts",
"files": [
"build/**/*",
"src/**/*"
],
"scripts": {
"build": "rm -rf build && tsc",
"format": "prettier --write \"src/**/*.ts\"",
"test": "jest",
"test-watch": "jest --watch",
"prepare": "npm run build",
"prepublishOnly": "npm run test",
"preversion": "npm run test",
"version": "npm run format && git add -A",
"postversion": "git push && git push --tags",
"lint": "eslint 'src/**/*.{ts,tsx}' --quiet --fix",
"/*format-with-tsfmt*/": "https://github.com/vvakame/typescript-formatter",
"format-with-tsfmt": "tsfmt -r",
"flush-npm-cache": "rm package-lock.json && rm -rf node_modules/ && npm cache clean --force && npm i",
"/*experimental*/": "These scripts allow you to run experimental projects",
"exp-template": "node -r tsm src/experimental/template.tsx",
"exp-node-readline-keypress-logger": "node -r tsm src/experimental/node-keypress/readline-keypress-logger.ts",
"exp-usekeyboard-ink-compat": "node -r tsm src/experimental/node-keypress/ink-compat.tsx",
"exp-usekeyboard-node-keypress": "node -r tsm src/experimental/node-keypress/node-keypress.tsx",
"exp-textinput-ink-compat": "node -r tsm src/experimental/text-input/ink-compat.tsx",
"exp-textinput-node-keypress": "node -r tsm src/experimental/text-input/node-keypress.tsx",
"exp-confirminput-node-keypress": "node -r tsm src/experimental/confirm-input/node-keypress.tsx",
"exp-multi-select-input": "node -r tsm src/experimental/multi-select-input/example.tsx",
"exp-usekeyboard-node-keypress-suite": "npm run exp-node-readline-keypress-logger && npm run exp-usekeyboard-node-keypress && npm run exp-usekeyboard-ink-compat && npm run exp-textinput-node-keypress && npm run exp-confirminput-node-keypress && npm run exp-multi-select-input"
},
"repository": {
"type": "git",
"url": "git+https://github.com/r3bl-org/r3bl-ts-utils.git"
},
"keywords": [
"CLI app framework",
"command line interface",
"Text User Interface (TUI) framework",
"color console",
"terminal",
"color terminal",
"let",
"with",
"apply",
"also",
"Option",
"Some",
"None",
"React Hook",
"timer",
"setInterval",
"Kotlin scope functions",
"Rust language expressions",
"TypeScript",
"sleep",
"ink ui components",
"single select input",
"multi select input",
"figures",
"colors.js",
"chalk",
"node keypress"
],
"author": "Nazmul Idris",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/r3bl-org/r3bl-ts-utils/issues"
},
"homepage": "https://r3bl.com",
"dependencies": {
"lodash": "^4.17.21",
"typescript": "^4.2.2",
"uuidv4": "^6.2.12"
},
"devDependencies": {
"@sindresorhus/tsconfig": "^2.0.0",
"@testing-library/jest-dom": "^5.15.0",
"@testing-library/react": "^12.1.2",
"@types/jest": "latest",
"@types/lodash": "latest",
"@types/node": "latest",
"@types/react-redux": "latest",
"@typescript-eslint/eslint-plugin": "latest",
"@typescript-eslint/parser": "latest",
"console-testing-library": "^0.6.1",
"delay": "latest",
"eslint": "latest",
"eslint-plugin-react": "latest",
"eslint-plugin-react-hooks": "latest",
"ink": "^3.2.0",
"ink-testing-library": "^2.1.0",
"jest": "latest",
"nodemon": "latest",
"npm-run-all": "latest",
"prettier": "latest",
"ts-jest": "latest",
"ts-node": "latest",
"tsm": "latest",
"typescript": "latest",
"typescript-formatter": "latest"
},
"peerDependencies": {
"@types/react": "^17.0.34",
"ink": "^3.2.0",
"ink-text-input": "^4.0.2",
"react": "^17.0.2"
},
"peerDependenciesMeta": {
"@types/react": {
"optional": true
}
}
}