For one of my clients, I was working on developing custom forms to interact with SharePoint lists and document libraries.
In that project, there were so many forms to be developed. So, I decided to develop one generic library that can be reused to perform operations using REST API.

The aim of this library is to create a generic set of methods as well, keeping one thing in mind that it should be enhanced easily to include more features.

In this library, there are a total 4of four files.

This file is used to specify list columns we are working with.

This file contains all generic methods.

Use this file to write application logic. This will be the main file referenced in our page, the rest of the files are loaded from Main.js itself.

It can be used to specify constants as well as utility methods.

I have also provided detailed information and instructions in attached zip file.