Create npm module then publish it, use it in your project
To cerate npm we need to create
1 package.json
2 tsconfig.json
3 ngModule
4 index.ts
Folder Structure
package.json
tsconfig.json
src
index.ts
mymodule
REF: https://devdactic.com/custom-ionic-module-npm/