{
  "name": "@evidentpoint/r2-shared-js",
  "version": "1.0.0-alpha.4",
  "description": "Readium 2 'shared' for NodeJS (TypeScript)",
  "keywords": [
    "readium",
    "readium2",
    "shared",
    "EPUB",
    "TypeScript",
    "JavaScript",
    "ES5",
    "ES6",
    "ECMAScript 2015",
    "ECMAScript 6",
    "ES7",
    "ECMAScript 2016",
    "ECMAScript 7",
    "ES8",
    "ECMAScript 2017",
    "ECMAScript 8"
  ],
  "engines": {
    "node": ">=6",
    "npm": ">=3",
    "yarn": ">=1.0"
  },
  "repository": {
    "type": "git",
    "url": "git+https://github.com/edrlab/r2-shared-js.git"
  },
  "author": {
    "name": "EDRLab",
    "organization": "EDRLab",
    "url": "http://github.com/edrlab/"
  },
  "license": "BSD-3-Clause",
  "licenses": [
    {
      "type": "BSD-3-Clause",
      "url": "http://opensource.org/licenses/BSD-3-Clause"
    }
  ],
  "bugs": {
    "url": "https://github.com/edrlab/r2-shared-js/issues"
  },
  "homepage": "https://github.com/edrlab/r2-shared-js",
  "dependencies": {
    "debug": "^3.1.0",
    "mime-types": "^2.1.18",
    "moment": "^2.22.2",
    "@evidentpoint/r2-lcp-js": "^1.0.0-alpha.2",
    "r2-opds-js": "github:edrlab/r2-opds-js-dist#develop",
    "@evidentpoint/r2-utils-js": "^1.0.0-alpha.2",
    "slugify": "^1.3.0",
    "ta-json": "github:evidentpoint/ta-json#dist",
    "tslib": "^1.9.2",
    "xmldom": "^0.1.27",
    "xpath": "^0.0.27"
  },
  "devDependencies": {
    "@types/debug": "^0.0.30",
    "@types/mime-types": "^2.1.0",
    "@types/node": "8.*.*",
    "@types/xmldom": "^0.1.29",
    "ava": "^0.25.0",
    "cpy-cli": "^2.0.0",
    "cross-env": "^5.2.0",
    "cson": "^5.1.0",
    "eclint": "^2.7.0",
    "filehound": "^1.16.4",
    "git-rev-sync": "^1.12.0",
    "json": "^9.0.6",
    "mkdirp": "^0.5.1",
    "rimraf": "^2.6.2",
    "tslint": "^5.10.0",
    "tslint-language-service": "^0.9.9",
    "typescript": "^2.9.2"
  },
  "main": "dist/es5/src/index.js",
  "types": "dist/es5/src/index.d.js",
  "bin": {
    "r2-shared-js-cli": "dist/es6-es2015/src/_utils/cli.js"
  },
  "files": [
    "LICENSE",
    "README.md",
    "docs/**/*",
    "dist/**/*"
  ],
  "scripts": {
    "cson2json": "sed -E \"s/#ECMASCRIPT#/es5/g\" package-scripts-build.cson > tmp-build.cson && sed -E \"s/#ECMASCRIPT#/es6-es2015/g\" package-scripts-build.cson >> tmp-build.cson && sed -E \"s/#ECMASCRIPT#/es7-es2016/g\" package-scripts-build.cson >> tmp-build.cson && sed -E \"s/#ECMASCRIPT#/es8-es2017/g\" package-scripts-build.cson >> tmp-build.cson && json -I -f package.json -e \"this.scripts=$(cat package-scripts.cson tmp-build.cson | node node_modules/cson/bin/cson2json)\" && rimraf tmp-*.cson",
    "copydist": "cpy \"./dist/**/*\" ../r2-streamer-js/node_modules/r2-shared-js/ --cwd=./ --parents --no-dir && cpy \"./dist/**/*\" ../r2-navigator-js/node_modules/r2-shared-js/ --cwd=./ --parents --no-dir && cpy \"./dist/**/*\" ../r2-testapp-js/node_modules/r2-shared-js/ --cwd=./ --parents --no-dir",
    "quick-build-dist": "npm run transpile:typescript:es8-es2017+afterdist && npm run copydist",
    "_pregitdist": "npm run build:all",
    "gitdist": "cd ../r2-shared-js-dist/ && git checkout -B develop && (git pull || echo \"pull\") && (git --no-pager status || echo status) && ((rimraf \"*\" && echo rimrafOK) || echo rimrafNOK) && cpy ../r2-shared-js/package.json . && cpy ../r2-shared-js/package-lock.json . && cpy ../r2-shared-js/LICENSE . && cpy ../r2-shared-js/README.md . && cpy \"./docs/**/*\" ../r2-shared-js-dist/ --cwd=../r2-shared-js/ --parents --no-dir && cpy \"./dist/**/*\" ../r2-shared-js-dist/ --cwd=../r2-shared-js/ --parents --no-dir && (git add * || echo add) && (git commit -a -m \"add new dist\" || echo commit) && (git push --set-upstream origin develop || echo push) && (git --no-pager status || echo status) && cd ../r2-shared-js",
    "start": "cross-env DEBUG=r2:* node \"./dist/es6-es2015/src/_utils/cli.js\" ./misc/epubs/",
    "prepare_": "npm run build:all && npm test",
    "prepublish_": "npm run prepare_",
    "typescript:imports": "node tools/typescript_relativize_path_mapping_imports.js",
    "gitrev": "node tools/gitrev.js && cat dist/gitrev.json",
    "afterdist": "npm run typescript:imports && npm run gitrev",
    "prebuild": "npm run lint",
    "build": "npm run transpile:typescript",
    "postbuild": "npm run afterdist",
    "prebuild:all": "npm run lint",
    "build:all": "npm run transpile:typescript:all",
    "postbuild:all": "npm run afterdist",
    "clean": "rimraf ./dist && mkdirp ./dist",
    "lint": "npm run lint:all && npm run lint:typescript:full",
    "lint:all": "eclint check \"**/*\" \"!**/*.node\" \"!.git/**/*\" \"!node_modules*/**/*\" \"!dist/**/*\" \"!misc/**/*\" \"!now/**/*\" \"!.vscode/**/*\" \"!.history/**/*\" \"!**/.DS_Store\" \"!**/*.epub\" \"!**/*.cbz\" \"!**/*.jpg\" \"!**/*.jpeg\" \"!**/*.png\" \"!**/*.log\"",
    "lint:typescript": "tslint -c \"./tslint.json\" \"./src/**/*.ts\" \"./test/**/*.ts\"",
    "lint:typescript:full": "tslint --project \"./tsconfig.json\" -c \"./tslint.json\" \"./src/**/*.ts\" \"./test/**/*.ts\"",
    "lintfix": "sed -i \"\" \"s/let normalizedPath = path\\\\.normalize(documentPath);/let normalizedPath = path.normalize(documentPath).toLowerCase();/g\" ./node_modules/tslint-language-service/out/src/index.js",
    "pretranspile:typescript": "npm run clean",
    "transpile:typescript": "tsc --pretty -p \"./tsconfig.json\"",
    "pretranspile:typescript:all": "npm run clean",
    "transpile:typescript:all": "npm run transpile:typescript:es5 && npm run transpile:typescript:es6-es2015 && npm run transpile:typescript:es7-es2016 && npm run transpile:typescript:es8-es2017",
    "transpile:typescript:es8-es2017+afterdist": "npm run transpile:typescript:es8-es2017 && npm run afterdist",
    "transpile:typescript:single": "node tools/typescript_compile_single.js",
    "posttranspile:typescript:single": "npm run afterdist",
    "test": "cross-env DEBUG=r2:* ava --verbose --fail-fast --serial --color \"./dist/es8-es2017/test/**/test*.js\"",
    "cli": "node \"./dist/es8-es2017/src/_utils/cli.js\"",
    "cli-debug": "cross-env DEBUG=r2:* npm run cli",
    "cli-debug-x": "cross-env DEBUG=* npm run cli",
    "prebuild:es5": "npm run lint && npm run clean",
    "build:es5": "npm run transpile:typescript:es5",
    "postbuild:es5": "npm run afterdist",
    "transpile:typescript:es5": "tsc --pretty -p \"./tsconfigs/tsconfig-es5-all.json\"",
    "prebuild:es6-es2015": "npm run lint && npm run clean",
    "build:es6-es2015": "npm run transpile:typescript:es6-es2015",
    "postbuild:es6-es2015": "npm run afterdist",
    "transpile:typescript:es6-es2015": "tsc --pretty -p \"./tsconfigs/tsconfig-es6-es2015-all.json\"",
    "prebuild:es7-es2016": "npm run lint && npm run clean",
    "build:es7-es2016": "npm run transpile:typescript:es7-es2016",
    "postbuild:es7-es2016": "npm run afterdist",
    "transpile:typescript:es7-es2016": "tsc --pretty -p \"./tsconfigs/tsconfig-es7-es2016-all.json\"",
    "prebuild:es8-es2017": "npm run lint && npm run clean",
    "build:es8-es2017": "npm run transpile:typescript:es8-es2017",
    "postbuild:es8-es2017": "npm run afterdist",
    "transpile:typescript:es8-es2017": "tsc --pretty -p \"./tsconfigs/tsconfig-es8-es2017-all.json\""
  },
  "importSort": {
    ".ts": {
      "parser": "typescript",
      "style": "module"
    }
  }
}
