caffco/get-audio-duration

View on GitHub
package.json

Summary

Maintainability
Test Coverage
{
  "name": "get-audio-duration",
  "description": "Get the duration of an audio file",
  "version": "4.0.1",
  "author": "Lluís Ulzurrun de Asanza Sàez <me@llu.is> (http://llu.is)",
  "license": "MIT",
  "repository": "caffco/get-audio-duration",
  "main": "dist/commonjs/index.js",
  "module": "dist/es6/index.js",
  "dependencies": {
    "@ffprobe-installer/ffprobe": "^2.1.2",
    "execa": "^5.0.0"
  },
  "devDependencies": {
    "@types/node": "^20.2.5",
    "@types/tmp": "^0.2.6",
    "@typescript-eslint/eslint-plugin": "^5.62.0",
    "@typescript-eslint/parser": "^5.62.0",
    "@vitest/coverage-v8": "^1.6.0",
    "es-check": "^7.2.1",
    "eslint": "^8.57.0",
    "git-conventional-commits": "^2.6.7",
    "husky": "^8.0.3",
    "npm-run-all": "^4.1.5",
    "prettier": "^3.3.1",
    "source-map-support": "^0.5.21",
    "tmp": "^0.2.3",
    "ts-node": "^10.7.0",
    "typescript": "^5.4.5",
    "vitest": "^1.6.0"
  },
  "scripts": {
    "lint:commit": "git-conventional-commits commit-msg-hook",
    "lint:source": "eslint **/*.ts",
    "lint:build": "es-check es5 dist/commonjs/*.js",
    "build": "run-s build:* lint:build",
    "build:commonjs": "tsc --p tsconfig.commonjs.json",
    "build:es6": "tsc --p tsconfig.es6.json",
    "test": "vitest --coverage",
    "format": "prettier --config .prettierrc 'src/**/*.ts' 'test/**/*.ts' --write",
    "prepublishOnly": "CI=1 run-s test build",
    "update:changelog": "git-conventional-commits changelog --file 'CHANGELOG.md'",
    "update:version": "TEMP_PACKAGE_JSON=$(mktemp) &&git-conventional-commits version 2>/dev/null | xargs -I{} jq --arg newVersion {} '.version = $newVersion' package.json > \"$TEMP_PACKAGE_JSON\" && rm package.json && mv \"$TEMP_PACKAGE_JSON\" package.json"
  },
  "keywords": [
    "audio",
    "duration",
    "ffmpeg",
    "ffprobe",
    "typescript"
  ],
  "files": [
    "dist/**/*"
  ]
}