ac-apps-minimal-utils-url

utils/url.js

Helps with URL functions.

Example:
app.utils.url.domain(link);

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

Install from:

https://www.npmjs.com/package/ac-apps-minimal-utils-url
https://github.com/animatedcreativity/ac-apps-minimal-utils-url

Available Methods: domain

domain

function(link) {
  return new URL(link).hostname;
}

Happy Coding!

MIT License: https://choosealicense.com/licenses/mit/

Copyright 2022 Animated Creativity

Permission …

ac-apps-minimal-api-fortnox

api/fortnox.js

Makes it easy to work with Fortnox API.

Example:
app.api.fortnox.createOrder(options, order);
app.api.fortnox.updateCustomer(options, customer);
app.api.fortnox.getCustomers(options, email);

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

Install from:

https://www.npmjs.com/package/ac-apps-minimal-api-fortnox
https://github.com/animatedcreativity/ac-apps-minimal-api-fortnox

Available Methods: createOrder, updateCustomer, createCustomer, getCustomers

createOrder

async function(options, newFnOrder) {

ac-apps-minimal-utils-relatedfields

utils/relatedFields.js

Helps to parse left to right sync related fields.

Example:
app.utils.relatedFields.parse("Model+sku,regular_price_sek+price");
Will return: { Model: 'sku', regular_price_sek: 'price' }

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

Install from:

https://www.npmjs.com/package/ac-apps-minimal-utils-relatedfields
https://github.com/animatedcreativity/ac-apps-minimal-utils-relatedfields

Available Methods: parse

parse

function(str) {
  if

import-from-airtable-to-woocommerce-cron-v1

v1.js

Cron to perform multiple imports from airtable to woocommerce. Imports products to woocommerce.
Should be run with command line arguments.

Example:
node import-from-airtable-to-woocommerce-cron-v1.js \
conf-airtable-base-name= \
conf-airtable-table-name= \
conf-airtable-view-name= \
conf-airtable-api-key= \
conf-airtable-table-key= \
conf-airtable-key-name= \
conf-airtable-key-value= \
cron-airtable-base-name=

import-from-airtable-to-woocommerce-v1

v1.js

Imports from airtable to woocommerce. Imports products to woocommerce.
Should be run with command line arguments.

Example:
node import-from-airtable-to-woocommerce-v1.js \
wc-api-url=https://SITE/wp-json/wc/v3 \
wc-consumer-key= \
wc-consumer-secret= \
type=product \
airtable-base-name= \
airtable-table-name=Pricelist \
airtable-view-name=wordpress \
airtable-table-key=Model \
airtable-key-name=wp \
airtable-key-value=publish

ac-apps-minimal-utils-object

utils/object.js

Helps to work with JS objects. Like finding existing items, whether an item has been changed, or converting item keys to propercase.

Example:
app.utils.object.keyProperCase(object);
app.utils.object.changed(leftObject, rightObject, arrayOfKeysToMatch);
app.utils.object.exists(object, key, value);

A module for ac-bundle-app, published by ac-bundle-module.

Install from:…

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…

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.

Install from:

https://www.npmjs.com/package/ac-apps-minimal-enhance-string
https://github.com/animatedcreativity/ac-apps-minimal-enhance-string

Available Methods: start

start

function() {
  app.camelCase = function

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,