{"_id":"@asuarez18/my-first-package","_rev":"2-b98f06b0351c43c4f100672e5180ca94","name":"@asuarez18/my-first-package","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@asuarez18/my-first-package","version":"1.0.0","keywords":[],"author":"","license":"ISC","_id":"@asuarez18/my-first-package@1.0.0","maintainers":[{"name":"asuarez18","email":"alejandro.sg.1825@gmail.com"}],"dist":{"shasum":"33dc13b431dd8317f450ff08ec7094d9d8c52d7f","tarball":"https://registry.npmjs.org/@asuarez18/my-first-package/-/my-first-package-1.0.0.tgz","fileCount":2,"integrity":"sha512-5IdHi5vQ/TKDCTluZZA44V6l/ip23/xixFxl7BxCw6a+ZvZqiTT8PL1hl6oCADJN0VNHOIsg5fN99HJqPeMC5w==","signatures":[{"sig":"MEYCIQDKtlwWwMczuDabpSiCQMmFhyuMIdHfX0ps+MZ1dVPXmwIhAJAK97hBRtt8wz0QXJwqwdkDtaioMFxy+Ga+pt92yE2f","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":356},"main":"index.js","type":"module","scripts":{"test":"echo \"Error: no test specified\" && exit 1","start":"node index.js"},"_npmUser":{"name":"asuarez18","email":"alejandro.sg.1825@gmail.com"},"_npmVersion":"8.19.4","description":"","directories":{},"_nodeVersion":"22.13.1","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/my-first-package_1.0.0_1770058657745_0.3751258899330139","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@asuarez18/my-first-package","version":"1.0.1","description":"A versatile collection of JavaScript utilities for string formatting, HTML entity conversion, and mathematical operations","type":"module","main":"index.js","scripts":{"start":"node index.js","test":"echo \"Error: no test specified\" && exit 1"},"keywords":["utils","string","html-entities","password-generator"],"author":{"name":"Alejandro Suarez"},"license":"ISC","gitHead":"82c4b9724ed4edcb3c4041b77efb45b888bb6761","_id":"@asuarez18/my-first-package@1.0.1","_nodeVersion":"22.13.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-d/BcEVIN8AdVO/0KF4mOXY19Vlc3WFMQkOLkUwpKewZcYcTCkRZD1T0wIpsLSkdXJCoDdzJx0Vf+ocZoWqzAwQ==","shasum":"4a7fae356107262226b9fe41b1e4212a885159b3","tarball":"https://registry.npmjs.org/@asuarez18/my-first-package/-/my-first-package-1.0.1.tgz","fileCount":9,"unpackedSize":6403,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIFqhpixKEOXTJ3OkmVDH3CgIYvoQIXlExMGXcOyeKI+oAiBudtQl8miAvhgNOEXoM1f0Ykb2u6MV3LC3BTkHGF/XpA=="}]},"_npmUser":{"name":"asuarez18","email":"alejandro.sg.1825@gmail.com"},"directories":{},"maintainers":[{"name":"asuarez18","email":"alejandro.sg.1825@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/my-first-package_1.0.1_1770108471805_0.45913061453098214"},"_hasShrinkwrap":false}},"time":{"created":"2026-02-02T18:57:37.649Z","modified":"2026-02-03T08:47:52.046Z","1.0.0":"2026-02-02T18:57:37.892Z","1.0.1":"2026-02-03T08:47:51.936Z"},"license":"ISC","keywords":["utils","string","html-entities","password-generator"],"maintainers":[{"name":"asuarez18","email":"alejandro.sg.1825@gmail.com"}],"readme":"# @asuarez18/my-first-package\r\nA lightweight collection of essential JavaScript utility functions for string manipulation, security, and mathematical operations.\r\n\r\n---\r\n\r\n### 🚀 Installation\r\nInstall the package via npm:\r\n```sh\r\nnpm install @asuarez18/my-first-package\r\n```\r\n\r\n### 🛠 Usage\r\nSince this package uses ECMAScript Modules (ESM), you can import the functions directly into your project.\r\n```js\r\nimport { convertHTML, sumAll, generatePassword, titleCase } from '@asuarez18/my-first-package';\r\n```\r\n\r\n---\r\n\r\n### 📚 API Reference\r\n##### `convertHTML(str)`\r\nConverts characters `&`, `<`, `>`, `\"`, and `'` in a string to their corresponding HTML entities. Use this to prevent XSS attacks or display raw code in HTML.\r\n- **Arguments:** `str` (string)\r\n- **Returns:** (string) The escaped string.\r\n```js\r\nconvertHTML(\"Dolce & Gabbana\"); // \"Dolce &amp; Gabbana\"\r\n```\r\n\r\n##### `sumAll([num1, num2])`\r\nTakes an array of two numbers and returns the sum of those two numbers plus the sum of all numbers between them. The lowest number will not always come first.\r\n- **Arguments:** `arr` (Array)\r\n- **Returns:** (Number) Total sum.\r\n```js\r\nsumAll([1, 4]); // 10 (1+2+3+4)\r\nsumAll([10, 5]); // 45\r\n```\r\n\r\n##### `generatePassword(lenPass)`\r\nGenerates a random secure password including uppercase, lowercase, numbers, and special characters.\r\n- **Arguments:** `lenPass` (Number) - The desired length.\r\n- **Returns:** (string) The generated password.\r\n```js\r\ngeneratePassword(12); // \"aB3!jK9@pQ1$\"\r\n```\r\n\r\n##### `titleCase(title)`\r\nConverts a string to Title Case, where the first letter of every word is capitalized and the rest are lowercase.\r\n- **Arguments:** `title` (string)\r\n- **Returns:** (string) The formatted string.\r\n```js\r\ntitleCase(\"I'm a LITTLE tea pot\"); // \"I'm A Little Tea Pot\"\r\n```\r\n\r\n---\r\n\r\n### 📝 License\r\nThis project is licensed under the **ISC License**.\r\n\r\n","readmeFilename":"README.md","description":"A versatile collection of JavaScript utilities for string formatting, HTML entity conversion, and mathematical operations","author":{"name":"Alejandro Suarez"}}