Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code Modernization Efforts? #249

Open
akaustav opened this issue Feb 2, 2025 · 1 comment
Open

Code Modernization Efforts? #249

akaustav opened this issue Feb 2, 2025 · 1 comment

Comments

@akaustav
Copy link

akaustav commented Feb 2, 2025

I understand that this repository was created almost 10 years ago, and the Apigee Team isn't really promoting Apigee Edge to new customers. However, there are many folks who are still on the Apigee Edge platform and don't have the resources to migrate into Apigee X yet. I really like this project leverages the Apigee Edge APIs to accomplish many operations and would love to contribute to modernizing the code on this repository. If there are no ongoing efforts in that direction and the owners / maintainers of this repository are not be opposed, I have the following items on my mind:

  1. Use ECMAScript modules syntax instead of CommonJS modules
  2. Replace all instances of older JavaScript syntax with their newer counterparts - like:
    1. Use const and let instead of var.
    2. Use Arrow Functions instead of traditional function expressions.
    3. Use the new node: prefix when requiring / importing modules built into Node.js - like: node:fs, node:path, node:util, etc.
    4. Use async / await instead of Promises / callback APIs.
    5. etc.
  3. Replace the outdates / unmaintained 3rd party packages with contemporary solutions - preferably techniques inbuilt into the newer versions of Node.js. Like:
    1. Replace the argument parsing techniques using the now seemingly unmaintained cli-table package with the inbuilt Argument Parsing utility - that introduced in Node.js v18.3.0 and was made stable in Node.js 20.0.0
    2. Replace the postman-request package with the fetch module inbuilt in Node.js - introduced in Node.js v17.5.0, and was made stable in Node.js 21.0.0
    3. Replace the mocha package for Unit Testing with the inbuilt Test Runner module - that was introduced in Node.js v18.0.0, and was made stable in Node.js 20.0.0)
    4. Replace the fs-extra package with the inbuilt Recursive File System operations. For example, fs.copy() can be replaced with fs.cp(src, dest, { recursive: true })
    5. etc.

Is there any appetite for such changes?
If so, I would be happy to contribute to this repository.

@akaustav
Copy link
Author

akaustav commented Feb 5, 2025

Attempting to get the attention of @DinoChiesa / @theganyo / @mukundha / @whitlockjc - to this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant