Tag: ac-bundle-app

modules

ac-apps-minimal-api-woo

api/woo.js

Makes it easy to work with the WooCommerce API and perform tasks such as fetching and updating products. Fetches all records/products if page number not provided.

Example:
app.api.woo.getProducts(options);
app.api.woo.updateProduct(options, product);

A module for ac-bundle-app, published by ac-bundle-module. namespace: ac-apps-minimal

Available Methods: updateOrder, list, updateProduct, getLoadedProduct, getProduct, getProducts, getOrders

enhance

ac-apps-minimal-enhance-workers

enhance/workers.js

This module allows you to concurrently execute multiple asynchronous requests, making it ideal for handling long lists of tasks. You can create a list of tasks using the app.workers.task method, and then start them all at once using the app.workers.do method. The promise returned by this module will only be resolved once all of the tasks have been completed. This enables you to effectively manage and process large volumes of data in an efficient and timely manner.

Example:
app.workers.task(function() { /* task one */ }, "task-name");
app.workers.task(function() { /* task two */ }, "task-name");
app.workers.task(function() { /* task three */ }, "task-name");
await app.workers.do("task-name");

A module for ac-bundle-app, published by ac-bundle-module. namespace: ac-apps-minimal

Available Methods: start

enhance

ac-apps-minimal-enhance-string

enhance/string.js

Converts strings to camelcase or propercase.

Example:
app.camelCase("this line should be camel case.")
app.properCase("this line should be proper case.")

A module for ac-bundle-app, published by ac-bundle-module. namespace: ac-apps-minimal

Available Methods: start

enhance

ac-apps-minimal-enhance-console

enhance/console.js

Specifies colors for using in console log. Contains both forground and background colors too.

List: reset, bright, dim, underscore, blink, reverse, hidden, fgBlack, fgRed, fgGreen, fgYellow, fgBlue, fgMagenta, fgCyan, fgWhite, fgGray, bgBlack, bgRed, bgGreen, bgYellow, bgBlue, bgMagenta, bgCyan, bgWhite, bgGray.

Example:
console.log(app.consoleColors.bgRed, "This text should show in red background color.");

Can also send console logs to console.ylo.one. Please check here: https://console.ylo.one/
Options are specified as console-key & console-prefix.

Example:
app.console("[blue]This should go to console.ylo.one[/blue]");

A module for ac-bundle-app, published by ac-bundle-module. namespace: ac-apps-minimal

Available Methods: logged, start

enhance

ac-apps-minimal-enhance-config

enhance/config.js

Copy bundled config to app’s config itself. It keeps the already defined config options. But, overwrites the options loaded from bundled config. All the nested config options are also copied.

A module for ac-bundle-app, published by ac-bundle-module. namespace: ac-apps-minimal

Available Methods: start

enhance

ac-apps-minimal-enhance-argv

enhance/argv.js

Read command line arguments and parse only the required ones. Arguments can be specified in key=value format. Example: airtable-api-key=XXXXXXXX_XXXXXXXXX airtable-base-name=XXXXXXXX … The arguments are further checked and verified by the needed scripts.

A module for ac-bundle-app, published by ac-bundle-module. namespace: ac-apps-minimal

Available Methods: start

modules

ac-apps-minimal-api-airtable

api/airtable.js

Makes it easy to work with the Airtable API and perform tasks such as fetching and updating records. Fetches all records if page number not provided.

Example:
app.api.woo.getProducts(options);
app.api.woo.updateProduct(options, product);

A module for ac-bundle-app, published by ac-bundle-module. namespace: ac-apps-minimal

Available Methods: getRecords