This repository contains a collection of utility functions written in TypeScript along with their corresponding tests.
Before you begin, make sure you have Node.js installed on your system.
-
Clone the repository:
git clone https://github.com/jordandenison/utils.git
-
Navigate to the project directory:
cd utils
-
Install the dependencies:
npm i
-
Clone the repository:
git clone https://github.com/jordandenison/utils.git
-
Navigate to the project directory:
cd utils
-
Build the Docker image:
docker build -t utils .
-
Run the Docker image:
docker run --name utils -v $(pwd):/usr/src/app -it utils
-
Subsequent runs:
docker start utils && docker attach utils
-
Install the package:
npm i denisonweb-utils
-
Example usage
import { capitalizeFirstLetter } from 'denisonweb-utils'; const result = capitalizeFirstLetter('hello'); console.log(result); // Outputs: "Hello"
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
If you would like to contribute to the project, please fork the repository and create a pull request.
- Fork the Project
- Create your Feature Branch (git checkout -b feature/YourFeature)
- Commit your Changes (git commit -m 'Add some YourFeature')
- Push to the Branch (git push origin feature/YourFeature)
- Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.
Jordan Denison - @canadianwifi - [email protected]
Project Link: https://github.com/jordandenison/utils