{"_id":"@dallotech/nestjs-sparrow-sms","_rev":"1-5fb09794e2416abf62a469a4dc626f16","name":"@dallotech/nestjs-sparrow-sms","dist-tags":{"latest":"0.0.2"},"versions":{"0.0.1":{"name":"@dallotech/nestjs-sparrow-sms","version":"0.0.1","description":"This is simple wrapper for Sparrow SMS. It supports sending SMS only, but later more will be added. Just ping us or open pull request and contribute :)","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"rimraf dist && tsc","prepublish":"npm run build"},"keywords":["nestjs","sparrowsms","api"],"author":{"name":"Dallo Tech Pvt. Ltd."},"license":"MIT","devDependencies":{"@nestjs/axios":"^3.0.0","@nestjs/common":"^10.2.7","@types/node":"^20.8.6","rimraf":"^5.0.5","rxjs":"^7.8.1"},"gitHead":"c8065af47267d713113213c2eff14d437ee1d2d7","_id":"@dallotech/nestjs-sparrow-sms@0.0.1","_nodeVersion":"16.17.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-Sb2Zq6xqIVXPDlbeIc4tFRgZXmDdA0uZeVa6QMpqn2OvxoducJmlc0liRQ4vkEyuSeRUCSL9riPIbyx2nqqLzQ==","shasum":"c9af84b5053e4f434f92ffa3a12798bed044d49c","tarball":"https://registry.npmjs.org/@dallotech/nestjs-sparrow-sms/-/nestjs-sparrow-sms-0.0.1.tgz","fileCount":24,"unpackedSize":19840,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCI0TbqSMfMpqmIl4zGlqrwaG79oqZLTNr94FPmqOscwwIgAncJXzJZW+cercB1SVaViRplv12YCiAmEmk/BxEl1jk="}]},"_npmUser":{"name":"sagarsishir51","email":"sagar.sishir51@gmail.com"},"directories":{},"maintainers":[{"name":"sagarsishir51","email":"sagar.sishir51@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nestjs-sparrow-sms_0.0.1_1698744023655_0.04169719322467924"},"_hasShrinkwrap":false},"0.0.2":{"name":"@dallotech/nestjs-sparrow-sms","version":"0.0.2","description":"This is simple wrapper for Sparrow SMS. It supports sending SMS only, but later more will be added. Just ping us or open pull request and contribute :)","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"rimraf dist && tsc","prepublish":"npm run build"},"keywords":["nestjs","sparrowsms","api"],"author":{"name":"Dallo Tech Pvt. Ltd."},"license":"MIT","devDependencies":{"@nestjs/axios":"^3.0.0","@nestjs/common":"^10.2.7","@types/node":"^20.8.6","rimraf":"^5.0.5","rxjs":"^7.8.1"},"gitHead":"b3970adea770b220f6441612767e48b525ab7435","_id":"@dallotech/nestjs-sparrow-sms@0.0.2","_nodeVersion":"16.17.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-LMJZd0vkFfevbAV7T1iF/2DuTtoqf1wOSQ8SeqaTminDiAH6wGDnhL+b0ohJ2oaY/o8k+Z0kBs5IBEKnSRlLHA==","shasum":"6eb8a2ad7ad6d3209d1ca20ddffdc8570f7da2e9","tarball":"https://registry.npmjs.org/@dallotech/nestjs-sparrow-sms/-/nestjs-sparrow-sms-0.0.2.tgz","fileCount":24,"unpackedSize":19862,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGrASVWiFqvPiWO/UvubzfUmPgItn47jTro+d/dV1vCGAiEAp3HOAdE5WkGj+ZTrIi/tFbrNuxSoiQbSfujcx3eIJhs="}]},"_npmUser":{"name":"sagarsishir51","email":"sagar.sishir51@gmail.com"},"directories":{},"maintainers":[{"name":"sagarsishir51","email":"sagar.sishir51@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nestjs-sparrow-sms_0.0.2_1698744347227_0.5325564264218916"},"_hasShrinkwrap":false}},"time":{"created":"2023-10-31T09:20:23.574Z","0.0.1":"2023-10-31T09:20:23.836Z","modified":"2023-10-31T09:25:47.660Z","0.0.2":"2023-10-31T09:25:47.458Z"},"maintainers":[{"name":"sagarsishir51","email":"sagar.sishir51@gmail.com"}],"description":"This is simple wrapper for Sparrow SMS. It supports sending SMS only, but later more will be added. Just ping us or open pull request and contribute :)","keywords":["nestjs","sparrowsms","api"],"author":{"name":"Dallo Tech Pvt. Ltd."},"license":"MIT","readme":"## Introduction\nThis is simple wrapper for Sparrow SMS. It supports sending SMS only, but later more will be added. Just ping me or open pull request and contribute :)\n## Installation\n\n```bash\n$ npm i --save @dallotech/nestjs-sparrow-sms \n$ yarn add @dallotech/nestjs-sparrow-sms \n```\n\n#### Importing module Async\n\n```typescript\nimport { SparrowSmsModule } from 'nestjs-sparrow-sms';\n@Module({\n  imports: [\n      SparrowSmsModule.registerAsync({\n          imports: [ConfigModule],\n          inject: [ConfigService],\n          useFactory: (configService: ConfigService<AllConfig>) => ({\n              identity: configService.get(\"----your key-----\", {infer: true}),\n              mode: configService.get(\"----your key-----\", {infer: true}),\n              token: configService.get(\"----your key-----\", {infer: true}),\n          })\n      }),\n  ],\n  providers: [],\n  exports: [],\n})\nexport class YourModule {}\n```\n#### Calling Send Method to send SMS\n\n```typescript\nimport { SparrowSmsService,SparrowSmsRequestDto } from 'nestjs-sparrow-sms';\n\n@Injectable()\nexport class YourService {\n  constructor(private sparrowSmsService: SparrowSmsService) {}\n    \n    async anyCustomFunction(){\n        //...your code\n        const sparrowSmsRequestDto: SparrowSmsRequestDto = {\n      to: 'SMS RECEIVING NUMBER',\n      text: 'SMS MESSAGE'\n    };\n    await this.sparrowSmsService.send(sparrowSmsRequestDto);\n  }\n}\n```\n## License\n\nThis package is MIT licensed.\n","readmeFilename":"README.md"}