Coder Social home page Coder Social logo

pratyush0898 / efun Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 48 KB

A collection of extra utility functions to enhance your JavaScript projects.

License: Apache License 2.0

TypeScript 79.56% JavaScript 20.44%
efun extra functions javascript-library utility

efun's Introduction

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:

npm install efun

or

yarn add efun

Usage

1. Import the entire package:

import Efun from 'efun';

2. Use individual functions:

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):

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 and , follow these steps:

  1. Fork the repository.
  2. Create a new branch:
    git checkout -b feature/your-feature-name
  3. Make your changes and commit them:
    git commit -m "Add your commit message"
  4. Push to the branch:
    git push origin feature/your-feature-name
  5. Open a pull request.

Please make sure your contributions align with our code of conduct.

License

This project is licensed under the Apache-2.0 License.

efun's People

Contributors

pratyush0898 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.