https://github.com/pratyush0898/efun
A collection of extra utility functions to enhance your JavaScript projects.
https://github.com/pratyush0898/efun
efun extra functions javascript-library utility
Last synced: 12 months ago
JSON representation
A collection of extra utility functions to enhance your JavaScript projects.
- Host: GitHub
- URL: https://github.com/pratyush0898/efun
- Owner: pratyush0898
- License: apache-2.0
- Created: 2024-05-29T12:42:06.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-05T05:24:53.000Z (about 2 years ago)
- Last Synced: 2025-02-28T19:42:04.295Z (over 1 year ago)
- Topics: efun, extra, functions, javascript-library, utility
- Language: TypeScript
- Homepage:
- Size: 46.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
## Efun - Extra Utility Functions
**efun** is a collection of utility functions designed to enhance your JavaScript projects. It provides a variety of functionalities for common tasks, making your code more concise and efficient.
## Features
* **Math Functions:** Perform basic arithmetic operations (addition, subtraction, multiplication, division), exponentiation, square root, trigonometric functions, and logarithms.
* **String Manipulation Functions:** Capitalize strings in various styles (first letter, all words, etc.) and reverse strings.
* **Array Manipulation Functions:** Reverse the order of elements in an array.
## Installation
Install the `efun` package using npm or yarn:
```bash
npm install efun
```
or
```bash
yarn add efun
```
## Usage
**1. Import the entire package:**
```javascript
import Efun from 'efun';
```
**2. Use individual functions:**
```javascript
const sum = Efun.aum(5, 3); // 8
const reversedString = Efun.reverseString('hello'); // olleh
const capitalizedWords = Efun.capitalizeFirstLetterOfEachWord('hello world'); // Hello World
```
**3. Alternatively, import specific functions (optional):**
```javascript
import { reverseArray } from 'efun';
import { capitalizeString } from 'efun';
const reversedArray = reverseArray([1, 2, 3]); // [3, 2, 1]
const capitalizedString = capitalizeString('javascript'); // Javascript
```
**Note:** When importing specific functions, you'll need to import each function you want to use from the `efun` package.
## Contributing
We welcome contributions from the community! To contribute to efun view [CONTRIBUTING](CONTRIBUTING.md) and , follow these steps:
1. Fork the repository.
2. Create a new branch:
```sh
git checkout -b feature/your-feature-name
```
3. Make your changes and commit them:
```sh
git commit -m "Add your commit message"
```
4. Push to the branch:
```sh
git push origin feature/your-feature-name
```
5. Open a pull request.
Please make sure your contributions align with our [code of conduct](./CODE_OF_CONDUCT.md).
## License
This project is licensed under the [Apache-2.0 License](LICENSE).