This project allows you to execute the my-github-manager
package script in your project by importing and using a reusable function.
In your main file (e.g., index.js
), add the following code:
const runMyGithubManager = require('my-github-manager/runMyGithubManager');
// Call the function
runMyGithubManager()
.then((output) => {
console.log(`Script executed successfully: ${output}`);
})
.catch((error) => {
console.error(`Script execution failed: ${error}`);
});
- Ensure you have installed the
my-github-manager
package in your project:npm install my-github-manager
- Make sure
bash
is available on your system. For Windows, you can use:
- The function is designed to be reusable and handles errors gracefully using Promises.
- The script's path is dynamically resolved using
path.resolve
for cross-platform compatibility.