UNPKG

axios-case-converter

Version:

Axios transformer/interceptor that converts snake_case/camelCase

77 lines (76 loc) 2.57 kB
{ "name": "axios-case-converter", "version": "1.1.1", "main": "lib/index.js", "module": "es/index.js", "types": "typings/index.d.ts", "sideEffects": false, "scripts": { "check": "tsc --noEmit", "lint:eslint": "eslint {src,test}/**/*.ts *.config.js", "lint:prettier": "prettier ./src ./test *.config.js --list-different", "lint": "npm run lint:eslint && npm run lint:prettier", "fix:eslint": "eslint {src,test}/**/*.ts *.config.js", "fix:prettier": "prettier ./src ./test *.config.js --write", "fix": "npm run fix:eslint && npm run fix:prettier", "build:cjs": "tsc", "build:es": "tsc -p tsconfig.es.json", "build:umd": "NODE_ENV=development rollup -c", "build:umd:min": "NODE_ENV=production rollup -c", "build:typings": "tsc -p tsconfig.typings.json", "build": "run-p build:**", "test": "jest", "test:coverage": "jest --coverage", "prepublishOnly": "git diff --no-ext-diff --quiet --exit-code src .gitignore package.json README.md LICENSE || (echo \"Please commit changes!\" && false) && npm test && rm -rf lib es dist typings && npm run build" }, "description": "Axios transformer/interceptor that converts snake_case/camelCase", "repository": { "type": "git", "url": "git+https://github.com/mpyw/axios-interceptor-change-case.git" }, "keywords": [ "axios", "interceptor", "snake", "camel", "case", "convert" ], "author": "mpyw <ryosuke_i_628@yahoo.co.jp>", "license": "MIT", "bugs": { "url": "https://github.com/mpyw/axios-interceptor-change-case/issues" }, "homepage": "https://github.com/mpyw/axios-interceptor-change-case#readme", "dependencies": { "camel-case": "^4.1.1", "header-case": "^2.0.3", "snake-case": "^3.0.3", "tslib": "^2.3.0" }, "devDependencies": { "@rollup/plugin-node-resolve": "^13.0.5", "@rollup/plugin-typescript": "^8.2.5", "@types/jest": "^27.0.2", "@types/node": "^16.10.9", "@typescript-eslint/eslint-plugin": "^5.0.0", "@typescript-eslint/parser": "^5.0.0", "axios": "^1.1.2", "axios-mock-adapter": "^1.20.0", "blob-polyfill": "^5.0.20210201", "eslint": "^8.0.0", "eslint-config-prettier": "^8.3.0", "formdata-polyfill": "^4.0.10", "jest": "^27.2.5", "npm-run-all": "^4.1.5", "prettier": "^2.4.1", "rollup": "^2.58.0", "rollup-plugin-terser": "^7.0.2", "ts-jest": "^27.0.5", "typescript": "^4.9.5", "url-search-params-polyfill": "^8.1.1" }, "peerDependencies": { "axios": ">=1.0.0 <2.0.0" } }