{"_id":"@allmysons/shortner","_rev":"4-81ac9104b41c0a80cc08dae564cd9d02","name":"@allmysons/shortner","dist-tags":{"latest":"2.2.0"},"versions":{"2.0.0":{"name":"@allmysons/shortner","version":"2.0.0","keywords":[],"license":"ISC","_id":"@allmysons/shortner@2.0.0","maintainers":[{"name":"ankurtiwari","email":"ankur@in.allmysons.com"},{"name":"cmattingly","email":"cmattingly@allmysons.com"},{"name":"umakantams","email":"umakant@in.allmysons.com"},{"name":"npmjesudas","email":"jdas@in.allmysons.com"},{"name":"rfine2018","email":"fine@allmysons.com"},{"name":"kundi9","email":"kdongare@in.allmysons.com"}],"dist":{"shasum":"8021e12a2a0a6aea923ccc65ee49bf320fcb7647","tarball":"https://registry.npmjs.org/@allmysons/shortner/-/shortner-2.0.0.tgz","fileCount":6,"integrity":"sha512-iWeV1VjSu0uDWZV3g9aZJp8lFpr5oSNIRr7U5Zy14aIdbMytC7bfyEh60nJmT5Nnc9yV0j+YHYxegZ8XWaE34Q==","signatures":[{"sig":"MEUCIH5T63hrwbyZnMNuGE0WI0v4vGx9UEEKn8Mw5zfEFFzuAiEAy+Qkd1PKidXRQob4vK9Fblnu6nVfvX5pF39fLeAs0T0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":79820},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":"./dist/index.js"},"gitHead":"65ed5e4072e8e4c30b43a4183f8f7f421f076df9","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"esbuild src/index.ts --bundle --format=esm --outfile=dist/index.js --minify && npm run tsbuild","format":"prettier --write \"src/**/*.{ts,tsx,md,json,js,jsx,mjs,graphql}\"","tsbuild":"tsc --project tsconfig.json --declaration --emitDeclarationOnly"},"_npmUser":{"name":"umakantams","email":"umakant@in.allmysons.com"},"_npmVersion":"10.9.2","description":"All My Sons URL Shortner utility","directories":{},"_nodeVersion":"22.15.0","dependencies":{"qs":"^6.14.0","axios":"^1.13.2"},"_hasShrinkwrap":false,"devDependencies":{"esbuild":"^0.25.12","prettier":"^3.6.2","@types/qs":"^6.14.0","typescript":"^5.9.3"},"_npmOperationalInternal":{"tmp":"tmp/shortner_2.0.0_1762541151135_0.2378463613843611","host":"s3://npm-registry-packages-npm-production"}},"2.1.0":{"name":"@allmysons/shortner","version":"2.1.0","keywords":[],"license":"ISC","_id":"@allmysons/shortner@2.1.0","maintainers":[{"name":"ankurtiwari","email":"ankur@in.allmysons.com"},{"name":"cmattingly","email":"cmattingly@allmysons.com"},{"name":"umakantams","email":"umakant@in.allmysons.com"},{"name":"npmjesudas","email":"jdas@in.allmysons.com"},{"name":"rfine2018","email":"fine@allmysons.com"},{"name":"kundi9","email":"kdongare@in.allmysons.com"}],"dist":{"shasum":"fb7bd86dbc08c204d898aefc52aba8e8a3cfb013","tarball":"https://registry.npmjs.org/@allmysons/shortner/-/shortner-2.1.0.tgz","fileCount":7,"integrity":"sha512-ZiB3eeysGgl90LbIy2aMZE1GVuTh/YGviX8sy/HHbN7sFKv3UX69njyIETzJlreXAfvosxqwbc4C/5Cl5n3FSQ==","signatures":[{"sig":"MEUCIQCjBH1hLeF/HgTiDiMznJsTMP6e0SM94b4bQn/HBb5VPwIgVxfUOuCJ/iuEfkJ5dhp57gp5sTn7T73iaOwcvRMrCQ8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":156588},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.mjs","exports":{".":{"import":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"aee13b497d8966982d929f855e530818f2298a69","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"npm run build:esm && npm run build:cjs && npm run tsbuild","format":"prettier --write \"src/**/*.{ts,tsx,md,json,js,jsx,mjs,graphql}\"","tsbuild":"tsc --project tsconfig.json --declaration --emitDeclarationOnly","build:cjs":"esbuild src/index.ts --bundle --format=cjs --outfile=dist/index.cjs --minify","build:esm":"esbuild src/index.ts --bundle --format=esm --outfile=dist/index.mjs --minify"},"_npmUser":{"name":"umakantams","email":"umakant@in.allmysons.com"},"_npmVersion":"10.9.2","description":"All My Sons URL Shortner utility","directories":{},"_nodeVersion":"22.15.0","dependencies":{"qs":"^6.14.0","axios":"^1.13.2"},"_hasShrinkwrap":false,"devDependencies":{"esbuild":"^0.25.12","prettier":"^3.6.2","@types/qs":"^6.14.0","typescript":"^5.9.3"},"_npmOperationalInternal":{"tmp":"tmp/shortner_2.1.0_1763727446736_0.4772103256465303","host":"s3://npm-registry-packages-npm-production"}},"2.2.0":{"name":"@allmysons/shortner","version":"2.2.0","description":"All My Sons URL Shortner utility","type":"module","main":"dist/index.cjs","module":"dist/index.mjs","types":"dist/index.d.ts","exports":{".":{"require":"./dist/index.cjs","import":"./dist/index.mjs","types":"./dist/index.d.ts"}},"scripts":{"tsbuild":"tsc --project tsconfig.json --declaration --emitDeclarationOnly","build":"npm run build:esm && npm run build:cjs && npm run tsbuild","build:esm":"esbuild src/index.ts --bundle --format=esm --outfile=dist/index.mjs --minify","build:cjs":"esbuild src/index.ts --bundle --format=cjs --outfile=dist/index.cjs --minify","format":"prettier --write \"src/**/*.{ts,tsx,md,json,js,jsx,mjs,graphql}\"","test":"echo \"Error: no test specified\" && exit 1"},"keywords":[],"license":"ISC","dependencies":{"axios":"^1.13.2","qs":"^6.14.0"},"devDependencies":{"@types/qs":"^6.14.0","esbuild":"^0.25.12","prettier":"^3.6.2","typescript":"^5.9.3"},"_id":"@allmysons/shortner@2.2.0","gitHead":"a05b5e74eab394db2ab23e3239a1e52867bb6b56","_nodeVersion":"22.15.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-UkiHpMtWLuL/czW+u1s/VYqR50V6XOge7VXHSY0c1imAVKSOEpf5MCGC3h+YpEgU6sd6LmcgMdSv2XeIv8Maiw==","shasum":"d49576097e60adc80d3a4054ed096a325e724455","tarball":"https://registry.npmjs.org/@allmysons/shortner/-/shortner-2.2.0.tgz","fileCount":7,"unpackedSize":156624,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIF9Qsgti/DHr+uyMSTa8eMcmdf8+MPUTtHQ0ZhVIJzlqAiEA6GZd1JIeORpJzJvQH5TNavxCKhhA10UXZmsZg3LIDeY="}]},"_npmUser":{"name":"umakantams","email":"umakant@in.allmysons.com"},"directories":{},"maintainers":[{"name":"ankurtiwari","email":"ankur@in.allmysons.com"},{"name":"cmattingly","email":"cmattingly@allmysons.com"},{"name":"umakantams","email":"umakant@in.allmysons.com"},{"name":"npmjesudas","email":"jdas@in.allmysons.com"},{"name":"rfine2018","email":"fine@allmysons.com"},{"name":"kundi9","email":"kdongare@in.allmysons.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/shortner_2.2.0_1763728234089_0.5093064871002964"},"_hasShrinkwrap":false}},"time":{"created":"2025-11-07T18:45:51.134Z","modified":"2025-11-21T12:30:34.518Z","2.0.0":"2025-11-07T18:45:51.351Z","2.1.0":"2025-11-21T12:17:26.915Z","2.2.0":"2025-11-21T12:30:34.282Z"},"license":"ISC","keywords":[],"description":"All My Sons URL Shortner utility","maintainers":[{"name":"ankurtiwari","email":"ankur@in.allmysons.com"},{"name":"cmattingly","email":"cmattingly@allmysons.com"},{"name":"umakantams","email":"umakant@in.allmysons.com"},{"name":"npmjesudas","email":"jdas@in.allmysons.com"},{"name":"rfine2018","email":"fine@allmysons.com"},{"name":"kundi9","email":"kdongare@in.allmysons.com"}],"readme":"## AMS Shortner\n\nAMS Shortner is URL shortner utility used across All My Sons for shortening the link\n\n## How to use\n\n1. Install the package `npm install @allmysons/shortner --save`\n\n2. Ready to shorten the link in the code\n\n```js\nimport getShortUrl from '@allmysons/shortner';\nimport sendEmail from './some-email-lib';\n\nconst response = await getShortUrl('https://umakant.com');\nif (response?.url) {\n  const link = response.url;\n  await sendEmail('demo@allmysons.com', `Please <a href=\"${link}\">click here to join the group.`);\n} else {\n  throw new Error(response.message);\n}\n```\n\n## Notes\n\n- This is ESM only build\n\n- For CJS use version 1.0.2 which is at https://www.npmjs.com/package/ams-shortner\n\n## How to build & publish\n\n1. Fork a branch from master: `feature/<feature/change-name>`\n\n2. Once you are done writing code, increment version in package.json\n\n3. Commit your changes\n\n4. Post it build the package using `npm run build`\n\n5. If you need to validate, execute `npm link` in this package and `npm link ams-shortner` in testing repo.\n\n6. Once validation is done un link using `npm unlink ams-shortner` in testing repo.\n\n7. Raise a PR to merge in master\n\n8. Once PR is approved then login `npm login` and then npm `npm publish`\n\n9. Go to gihthub, create a tag with release notes\n","readmeFilename":"README.md"}