Installation

Learn how to install the utility methods in your project.

1. Introduction

One of the way to add utility methods to your project is by just copying the code and pasting it in your project. But, this is not the best way to do it. The best way to do it is by using the CLI program provided by lazykit. The CLI program will add the utility method to your project in a more efficient way.

For initializing the project, see this section.

2. Add method

To add the method in you project, you can run the following command.

Note: If you have not initialized the project, then you need to give the path and language after running the command or as flags.

npx @jrtilak/lazykit@latest add <method-name> [flags]

3. Flags

The following flags can be used while adding the method in your project.

Flag

Alias

Description

--javascript-jsAdd the method in javascript
--typescript-tsAdd the method in typescript
--path <path>-p <path>Add the method in the given path