fetch-api-client
Version:
A TypeScript API client using fetch with axios-like interface
79 lines (78 loc) • 2.27 kB
JSON
{
"name": "fetch-api-client",
"version": "1.0.3",
"description": "A TypeScript API client using fetch with axios-like interface",
"main": "./dist/index.js",
"module": "./dist/index.esm.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": "./dist/index.esm.js",
"require": "./dist/index.js",
"types": "./dist/index.d.ts"
}
},
"files": [
"dist",
"README.md",
"LICENSE"
],
"scripts": {
"build": "npm run clean && npm run build:cjs && npm run build:esm && npm run build:types",
"build:cjs": "tsc --project tsconfig.cjs.json",
"build:esm": "tsc --project tsconfig.esm.json && npm run rename:esm",
"build:types": "tsc --project tsconfig.types.json",
"rename:esm": "if [ -d dist/esm ]; then find dist/esm -name '*.js' -exec sh -c 'mv \"$1\" \"${1%.js}.esm.js\"' _ {} \\; && cp dist/esm/*.esm.js dist/ 2>/dev/null || true && rm -rf dist/esm; fi",
"clean": "rimraf dist",
"dev": "tsc --watch",
"lint": "eslint src/**/*.ts",
"test": "jest --passWithNoTests",
"test:watch": "jest --watch",
"test:coverage": "jest --coverage --passWithNoTests",
"prepublishOnly": "npm run build && npm test",
"publish:npm": "npm publish --access public",
"example": "tsx example.ts"
},
"keywords": [
"fetch",
"api",
"client",
"typescript",
"http",
"rest",
"axios",
"interceptors",
"nextjs",
"browser",
"node"
],
"author": "Hoang Danh <danhnh.developer@gmail.com>",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/danhnhdeveloper308/fetch-api-client.git"
},
"bugs": {
"url": "https://github.com/danhnhdeveloper308/fetch-api-client/issues"
},
"homepage": "https://github.com/danhnhdeveloper308/fetch-api-client#readme",
"devDependencies": {
"@types/jest": "^29.5.0",
"@types/node": "^18.15.0",
"@typescript-eslint/eslint-plugin": "^5.57.0",
"@typescript-eslint/parser": "^5.57.0",
"eslint": "^8.37.0",
"jest": "^29.5.0",
"rimraf": "^4.4.0",
"ts-jest": "^29.1.0",
"tsx": "^4.0.0",
"typescript": "^5.0.0"
},
"engines": {
"node": ">=16.0.0"
},
"sideEffects": false,
"publishConfig": {
"access": "public"
}
}