{"_id":"@artbelt/string-manipulation-tools","name":"@artbelt/string-manipulation-tools","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@artbelt/string-manipulation-tools","version":"1.0.0","description":"Tools for common string operations, like padding, trimming, case conversions, etc.","main":"./src/index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/Artbelt/String-Manipulation.git"},"keywords":[],"author":{"name":"ArtB"},"license":"MIT","_id":"@artbelt/string-manipulation-tools@1.0.0","gitHead":"2cf819def5948e84ebc25ec10d66bee8c291abe2","bugs":{"url":"https://github.com/Artbelt/String-Manipulation/issues"},"homepage":"https://github.com/Artbelt/String-Manipulation#readme","_nodeVersion":"20.16.0","_npmVersion":"10.8.1","dist":{"integrity":"sha512-5bSFaZMbCyOK3697UtcIKOuAHNGmUykjhmEM6o2zVsu3lHEdb9+chLtZ2Nt8VN2+NS9KxnPIGiDJZe56xBVYNg==","shasum":"830a1b284596331c1fe31e614f8e3b5f9b5011cf","tarball":"https://registry.npmjs.org/@artbelt/string-manipulation-tools/-/string-manipulation-tools-1.0.0.tgz","fileCount":3,"unpackedSize":3338,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAleQWw2jqEHuNYTCKuJipPm104b7tua+6YYDwxUgWh6AiArcKhgElh7uRv6nXcMXKv33Dc2E1wKZHHKFo0DQd+ldA=="}]},"_npmUser":{"name":"artbelt","email":"artbelt.pooh@gmail.com"},"directories":{},"maintainers":[{"name":"artbelt","email":"artbelt.pooh@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/string-manipulation-tools_1.0.0_1722269504722_0.9430535593944371"},"_hasShrinkwrap":false}},"time":{"created":"2024-07-29T16:11:44.613Z","1.0.0":"2024-07-29T16:11:44.880Z","modified":"2024-07-29T16:11:45.115Z"},"maintainers":[{"name":"artbelt","email":"artbelt.pooh@gmail.com"}],"description":"Tools for common string operations, like padding, trimming, case conversions, etc.","homepage":"https://github.com/Artbelt/String-Manipulation#readme","keywords":[],"repository":{"type":"git","url":"git+https://github.com/Artbelt/String-Manipulation.git"},"author":{"name":"ArtB"},"bugs":{"url":"https://github.com/Artbelt/String-Manipulation/issues"},"license":"MIT","readme":"# String Manipulation Tools\n\nA set of tools for string manipulation in JavaScript. This package includes common string operations such as padding, trimming, and case conversion.\n\n## Installation\n\nYou can install this package using npm:\n\nnpm install string-manipulation-tools\n\n## Usage\n\nFirst, require the package in your JavaScript file:\n\nconst StringManipulationTools = require('string-manipulation-tools');\n\n### Methods\n\n#### `toTitleCase(str)`\n\nConverts a string to title case.\n\nconsole.log(StringManipulationTools.toTitleCase(\"hello world\")); // \"Hello World\"\n\n#### `padString(str, length, char = ' ')`\n\nPads a string to a given length with a specified character.\n\nconsole.log(StringManipulationTools.padString(\"hello\", 10, '*')); // \"**hello***\"\n\n#### `trimString(str)`\n\nTrims whitespace from the beginning and end of a string.\n\nconsole.log(StringManipulationTools.trimString(\"  hello  \")); // \"hello\"\n\n#### `toCamelCase(str)`\n\nConverts a string to camel case.\n\nconsole.log(StringManipulationTools.toCamelCase(\"Hello World\")); // \"helloWorld\"\n\n#### `reverseString(str)`\n\nReverses a string.\n\nconsole.log(StringManipulationTools.reverseString(\"hello\")); // \"olleh\"\n\n#### `isPalindrome(str)`\n\nChecks if a string is a palindrome.\n\nconsole.log(StringManipulationTools.isPalindrome(\"A man a plan a canal Panama\")); // true\n\n## License\n\nThis project is licensed under the MIT License.","readmeFilename":"README.md"}