
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
arrayCraft is a versatile utility package designed to level up your array and string handling skills! 🛠️ With arrayCraft, you can effortlessly manipulate arrays and strings like a pro. Whether you're sorting, filtering, or transforming data, this package
ArrayCraft is a powerful utility package designed to supercharge your array and string manipulation tasks in JavaScript. With a wide range of functions for arrays and strings, ArrayCraft simplifies common operations, making your coding experience more efficient and enjoyable.
sumArray
: Find the sum of all array elements.calculateAverage
: Calculate the average of array elements.findMaxValue
: Find the maximum element value in an array.isEmpty
: Check if an array is empty.removeDuplicates
: Remove duplicate elements from an array.arrayDifference
: Find the difference between two arrays.shuffleArray
: Randomly shuffle the elements of an array.minElement
: Find the minimum element in an array.maxElement
: Find the maximum element in an array.containsElement
: Check if an element is present in an array.removeFalsyValues
: Remove all the falsy values from an array.getRandomElement
: Return random element from an array.capitalizeFirstLetter
: Capitalize the first letter of a string.toTitleCase
: Convert a string into title case.reverseString
: Reverse a string.isPalindrome
: Check if a string is a palindrome.generateRandomString
: Generate a random string of a specified length.toCamelCase
: Convert String into Camel case.removeWhitespace
: Remove All the white spaces in string.removeHtmlTags
: Remove HTML tag in String.You can install ArrayCraft via npm:
npm install arraycraft
const arrayCraft = require("arraycraft");
// Example usage of array functions
const numbers = [1, 2, 3, 4, 5];
console.log(arrayCraft.sumArray(numbers)); // Output: 15
// Example usage of string functions
console.log(arrayCraft.capitalizeFirstLetter("hello")); // Output: Hello
Contributions are welcome! If you have ideas for improvements or new features, feel free to open an issue or submit a pull request on GitHub.
ArrayCraft is licensed under the MIT License.
FAQs
arrayCraft is a versatile utility package designed to level up your array and string handling skills! 🛠️ With arrayCraft, you can effortlessly manipulate arrays and strings like a pro. Whether you're sorting, filtering, or transforming data, this package
The npm package arraycraft receives a total of 0 weekly downloads. As such, arraycraft popularity was classified as not popular.
We found that arraycraft demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.