1.1.1 • Published 1 year ago

denisonweb-utils v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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 - jordan@denisonweb.com

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

1.1.1

1 year ago

1.1.0

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago