ac-bundle-module-utils-airtable-image

utils/airtable/image.js

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

Available Methods: fill

fill

function(record, key, value) {
  if (app.has(value) && value !== false) {
    var list = [];
    if (typeof value === "string") {
      list.push({url: value});
    } else {
      for (var

ac-bundle-module-utils-key

utils/key.js

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

Available Methods: length, count, token, make

length

20
count

4
token

function() {
  var str = "";
  for (var i=0; i<=mod.count-1; i++) {
    if (str !== "") str += "-";
    str += mod.make(mod.length);
  }

ac-bundle-module-utils-email

utils/email.js

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

Available Methods: valid

valid

function(email) {
  var re = /^(([^()[\]\\.,;:\s@"]+(\.[^()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
  return re.test(String(email).toLowerCase());
}

Happy Coding!…

ac-bundle-module-utils-date

utils/date.js

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

Available Methods: fill, beginning, yesterday, format, valid

fill

function(number, length) {
  while (String(number).length < length) number = "0" + String(number);
  return number;
}

beginning

function(years) {
  if (typeof years !== "number") years = config.api.years;
  var date = new Date();

ac-bundle-module-utils-crypto

utils/crypto.js

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

Available Methods: md5

md5

function(a) {
  var r = 0, c = "";
  return h(a);
  function h(t) {
    return u(l(m(t)));
  }
  function l(t) {
    return p(g(f(t), 8 * t.length));
  }
  function u(t)

ac-bundle-module-utils-jsontocsv

utils/jsontocsv.js

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

Available Methods: clean, convert

clean

function(value) {
  if (app.has(value) !== true) value = "";
  if (typeof value === "object") value = value.join(", ");
  if (typeof value === "number") value = String(value);
  return

ac-bundle-module-utils-object

utils/object.js

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

Available Methods: exists, has, changed, keyProperCase

exists

function(list, key, value, parent) {
  // console.log(list, key, value, parent);
  if (!app.has(parent)) parent = "";
  for (var listKey in list) {
    var item = list[listKey];

ac-bundle-module-utils-proxy

utils/proxy.js

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

Available Methods: httpAgent, httpsAgent, fetch

httpAgent

function createHttpProxyAgent(opts) {
    return new agent_1.default(opts);
}

httpsAgent

function createHttpsProxyAgent(opts) {
    return new agent_1.default(opts);
}

fetch

async function(proxyUrl, url, method, data, headers) {
  process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";