{"_id":"@ainellc/capacitor-device-model","name":"@ainellc/capacitor-device-model","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"@ainellc/capacitor-device-model","version":"0.0.1","description":"Get device model information for iOS and Android","main":"dist/plugin.cjs.js","module":"dist/esm/index.js","types":"dist/esm/index.d.ts","unpkg":"dist/plugin.js","author":{"name":"Aine LLC."},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/ganessaa/capacitor-device-model.git"},"bugs":{"url":"https://github.com/ganessaa/capacitor-device-model/issues"},"keywords":["capacitor","plugin","native"],"scripts":{"verify":"npm run verify:ios && npm run verify:android && npm run verify:web","verify:ios":"xcodebuild -scheme GanessaaCapacitorDeviceModel -destination generic/platform=iOS","verify:android":"cd android && ./gradlew clean build test && cd ..","verify:web":"npm run build","lint":"npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint","fmt":"npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format","eslint":"eslint . --ext ts","prettier":"prettier \"**/*.{css,html,ts,js,java}\" --plugin=prettier-plugin-java","swiftlint":"node-swiftlint","docgen":"docgen --api DeviceModelPlugin --output-readme README.md --output-json dist/docs.json","build":"npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs","clean":"rimraf ./dist","watch":"tsc --watch","prepublishOnly":"npm run build"},"devDependencies":{"@capacitor/android":"^7.0.0","@capacitor/core":"^7.0.0","@capacitor/docgen":"^0.3.0","@capacitor/ios":"^7.0.0","@ionic/eslint-config":"^0.4.0","@ionic/prettier-config":"^4.0.0","@ionic/swiftlint-config":"^2.0.0","@types/node":"^24.7.0","eslint":"^8.57.0","prettier":"^3.4.2","prettier-plugin-java":"^2.6.6","rimraf":"^6.0.1","rollup":"^4.30.1","swiftlint":"^2.0.0","typescript":"~5.7.0"},"peerDependencies":{"@capacitor/core":">=7.0.0"},"prettier":"@ionic/prettier-config","swiftlint":"@ionic/swiftlint-config","eslintConfig":{"extends":"@ionic/eslint-config/recommended"},"capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"_id":"@ainellc/capacitor-device-model@0.0.1","gitHead":"444a15286a58b3ba3454c57d508857a73785540f","homepage":"https://github.com/ganessaa/capacitor-device-model#readme","_nodeVersion":"20.19.5","_npmVersion":"10.8.2","dist":{"integrity":"sha512-/Qno2zaZ+oNxtPB/Li8yzRWNXd5uLPbzENfr7eELER3CM6bgek8eUydrnDyrb+Xy2nRceAiT0yXZsXsIpiXNsQ==","shasum":"ac9194c50b360cb475c45a943ed8543b78d4bfdf","tarball":"https://registry.npmjs.org/@ainellc/capacitor-device-model/-/capacitor-device-model-0.0.1.tgz","fileCount":27,"unpackedSize":15829,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCICiuDx1u9YUlyKOWwYAr+aV0/4+m5cWKBGCzBcTgw0mwAiBK2T8F4XA8eqqhNdIqDQ3RlzHCGXNbpOmmCQ7bGcWkoA=="}]},"_npmUser":{"name":"ainellc","email":"ganessa+npm@iaine.com"},"directories":{},"maintainers":[{"name":"ainellc","email":"ganessa+npm@iaine.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/capacitor-device-model_0.0.1_1759930042546_0.7276568871602334"},"_hasShrinkwrap":false}},"time":{"created":"2025-10-08T13:27:22.472Z","0.0.1":"2025-10-08T13:27:22.711Z","modified":"2025-10-08T13:27:23.004Z"},"maintainers":[{"name":"ainellc","email":"ganessa+npm@iaine.com"}],"description":"Get device model information for iOS and Android","homepage":"https://github.com/ganessaa/capacitor-device-model#readme","keywords":["capacitor","plugin","native"],"repository":{"type":"git","url":"git+https://github.com/ganessaa/capacitor-device-model.git"},"author":{"name":"Aine LLC."},"bugs":{"url":"https://github.com/ganessaa/capacitor-device-model/issues"},"license":"MIT","readme":"# @ganessaa/capacitor-device-model\n\nGet device model information for iOS and Android\n\nThis Capacitor plugin provides a simple way to retrieve the device model name on both iOS and Android platforms.\n\n## Install\n\n```bash\nnpm install @ganessaa/capacitor-device-model\nnpx cap sync\n```\n\n## Usage\n\n```typescript\nimport { DeviceModel } from '@ganessaa/capacitor-device-model';\n\nconst getDeviceInfo = async () => {\n  const result = await DeviceModel.getModel();\n  console.log('Device Model:', result.model);\n  // iOS example output: \"iPhone 14 Pro\"\n  // Android example output: \"SM-G991B\"\n};\n```\n\n## API\n\n<docgen-index>\n\n* [`getModel()`](#getmodel)\n\n</docgen-index>\n\n<docgen-api>\n<!--Update the source file JSDoc comments and rerun docgen to update the docs below-->\n\n### getModel()\n\n```typescript\ngetModel() => Promise<{ model: string; }>\n```\n\n**Returns:** <code>Promise&lt;{ model: string; }&gt;</code>\n\n--------------------\n\n</docgen-api>\n","readmeFilename":"README.md","_rev":"1-23a3c0350bb99fc4fd2be2c996851c7c"}