You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

arraycraft

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

arraycraft

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

1.0.0
unpublished
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

ArrayCraft 🛠️

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.

Array Functions

  • 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.

String Functions

  • 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.

Installation

You can install ArrayCraft via npm:

npm install arraycraft

Usage

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

Why ArrayCraft?

  • Efficiency: Perform common array and string operations with ease.
  • Flexibility: Supports various data types and scenarios.
  • Reliability: Well-tested functions for reliable results.
  • Simplicity: Clean and straightforward API for seamless integration.

Contribution

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.

License

ArrayCraft is licensed under the MIT License.

Keywords

array

FAQs

Package last updated on 17 Mar 2024

Did you know?

Socket

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.

Install

Related posts