{"_id":"@5pad/5pad-js","name":"@5pad/5pad-js","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@5pad/5pad-js","version":"1.0.0","description":"Client for 5pad.cz API","main":"./dist/index.js","module":"./dist/index.mjs","types":"./dist/index.d.ts","scripts":{"build":"tsup"},"author":{"name":"Sons of mom's friend"},"keywords":["czech","declination","vokativ"],"license":"MIT","devDependencies":{"ts-node":"^10.9.1","tsup":"^7.2.0","typescript":"^5.2.2"},"gitHead":"ce316d445b904c3cdce6fe2ed7fad512d2bc874a","_id":"@5pad/5pad-js@1.0.0","_nodeVersion":"19.1.0","_npmVersion":"9.1.2","dist":{"integrity":"sha512-i3730Ax7m9DH86/fFkvLM2OS/RBHFuBTmfoeb4/CFwgwfXbC8ouwF/uz7nEne/rqbroadPsoL/RCo9Ol3Ih+FQ==","shasum":"04df8d970e2f87f67277850a07db853c1358e48a","tarball":"https://registry.npmjs.org/@5pad/5pad-js/-/5pad-js-1.0.0.tgz","fileCount":8,"unpackedSize":16965,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC7V124E9iCpDzoQ9JOxwiGC3KIZgmbbZ+Hj1+F7i28uQIhAPzvuTY1KS5Yzg221de5QLK5Q9Z+i7zQUTFjYJJEq1+2"}]},"_npmUser":{"name":"mrfullset","email":"goncharovsasha16@gmail.com"},"directories":{},"maintainers":[{"name":"mrfullset","email":"goncharovsasha16@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/5pad-js_1.0.0_1699727408521_0.28372871465459726"},"_hasShrinkwrap":false}},"time":{"created":"2023-11-11T18:30:08.435Z","1.0.0":"2023-11-11T18:30:08.737Z","modified":"2023-11-11T18:30:09.018Z"},"maintainers":[{"name":"mrfullset","email":"goncharovsasha16@gmail.com"}],"description":"Client for 5pad.cz API","keywords":["czech","declination","vokativ"],"author":{"name":"Sons of mom's friend"},"license":"MIT","readme":"# `@5pad/js`\n\nAn isomorphic JavaScript client for [5pad.cz](https://5pad.cz)\n\n## Usage\n\nFirst of all, you need to install the library:\n\n`npm install @5pad/js`\n\nor\n\n`yarn add @5pad/js`\n\nThen you're able to import the library and create an API client:\n\n```js\nimport { createClient } from \"@5pad/5pad-js\";\n\nconst client = createClient(\"<API_KEY>\");\n```\n\nNow, you can use API:\n\n```js\n// name only\nclient.getDeclination({ name: \"Petr\" });\n// { \"name\": \"Petře\" }\n\n// name and last name\nclient.getDeclination({ name: \"Petr\", lastName: \"Svoboda\" });\n// { \"name\": \"Petře\", \"lastName\": \"Svobodo\" }\n\n// provide an optional 'sex' parameter for better accuracy\nclient.getDeclination({ name: \"Petra\", lastName: \"Svobodová\", sex: \"f\" });\n// { \"name\": \"Petro\", \"last_name\": \"Svobodová\" }\n```\n","readmeFilename":"README.md"}