{"_id":"@_dotlas/api","_rev":"1-58363d1c19b66a3ddad030380100b631","name":"@_dotlas/api","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@_dotlas/api","version":"1.0.0","description":"A simple client for the Dotlas REST API","engines":{"node":">= 12.0.0","npm":">= 7.0.0"},"main":"./dist/cjs/index.js","module":"./dist/esm/index.js","exports":{"browser":"./dist/esm/index.js","import":"./dist/esm/index.js","require":"./dist/cjs/index.js"},"scripts":{"clean":"rimraf ./dist","build":"pnpm run clean && tsc --project tsconfig.json && tsc --project tsconfig.cjs.json","format":"prettier --ignore-path .gitignore --write --plugin-search-dir=. .","lint":"eslint . --ignore-path .gitignore","prepare":"pnpm run build","types:api":" pnpm exec openapi-typescript \"https://api.dotlas.com/openapi.json\" --output src/types.ts -c .prettierrc"},"repository":{"type":"git","url":"git+https://github.com/dotlas/api-node-client.git"},"keywords":["dotlas","location","geospatial","census","api","rest","client"],"author":{"name":"Dotlas, Inc.","email":"tech@dotlas.com"},"license":"MIT","bugs":{"url":"https://github.com/dotlas/api-node-client/issues"},"homepage":"https://github.com/dotlas/api-node-client#readme","devDependencies":{"@types/node":"^17.0.23","@typescript-eslint/eslint-plugin":"^5.16.0","@typescript-eslint/parser":"^5.16.0","eslint":"^8.11.0","eslint-config-prettier":"^8.5.0","eslint-plugin-import":"^2.25.4","eslint-plugin-prettier":"^4.0.0","prettier":"^2.6.1","rimraf":"^3.0.2","ts-node":"^10.7.0","typescript":"^4.6.3"},"dependencies":{"openapi-typescript":"^5.2.0","openapi-typescript-fetch":"^1.1.2"},"gitHead":"83e980f8fe4856d38ecc9fcd767e45cabcd26cc8","_id":"@_dotlas/api@1.0.0","_nodeVersion":"14.18.1","_npmVersion":"6.14.15","dist":{"integrity":"sha512-F6DDkMst/vnRC/HTB3pDp/xd9vmhns1DM7cPLq04UonxmjHvY3s/7hzcDGkHYe/4lmBLXQZDlpLACTmAcXtR2A==","shasum":"ce9f197c4818003331ac555cc08c9e0751aac135","tarball":"https://registry.npmjs.org/@_dotlas/api/-/api-1.0.0.tgz","fileCount":14,"unpackedSize":62593,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiPaPTACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpkhxAAi0IkkzUkcFoSBeGKGT4Ebye4+jc+FDj7jA1KmMl2LB1lf7QE\r\n/lw4tS6xtt1XtflWCFvY5iQ5yNprbsnGRASW622ZETPdV/wm6kOCTTLw/DB8\r\ncHKz8t6phEvm8WjBeDA/WmltBkLocyGUa3UHZ+AzWFHVct4Ad4crwQoBDqIh\r\nn+kK6p4YG3RQNFi9oNdD84AHSTvLASBP1i9onL1P3xS9p0jwgA53yMH4OZHa\r\nTlwUD4IVr5s7TU55MFmFSTTjMpIYYP+C6eC8mflxuJ2qMg1N1lvxLa0PRsCP\r\nD6UVEvPbNfCrZHKXZaWIU7WBPOuNs2PpWdOccS/E3RX0ukQl9zmaHbTM99mD\r\ng/OgR4GI+LeG/rFZpB0STWlSmQ43eIraKDQuN/JrMJWRYqThDwlFxcXOZ00P\r\nT2mzbt2r/bZY9+ARH9jW6Dx/RscM0+dqIgvxk46NBjCIvdo6pIxx2uraP59T\r\nVb7sS53TNBuNGFJ3QfnkEl9m4Gs4vtG0E90GjpJunwO25YDeRwFp8SkNBclN\r\n01yJtApUzJbRpi1RxZxzmKEyZ2Wr4c2FRGfgk/FZIlz9Tw8KbkvclsL5BER0\r\nZkO5P58Ia1e9py9D+2UnqVp+crCV2ATI+F47z41+KhR0XA4Cpib6ZUOGwjQ3\r\n8LEVW7MHAuo5O2Om7B6ZBxwDGk8d0AXIVNw=\r\n=QO0z\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD6eWP31a7zXqKdGZOioMXWduNzFl695AjlND0aB5nISQIhANYoIzNV69O1NttE7iOa0Zn6otOBuG98/EXCm6F59o9M"}]},"_npmUser":{"name":"kelvindecosta","email":"decostakelvin@gmail.com"},"directories":{},"maintainers":[{"name":"kelvindecosta","email":"decostakelvin@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/api_1.0.0_1648206803047_0.8364609975198032"},"_hasShrinkwrap":false}},"time":{"created":"2022-03-25T11:13:22.936Z","1.0.0":"2022-03-25T11:13:23.198Z","modified":"2022-04-04T10:51:27.492Z"},"maintainers":[{"name":"kelvindecosta","email":"decostakelvin@gmail.com"}],"description":"A simple client for the Dotlas REST API","homepage":"https://github.com/dotlas/api-node-client#readme","keywords":["dotlas","location","geospatial","census","api","rest","client"],"repository":{"type":"git","url":"git+https://github.com/dotlas/api-node-client.git"},"author":{"name":"Dotlas, Inc.","email":"tech@dotlas.com"},"bugs":{"url":"https://github.com/dotlas/api-node-client/issues"},"license":"MIT","readme":"# @\\_dotlas/api\n\nA simple client for the [Dotlas REST API](https://api.dotlas.com/docs).\n\n## Installation\n\n### `npm`\n\n```bash\nnpm i @_dotlas/api\n```\n\n### `yarn`\n\n```bash\nyarn add @_dotlas/api\n```\n\n## Usage\n\n```js\nimport { Client } from \"@_dotlas/api\"\n\n// Create a client with your API key\nconst client = Client(\"<your-api-key>\")\n\n// Create a fetcher for the specific endpoint\nconst fetcher = client\n  .path(\"/socio-demographics/stats/{city}\")\n  .method(\"get\")\n  .create()\n\n// Call the fetcher\nfetcher({ city: \"New York\" })\n  .then(res => res.json())\n  .then(res => {\n    console.log(res.data)\n  })\n```\n","readmeFilename":"README.md"}