UNPKG

@neabyte/chart-to-image

Version:

Convert trading charts to images using Node.js canvas with advanced features: 6 chart types, VWAP/EMA/SMA indicators, custom colors, themes, hide elements, scaling, and PNG/JPEG export formats.

96 lines (95 loc) 2.56 kB
{ "name": "@neabyte/chart-to-image", "version": "1.1.5", "description": "Convert trading charts to images using Node.js canvas with advanced features: 6 chart types, VWAP/EMA/SMA indicators, custom colors, themes, hide elements, scaling, and PNG/JPEG export formats.", "main": "dist/index.js", "bin": { "chart-to-image": "dist/cli.js" }, "type": "module", "scripts": { "build": "tsc && tsc-alias -f -fe .js && npm run minify", "build:dev": "tsc --watch", "minify": "terser dist/cli.js -o dist/cli.js --compress --mangle && terser dist/index.js -o dist/index.js --compress --mangle", "dev": "tsx src/cli.ts", "start": "node dist/cli.js", "test": "jest", "lint": "eslint src/**/*.ts", "lint:fix": "eslint src/**/*.ts --fix", "format": "prettier --write src/**/*.ts", "format:check": "prettier --check src/**/*.ts", "format:fix": "prettier --write src/**/*.ts", "check": "npm run lint && npm run format:check", "check:all": "npm run lint && npm run format:check && npm run build" }, "keywords": [ "chart", "trading", "candlestick", "heikin-ashi", "renko", "line-chart", "area-chart", "image", "export", "png", "jpeg", "lightweight-charts", "ccxt", "cryptocurrency", "finance", "technical-analysis", "chart-generation", "trading-charts", "market-data" ], "author": { "name": "NeaByteLab", "email": "me@neabyte.com", "url": "https://github.com/NeaByteLab" }, "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/NeaByteLab/Chart-To-Image.git", "directory": "." }, "homepage": "https://github.com/NeaByteLab/Chart-To-Image#readme", "bugs": { "url": "https://github.com/NeaByteLab/Chart-To-Image/issues" }, "engines": { "node": ">=18.0.0", "npm": ">=8.0.0" }, "os": [ "darwin", "linux", "win32" ], "cpu": [ "x64", "arm64" ], "devDependencies": { "@types/node": "^24.1.0", "@typescript-eslint/eslint-plugin": "^8.38.0", "@typescript-eslint/parser": "^8.38.0", "eslint": "^9.32.0", "eslint-config-prettier": "^10.1.8", "eslint-plugin-import": "^2.32.0", "eslint-plugin-sonarjs": "^3.0.4", "jest": "^30.0.5", "prettier": "^3.6.2", "terser": "^5.43.1", "tsc-alias": "^1.8.16", "tslib": "^2.8.1", "tsx": "^4.20.3", "typescript": "^5.8.3" }, "dependencies": { "canvas": "^3.1.2", "ccxt": "^4.4.98", "lightweight-charts": "^5.0.8" } }