fetch-api-client
Version:
A TypeScript API client using fetch with axios-like interface
78 lines (77 loc) • 2.21 kB
JSON
{
"name": "fetch-api-client",
"version": "1.0.4",
"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 && mv dist-esm/index.js dist/index.esm.js && mv dist-esm/client.js dist/client.esm.js && mv dist-esm/interceptors.js dist/interceptors.esm.js && mv dist-esm/types.js dist/types.esm.js && rimraf dist-esm",
"build:types": "tsc --project tsconfig.types.json",
"clean": "rimraf dist dist-esm",
"dev": "tsc --watch",
"lint": "eslint src/**/*.ts",
"test": "jest",
"test:watch": "jest --watch",
"test:coverage": "jest --coverage",
"prepublishOnly": "npm run build",
"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"
}
}