image-classifier-ts
Version:
Command line tool to auto-classify images, renaming them with appropriate labels. Uses Node and Google Vision API.
154 lines (153 loc) • 4.85 kB
JSON
{
"name": "image-classifier-ts",
"version": "3.0.13",
"description": "Command line tool to auto-classify images, renaming them with appropriate labels. Uses Node and Google Vision API.",
"main": "dist/lib/image-classifier-ts.js",
"typings": "dist/types/image-classifier-ts.d.ts",
"files": [
"dist"
],
"author": "Sean Ryan <mr.sean.ryan(at)gmail.com>",
"bin": {
"image-classifier-ts": "./dist/lib/cli.js"
},
"license": "MIT",
"lint-staged": {
"{src,test}/**/*.ts": [
"prettier --write"
]
},
"config": {
"commitizen": {
"path": "node_modules/cz-conventional-changelog"
}
},
"jest": {
"transform": {
".(ts|tsx)": "ts-jest"
},
"transformIgnorePatterns": [
"^.+\\.js$",
"^.+\\.json$"
],
"testEnvironment": "node",
"testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$",
"moduleFileExtensions": [
"ts",
"tsx",
"js"
],
"coveragePathIgnorePatterns": [
"/itest/",
"/node_modules/",
"/static/",
"/test/",
"/testUtils/",
"/tools/",
"main.ts"
],
"coverageThreshold": {
"global": {
"branches": 80,
"functions": 80,
"lines": 87,
"statements": 87
}
},
"collectCoverageFrom": [
"src/**/{ConsoleReporter,FilenameGenerator,GeoCodeResponseParser,MapDateToLocation,MapDateToLocationManager,Nodash,SimpleDate}.ts"
],
"testPathIgnorePatterns": [
"/testHarness/",
"/node_modules/"
]
},
"prettier": {
"semi": true,
"singleQuote": false
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"devDependencies": {
"@commitlint/cli": "^11.0.0",
"@commitlint/config-conventional": "^11.0.0",
"@types/jest": "^26.0.20",
"@types/lodash": "^4.14.149",
"@types/node": "^14.14.20",
"@types/node-fetch": "^2.5.4",
"colors": "^1.4.0",
"commitizen": "^4.0.3",
"coveralls": "^3.0.9",
"cross-env": "^7.0.3",
"cz-conventional-changelog": "^3.0.2",
"husky": "^4.3.7",
"jest": "^26.6.3",
"jest-config": "^26.6.3",
"lint-staged": "^10.5.3",
"prettier": "^2.2.1",
"prompt": "^1.0.0",
"replace-in-file": "^6.1.0",
"rimraf": "^3.0.0",
"semantic-release": "^17.3.1",
"ts-jest": "^26.4.4",
"ts-node": "^9.1.1",
"tslint": "^6.1.3",
"tslint-config-prettier": "^1.18.0",
"tslint-config-standard-sr": "^8.2.0",
"typedoc": "^0.22.10",
"typescript": "^4.1.3"
},
"engines": {
"node": ">=10.18.0"
},
"scripts": {
"lint": "tslint -p tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'",
"lint:local": "tslint -p tsconfig.json -t codeFrame",
"prebuild": "rimraf dist",
"build": "tsc --module commonjs && typedoc --out docs src/image-classifier-ts.ts && yarn build:cli",
"build:cli": "cp static/cli.js dist/lib/cli.js && cat dist/lib/main.js >> dist/lib/cli.js && chmod +x dist/lib/cli.js",
"build:minimal": "tsc --module commonjs",
"build-and-test": "yarn build:minimal && yarn test",
"log:dist": "ls dist -lR",
"test": "jest --coverage",
"test:watch": "jest --coverage --watch",
"test:prod": "yarn build && yarn lint && yarn test --no-cache",
"deploy-docs": "ts-node tools/gh-pages-publish",
"report-coverage": "cat ./coverage/lcov.info | coveralls",
"commit": "git-cz",
"prepublish": "yarn test:prod",
"semantic-release": "semantic-release",
"semantic-release-prepare": "ts-node tools/semantic-release-prepare"
},
"repository": {
"type": "git",
"url": "git@github.com:mrseanryan/image-classifier-ts.git"
},
"dependencies": {
"@google-cloud/vision": "^2.2.0",
"exifreader": "^2.13.0",
"image-size": "^1.0.1",
"node-fetch": "^2.6.0",
"sharp": "^0.29.3",
"xmldom": "^0.6.0"
},
"funding": "https://github.com/mrseanryan/image-classifier-ts?sponsor=1",
"keywords": [
"classification",
"Google Vision",
"AI",
"image classification",
"ML",
"machine learning"
],
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
"pre-commit": "lint-staged",
"pre-push": "yarn test:prod"
}
}
}