{"_id":"@apiverve/advice","_rev":"6-941f85e56c855b0d586c4b1437390e19","name":"@apiverve/advice","dist-tags":{"latest":"1.2.0"},"versions":{"1.1.9":{"name":"@apiverve/advice","version":"1.1.9","keywords":["advice generator","advice generation","advice generate","advice api","advice tool"],"author":{"url":"http://apiverve.com/","name":"APIVerve","email":"hello@apiverve.com"},"license":"MIT","_id":"@apiverve/advice@1.1.9","maintainers":[{"name":"charifield","email":"charifield@gmail.com"},{"name":"apivervehq","email":"hello@apiverve.com"}],"homepage":"https://apiverve.com/marketplace/api/advice?utm_source=npm","bugs":{"url":"https://github.com/apiverve/advice-API/issues"},"dist":{"shasum":"2fda06d3225ed1ff55f51f90a55f47ec946b4584","tarball":"https://registry.npmjs.org/@apiverve/advice/-/advice-1.1.9.tgz","fileCount":5,"integrity":"sha512-2YjG0Zq2Ccl+e732TfXEuMRn/gy1hgQxaB9vh2r7MRdtWmbXSh4nV9A2fvntqp9jzcGcvqPpXlDUJZ5p5KYfQA==","signatures":[{"sig":"MEQCIG9BxtmGrj0G7P89RgZcrgR9m6zcKXrs+RgnApP/TS8lAiBtbJAY97ljmlVvrIU/TeG9a5SSbrTS6zpnL9/F9evNvw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":8059},"main":"index.js","gitHead":"af6ea5c164252de281120b24a402e4ccb90b2195","scripts":{"test":"mocha"},"_npmUser":{"name":"apivervehq","email":"hello@apiverve.com"},"repository":{"url":"git+https://github.com/apiverve/advice-API.git","type":"git"},"_npmVersion":"10.9.2","description":"Advice Generator is a simple tool for generating random pieces of advice. It returns a random piece of advice.","directories":{},"_nodeVersion":"20.13.1","dependencies":{"axios":"1.7.9","promise":"^8.3.0","node-fetch":"^3.3.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^5.1.2","mocha":"^11.0.1","dotenv":"^16.4.7"},"_npmOperationalInternal":{"tmp":"tmp/advice_1.1.9_1743135768431_0.7705473283572126","host":"s3://npm-registry-packages-npm-production"}},"1.1.10":{"name":"@apiverve/advice","version":"1.1.10","keywords":["advice generator","advice generation","advice generate","advice api","advice tool"],"author":{"url":"http://apiverve.com/","name":"APIVerve","email":"hello@apiverve.com"},"license":"MIT","_id":"@apiverve/advice@1.1.10","maintainers":[{"name":"charifield","email":"charifield@gmail.com"},{"name":"apivervehq","email":"hello@apiverve.com"}],"homepage":"https://apiverve.com/marketplace/advice?utm_source=npm","bugs":{"url":"https://github.com/apiverve/advice-API/issues"},"dist":{"shasum":"4517f32ff7b13dd12e4737169bf8fc73f621affd","tarball":"https://registry.npmjs.org/@apiverve/advice/-/advice-1.1.10.tgz","fileCount":7,"integrity":"sha512-U4sUaBhaXv1WWgndivthLCQ8K3SOzm6sEcyGVGIJ6NZZ8gkt6woAX2OrkcFf1i6uJa+82oTg8i9Rh8DyRsIpBw==","signatures":[{"sig":"MEUCIC2TeYVh55tCht7blGuYgp8BNnNpKpJ3ZRHqQMxDy4y9AiEA2tHDq0Fkgm56s/srAoshq0I9Nj9fUnzChIOaSPQ32Lw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":11971},"main":"index.js","types":"index.d.ts","gitHead":"a9230a6cb835ac16bc186206319cc0cffdadedd3","scripts":{"test":"mocha","example":"node examples/basic.js"},"_npmUser":{"name":"apivervehq","email":"hello@apiverve.com"},"repository":{"url":"git+https://github.com/apiverve/advice-API.git","type":"git"},"_npmVersion":"10.9.3","description":"Advice Generator is a simple tool for generating random pieces of advice. It returns a random piece of advice.","directories":{},"_nodeVersion":"20.13.1","dependencies":{"axios":"1.8.4","promise":"^8.3.0","node-fetch":"^3.3.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^5.1.2","mocha":"^11.0.1","dotenv":"^16.4.7"},"_npmOperationalInternal":{"tmp":"tmp/advice_1.1.10_1762578689030_0.6632333380490352","host":"s3://npm-registry-packages-npm-production"}},"1.1.12":{"name":"@apiverve/advice","version":"1.1.12","keywords":["advice generator","advice generation","advice generate","advice api","advice tool"],"author":{"url":"http://apiverve.com/","name":"APIVerve","email":"hello@apiverve.com"},"license":"MIT","_id":"@apiverve/advice@1.1.12","maintainers":[{"name":"charifield","email":"charifield@gmail.com"},{"name":"apivervehq","email":"hello@apiverve.com"}],"homepage":"https://apiverve.com/marketplace/advice?utm_source=npm","bugs":{"url":"https://github.com/apiverve/advice-api/issues"},"dist":{"shasum":"259b47c6498675aed537523c7082d79480f98716","tarball":"https://registry.npmjs.org/@apiverve/advice/-/advice-1.1.12.tgz","fileCount":7,"integrity":"sha512-Ta9FJrPwkR11pAMPr+Jgfk7PNXYCc6qo/ylmmSROSGoovrvOFakYgGDs70BRVBnvbV67+BaN8LX67iHsil4z9Q==","signatures":[{"sig":"MEQCIGUPT4KFMwbvH0Cg8Wf5eSyrPn54Bq3PcizwFoBaBt2XAiB4fUYP1PeVy/hFl1QgI4AVm4OwLUFB93muc/kP8n6/3Q==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":12438},"main":"index.js","types":"index.d.ts","gitHead":"c20be9302b131ee4cd948af4a4a425ae3c7f5266","scripts":{"test":"mocha","example":"node examples/basic.js"},"_npmUser":{"name":"apivervehq","email":"hello@apiverve.com"},"repository":{"url":"git+https://github.com/apiverve/advice-api.git","type":"git","directory":"npm"},"_npmVersion":"10.9.3","description":"Advice Generator is a simple tool for generating random pieces of advice. It returns a random piece of advice.","directories":{},"_nodeVersion":"20.13.1","dependencies":{"axios":"1.13.2","promise":"^8.3.0","node-fetch":"^3.3.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^5.1.2","mocha":"^11.0.1","dotenv":"^16.4.7"},"_npmOperationalInternal":{"tmp":"tmp/advice_1.1.12_1765258086089_0.705459582978404","host":"s3://npm-registry-packages-npm-production"}},"1.1.13":{"name":"@apiverve/advice","version":"1.1.13","keywords":[],"author":{"url":"https://apiverve.com","name":"APIVerve","email":"hello@apiverve.com"},"license":"MIT","_id":"@apiverve/advice@1.1.13","maintainers":[{"name":"charifield","email":"charifield@gmail.com"},{"name":"apivervehq","email":"hello@apiverve.com"}],"homepage":"https://apiverve.com/marketplace/advice?utm_source=npm&utm_medium=homepage","bugs":{"url":"https://github.com/apiverve/advice-api/issues"},"dist":{"shasum":"ae83b9f10ef69329abe959b8d6711209f437da2b","tarball":"https://registry.npmjs.org/@apiverve/advice/-/advice-1.1.13.tgz","fileCount":5,"integrity":"sha512-rokGAI8HJlrdcXECgZyW2HC3Zkpfwk3a0Hy8V25UMaN5zX4PPNw5c+mPlOq25pndZxrIFj5fySNzb+RAPyE4VA==","signatures":[{"sig":"MEUCIQD4Hjv7mwzjdmVG3janRN85kTefP8mqo2yqOjVD8QPqsgIgehR2KOLxHcvOI2NNineaExal+L0TKGCvXGPAXD74PUE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":16020},"main":"index.js","types":"index.d.ts","engines":{"node":">=14.0.0"},"gitHead":"ce2f1b5152a99be2e642b636c2eb1d1a27177511","scripts":{"test":"mocha","example":"node examples/basic.js"},"_npmUser":{"name":"charifield","email":"charifield@gmail.com"},"repository":{"url":"git+https://github.com/apiverve/advice-api.git","type":"git","directory":"npm"},"_npmVersion":"10.9.3","description":"Advice Generator is a simple tool for generating random pieces of advice. It returns a random piece of advice.","directories":{},"sideEffects":false,"_nodeVersion":"22.22.0","dependencies":{"axios":"1.13.2","promise":"^8.3.0","node-fetch":"^3.3.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^5.1.2","mocha":"^11.0.1","dotenv":"^16.4.7"},"_npmOperationalInternal":{"tmp":"tmp/advice_1.1.13_1771017360877_0.36189375181840244","host":"s3://npm-registry-packages-npm-production"}},"1.1.14":{"name":"@apiverve/advice","version":"1.1.14","keywords":[],"author":{"url":"https://apiverve.com","name":"APIVerve","email":"hello@apiverve.com"},"license":"MIT","_id":"@apiverve/advice@1.1.14","maintainers":[{"name":"charifield","email":"charifield@gmail.com"},{"name":"apivervehq","email":"hello@apiverve.com"}],"homepage":"https://apiverve.com/marketplace/advice?utm_source=npm&utm_medium=homepage","bugs":{"url":"https://github.com/apiverve/advice-api/issues"},"dist":{"shasum":"a5584fdc2d979e3c8dc63d818226385474c89a10","tarball":"https://registry.npmjs.org/@apiverve/advice/-/advice-1.1.14.tgz","fileCount":5,"integrity":"sha512-h4MdaWem/5lMyAeqbHfR2bylAthMnkj5GaflTEA/XftZ4aAJC2JB9dYO3mssa+e9ziQEUAkEgX2ytZmpVT/FGg==","signatures":[{"sig":"MEYCIQCxgGgZ5VpJUX123GRb2Wd08VqW0+iUuvTjXaN6mioY6wIhAOtRmLK3Ae1IV3qk/ZMetYs76xmpUSlTkoHQ8HJ9fcTp","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15729},"main":"index.js","types":"index.d.ts","engines":{"node":">=14.0.0"},"gitHead":"2f35257ac4df6e979213a38ff3974fd82a1cf5b1","scripts":{"test":"mocha","example":"node examples/basic.js"},"_npmUser":{"name":"charifield","email":"charifield@gmail.com"},"repository":{"url":"git+https://github.com/apiverve/advice-api.git","type":"git","directory":"npm"},"_npmVersion":"10.9.3","description":"Advice Generator is a simple tool for generating random pieces of advice. It returns a random piece of advice.","directories":{},"sideEffects":false,"_nodeVersion":"22.22.0","dependencies":{"axios":"1.13.2","promise":"^8.3.0","node-fetch":"^3.3.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^5.1.2","mocha":"^11.0.1","dotenv":"^16.4.7"},"_npmOperationalInternal":{"tmp":"tmp/advice_1.1.14_1771235416912_0.9943689049768374","host":"s3://npm-registry-packages-npm-production"}},"1.2.0":{"name":"@apiverve/advice","version":"1.2.0","description":"Advice Generator is a simple tool for generating random pieces of advice. It returns a random piece of advice.","main":"index.js","types":"index.d.ts","sideEffects":false,"engines":{"node":">=18.0.0"},"scripts":{"test":"mocha","example":"node examples/basic.js"},"repository":{"type":"git","url":"git+https://github.com/apiverve/advice-api.git","directory":"npm"},"keywords":[],"author":{"name":"APIVerve","email":"hello@apiverve.com","url":"https://apiverve.com"},"license":"MIT","bugs":{"url":"https://github.com/apiverve/advice-api/issues"},"homepage":"https://apiverve.com/marketplace/advice?utm_source=npm&utm_medium=homepage","devDependencies":{"mocha":"^11.0.1","chai":"^5.1.2","dotenv":"^16.4.7"},"dependencies":{"axios":"1.13.2","form-data":"^4.0.1"},"gitHead":"2878cdb345f00af84126a08bcc1be2b68ae96fec","_id":"@apiverve/advice@1.2.0","_nodeVersion":"24.15.0","_npmVersion":"11.13.0","dist":{"integrity":"sha512-SHuiyVjBUrusXjRfln3JA5NRit0i9IvjxysrkEC2VZ6+trrMEcw6ZF5aHlLEDpm8kStVZONlYq62WBZg36zu0Q==","shasum":"4dfb8d2eaba79e94789e10c0e6107b5e90cc11cf","tarball":"https://registry.npmjs.org/@apiverve/advice/-/advice-1.2.0.tgz","fileCount":5,"unpackedSize":16044,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIG6EMb2A/Bh6mLGclTjwCo0juSAZeoo/CQGniNxoUW3bAiBufkuEBO2Ysj8BAhEgwLAL5dgr5v2RmbOYi6RgTYL3BA=="}]},"_npmUser":{"name":"apivervehq","email":"hello@apiverve.com"},"directories":{},"maintainers":[{"name":"charifield","email":"charifield@gmail.com"},{"name":"apivervehq","email":"hello@apiverve.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/advice_1.2.0_1784146994555_0.1632728164292261"},"_hasShrinkwrap":false}},"time":{"created":"2025-03-28T04:22:48.326Z","modified":"2026-07-15T20:23:14.816Z","1.1.9":"2025-03-28T04:22:48.608Z","1.1.10":"2025-11-08T05:11:29.247Z","1.1.12":"2025-12-09T05:28:06.257Z","1.1.13":"2026-02-13T21:16:01.029Z","1.1.14":"2026-02-16T09:50:17.057Z","1.2.0":"2026-07-15T20:23:14.689Z"},"bugs":{"url":"https://github.com/apiverve/advice-api/issues"},"author":{"name":"APIVerve","email":"hello@apiverve.com","url":"https://apiverve.com"},"license":"MIT","homepage":"https://apiverve.com/marketplace/advice?utm_source=npm&utm_medium=homepage","keywords":[],"repository":{"type":"git","url":"git+https://github.com/apiverve/advice-api.git","directory":"npm"},"description":"Advice Generator is a simple tool for generating random pieces of advice. It returns a random piece of advice.","maintainers":[{"name":"charifield","email":"charifield@gmail.com"},{"name":"apivervehq","email":"hello@apiverve.com"}],"readme":"# Advice Generator API\r\n\r\nAdvice Generator is a simple tool for generating random pieces of advice. It returns a random piece of advice.\r\n\r\n![Build Status](https://img.shields.io/badge/build-passing-green)\r\n![Code Climate](https://img.shields.io/badge/maintainability-B-purple)\r\n![Prod Ready](https://img.shields.io/badge/production-ready-blue)\r\n[![npm version](https://img.shields.io/npm/v/@apiverve/advice.svg)](https://www.npmjs.com/package/@apiverve/advice)\r\n\r\nThis is a Javascript Wrapper for the [Advice Generator API](https://apiverve.com/marketplace/advice?utm_source=npm&utm_medium=readme)\r\n\r\n---\r\n\r\n## Installation\r\n\r\nUsing npm:\r\n```shell\r\nnpm install @apiverve/advice\r\n```\r\n\r\nUsing yarn:\r\n```shell\r\nyarn add @apiverve/advice\r\n```\r\n\r\n---\r\n\r\n## Configuration\r\n\r\nBefore using the Advice Generator API client, you have to setup your account and obtain your API Key.\r\nYou can get it by signing up at [https://apiverve.com](https://apiverve.com?utm_source=npm&utm_medium=readme)\r\n\r\n---\r\n\r\n## Quick Start\r\n\r\n[Get started with the Quick Start Guide](https://docs.apiverve.com/quickstart?utm_source=npm&utm_medium=readme)\r\n\r\nThe Advice Generator API documentation is found here: [https://docs.apiverve.com/ref/advice](https://docs.apiverve.com/ref/advice?utm_source=npm&utm_medium=readme).\r\nYou can find parameters, example responses, and status codes documented here.\r\n\r\n### Setup\r\n\r\n```javascript\r\nconst adviceAPI = require('@apiverve/advice');\r\nconst api = new adviceAPI({\r\n    api_key: '[YOUR_API_KEY]'\r\n});\r\n```\r\n\r\n---\r\n\r\n## Usage\r\n\r\n---\r\n\r\n### Perform Request\r\n\r\nUsing the API is simple. All you have to do is make a request. The API will return a response with the data you requested.\r\n\r\n```javascript\r\n// This API does not require a Query\r\n\r\napi.execute(function (error, data) {\r\n    if (error) {\r\n        return console.error(error);\r\n    } else {\r\n        console.log(data);\r\n    }\r\n});\r\n```\r\n\r\n---\r\n\r\n### Using Promises\r\n\r\nYou can also use promises to make requests. The API returns a promise that you can use to handle the response.\r\n\r\n```javascript\r\n// This API does not require a Query\r\n\r\napi.execute(query)\r\n    .then(data => {\r\n        console.log(data);\r\n    })\r\n    .catch(error => {\r\n        console.error(error);\r\n    });\r\n```\r\n\r\n---\r\n\r\n### Using Async/Await\r\n\r\nYou can also use async/await to make requests. The API returns a promise that you can use to handle the response.\r\n\r\n```javascript\r\nasync function makeRequest() {\r\n    // This API does not require a Query\r\n\r\n    try {\r\n        const data = await api.execute(query);\r\n        console.log(data);\r\n    } catch (error) {\r\n        console.error(error);\r\n    }\r\n}\r\n```\r\n\r\n---\r\n\r\n## Example Response\r\n\r\n```json\r\n{\n  \"status\": \"ok\",\n  \"error\": null,\n  \"data\": {\n    \"id\": \"3xx4VZSZ\",\n    \"advice\": \"Be creative and innovative.\",\n    \"lang\": \"en\"\n  }\n}\r\n```\r\n\r\n---\r\n\r\n## Customer Support\r\n\r\nNeed any assistance? [Get in touch with Customer Support](https://apiverve.com/contact?utm_source=npm&utm_medium=readme).\r\n\r\n---\r\n\r\n## Updates\r\n\r\nStay up to date by following [@apiverveHQ](https://twitter.com/apiverveHQ) on Twitter.\r\n\r\n---\r\n\r\n## Legal\r\n\r\nAll usage of the APIVerve website, API, and services is subject to the [APIVerve Terms of Service](https://apiverve.com/terms?utm_source=npm&utm_medium=readme), [Privacy Policy](https://apiverve.com/privacy?utm_source=npm&utm_medium=readme), and [Refund Policy](https://apiverve.com/refund?utm_source=npm&utm_medium=readme).\r\n\r\n---\r\n\r\n## License\r\nLicensed under the The MIT License (MIT)\r\n\r\nCopyright (&copy;) 2026 APIVerve, and EvlarSoft LLC\r\n\r\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\r\n\r\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r\n","readmeFilename":"README.md"}