Skip to content

A robust collection of JavaScript/TypeScript functions, leveraging the latest features to offer enhanced functionality compared to standard utility libraries like Lodash or Ramda. Developed with both the frontend and backend in mind, the library seamlessly integrates with modern development stacks.

License

Notifications You must be signed in to change notification settings

jordandenison/utils

Repository files navigation

Denisonweb Utility Functions Repository


This repository contains a collection of utility functions written in TypeScript along with their corresponding tests.

Getting Started

Before you begin, make sure you have Node.js installed on your system.

Installation

  1. Clone the repository:
    git clone https://github.com/jordandenison/utils.git

  2. Navigate to the project directory:
    cd utils

  3. Install the dependencies:
    npm i

Installation and usage with Docker

  1. Clone the repository:
    git clone https://github.com/jordandenison/utils.git

  2. Navigate to the project directory:
    cd utils

  3. Build the Docker image:
    docker build -t utils .

  4. Run the Docker image:
    docker run --name utils -v $(pwd):/usr/src/app -it utils

  5. Subsequent runs:
    docker start utils && docker attach utils

Usage in a project

  1. Install the package:
    npm i denisonweb-utils

  2. Example usage

     import { capitalizeFirstLetter } from 'denisonweb-utils';
    
     const result = capitalizeFirstLetter('hello');
     console.log(result); // Outputs: "Hello"

Running Tests

The tests will run automatically when starting the Docker container, but if you have nodejs installed you can use the following command in the project directory:
npm test

Contribution

If you would like to contribute to the project, please fork the repository and create a pull request.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/YourFeature)
  3. Commit your Changes (git commit -m 'Add some YourFeature')
  4. Push to the Branch (git push origin feature/YourFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Jordan Denison - @canadianwifi - [email protected]

Project Link: https://github.com/jordandenison/utils

About

A robust collection of JavaScript/TypeScript functions, leveraging the latest features to offer enhanced functionality compared to standard utility libraries like Lodash or Ramda. Developed with both the frontend and backend in mind, the library seamlessly integrates with modern development stacks.

Resources

License

Stars

Watchers

Forks

Packages

No packages published