hello-smile6 / neofetch-js

Neofetch for the web.
https://neofetch.vercel.app
GNU General Public License v3.0
5 stars 2 forks source link

Update add-color-support #11

Closed hello-smile6 closed 2 years ago

hello-smile6 commented 2 years ago

@webdev03 Could you fix these conflicts, by chance? I don't know where to start.

webdev03 commented 2 years ago

It won't let me resolve them sorry!

hello-smile6 commented 2 years ago

It won't let me resolve them sorry!

Couldn't you checkout the branch, merge them locally, and open a PR?

hello-smile6 commented 2 years ago

Here's what it says is conflicting.

if(typeof window=="undefined") {
  const window={
    location: {
      search: "",
    }
  };
}
if (window.location.search.includes("debug")) debugger;
window.Neofetch = {};

// Define environment variables, to align with upstream
Neofetch.escapeCharacter = "\u001b"; // Not implemented upstream, just to make the code neater
// TODO: add the versions with color, maybe make a script to generate icons array from neofetch as json and add it to the file
// At least they're recognizable

/**
 * Taken from the original Neofetch project
 */
Neofetch.osList = {
  windows: {
    names: ["Windows"],
    // @prettier-ignore start
    ascii: `################  ################
################  ################
################  ################
################  ################
################  ################
################  ################
################  ################

################  ################
################  ################
################  ################
################  ################
################  ################
################  ################
################  ################`,
// @prettier-ignore end
  }, // Don't bother detecting different Windows versions, show them all as win11 for now (Would accept PR)
  chrome: {
    names: ["Chrome", "Chrome OS"],
    // @prettier-ignore start
    ascii: `        .,coooooooooooooc,.
    .,lllllllllllllllllllll,.
   ;ccccccccccccccccccccccccc;
 'ccccccccccccccccccccccccccccc.
,ooc::::::::okO0000OOkkkkkkkkkkk:
.ooool;;;;:xK0kxxxxxk0XK0000000000.
:oooool;,;OKdddddddddddKX000000000d
lllllool;lNdllllllllllldNK000000000
llllllllloMdcccccccccccoWK000000000
;cllllllllXXc:::::::::c0X000000000d
.ccccllllllONkc;,,,;cxKK0000000000.
.cccccclllllxOOOOOOkxO0000000000;
 .:cccccccclllllllloO0000000OOO,
   ,:ccccccccclllcd0000OOOOOOl.
     '::cccccccccdOOOOOOOkx:.
       ..,::ccccxOOOkkko;.
           ..,:dOkxl:.`,
    // @prettier-ignore end
  },
  linux: {
    names: ["Linux"],
    // @prettier-ignore start
    ascii: `        #####
       #######
       ##O#O##
       #######
     ###########
    #############
   ###############
   ################
  #################
#####################
#####################
  #################`,
    // @prettier-ignore end
  },
  mac: {
    names: ["Mac", "iOS"],
    // @prettier-ignore start
    ascii: `                    'c. 
                 ,xNMM.
               .OMMMMo
               OMMM0,
     .;loddo:' loolloddol;.
   cKMMMMMMMMMMNWMMMMMMMMMM0:
 .KMMMMMMMMMMMMMMMMMMMMMMMWd.
 XMMMMMMMMMMMMMMMMMMMMMMMX.
;MMMMMMMMMMMMMMMMMMMMMMMM:
:MMMMMMMMMMMMMMMMMMMMMMMM:
.MMMMMMMMMMMMMMMMMMMMMMMMX. 
 kMMMMMMMMMMMMMMMMMMMMMMMMWd.
 .XMMMMMMMMMMMMMMMMMMMMMMMMMMk
  .XMMMMMMMMMMMMMMMMMMMMMMMMK.
    kMMMMMMMMMMMMMMMMMMMMMMd
     ;KMMMMMMMWXXWMMMMMMMk.
       .cooc,.    .,coo:.`,
    // @prettier-ignore end
  },
  unknown: {
    names: ["Unknown"],
    // @prettier-ignore start
    ascii: `?`
    // @prettier-ignore end
  }
};
<<<<<<< main

Neofetch.getASCII = function (name, cfg) {
  if (window.location.search.includes("debug")) debugger;
  // loop through the keys in Neofetch.osList
  for (const key in Neofetch.osList) {
    // check if the current key is equal to the key from the osList
    if (Neofetch.osList[key].names.includes(name)) {
      // return the ASCII art
      return Neofetch.osList[key].ascii.replaceAll("\n", cfg.lineEnding);
=======
// Icon aliases
Neofetch.osList.chromeos=Neofetch.osList.chrome;
Neofetch.ansiRegex=function({onlyFirst = false} = {}) {
    const pattern = [
      '[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)',
      '(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))'
    ].join('|');
    return new RegExp(pattern, onlyFirst ? undefined : 'g');
}
Neofetch.fixAnsi=function(data) {
    if (typeof string !== 'string') {
      throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
    }
    return string.replaceAll(ansiRegex(), ''); // Seems like Node doesn't have replaceAll(), but browsers do. May be a compat issue in the end.
}
Neofetch.getData = function(opts) {
    let cfg={
        os: "Linux", // Assume the most likely
        browser: "", // Sadly, most likely
        lineEnding: "\n",
        allowColor: false, // Default to disabling color
    };
    if(typeof window=="object" && typeof Window!=="undefined") {
        // Verify that it is, indeed, a browser
        if(window instanceof Window) {
            // Configure defaults considering browser
            if(navigator?.platform=="Win32") cfg.os="Windows";
            if(navigator?.platform?.startsWith("Linux ")) cfg.os="Linux";
            if(cfg?.os=="Linux") {
                // Detect Chrome OS, which will identify as Linux
                if(navigator?.userAgent?.includes("CrOS")) {
                    cfg.os="Chrome OS"; // Don't worry about browser, that'll be done later in the script
                }
                else {
                  // Mac detection
                    if (navigator.userAgent.includes("Macintosh") && navigator.userAgent.includes("Mac OS")) {
                      cfg.os = "Mac"
                    }
                  // iOS detection
                    if (navigator.userAgent.includes("iPhone OS")) {
                      // They give the same logo so it doesn't matter
                      cfg.os = "Mac"
                    }
                  // iPadOS detection
                    if (navigator.userAgent.includes("iPad")) {
                      // They give the same logo so it doesn't matter
                      cfg.os = "Mac"
                    }
                }
            }
            if(navigator?.vendor=="Google Inc.") cfg.browser="Chrome";
        }
    }
    if(typeof opts=="object") {
        // Process options
        if(typeof opts?.os=="string") cfg.os=opts.os;
        if(typeof opts?.browser=="string") cfg.browser=opts.browser;
        if(typeof opts?.lineEnding=="string") cfg.lineEnding=opts.lineEnding;
>>>>>>> add-color-support
    }
  }
};

Neofetch.getData = function (opts) {
  if (window.location.search.includes("debug")) debugger;
  let cfg = {
    os: "Unknown", // Unknown by default
    browser: "Unknown", // Unknown by default
    lineEnding: "\n",
  };
  if (typeof window == "object" && typeof Window !== "undefined") {
    // Verify that it is, indeed, a browser
    if (window instanceof Window) {
      // Configure defaults considering browser
      if (navigator?.platform == "Win32") cfg.os = "Windows";
      if (navigator?.platform?.startsWith("Linux ")) cfg.os = "Linux";
      if (cfg?.os == "Linux") {
        // Detect Chrome OS, which will identify as Linux
        if (navigator?.userAgent?.includes("CrOS")) {
          cfg.os = "Chrome OS"; // Don't worry about browser, that'll be done later in the script
        } else {
          // Mac detection
          if (
            navigator?.userAgent?.includes("Macintosh") &&
            navigator?.userAgent?.includes("Mac OS")
          ) {
            cfg.os = "Mac";
          }
          // iOS detection
          if (navigator?.userAgent?.includes("iPhone OS")) {
            // They give the same logo so it doesn't matter
            cfg.os = "Mac";
          }
          // iPadOS detection
          if (navigator?.userAgent?.includes("iPad")) {
            // They give the same logo so it doesn't matter
            cfg.os = "Mac";
          }
        }
      }
      if (navigator?.vendor == "Google Inc.") cfg.browser = "Chrome";
    }
  }
  if (typeof opts == "object") {
    // Process options
    if (typeof opts?.os == "string") cfg.os = opts.os;
    if (typeof opts?.browser == "string") cfg.browser = opts.browser;
    if (typeof opts?.lineEnding == "string") cfg.lineEnding = opts.lineEnding;
  }

  let output = "";
  // Each output must make sure there is exactly one (1) newline after it.
  output +=
    "Icon:" + cfg.lineEnding + Neofetch.getASCII(cfg.os, cfg) + cfg.lineEnding;
  if (cfg.browser == "Chrome" && cfg.os == "Unknown") {
    output +=
      "Icon:" +
      cfg.lineEnding +
      Neofetch.getASCII(cfg.browser, cfg) +
      cfg.lineEnding +
      cfg.lineEnding +
      "We didn't have your OS icon, so we used your browser icon instead." +
      cfg.lineEnding;
  }
  return output;
};
if (typeof process !== "undefined") {
  if (process instanceof EventEmitter) {
    module.exports = { neofetch: Neofetch };
  }
}
hello-smile6 commented 2 years ago

I'm going to collapse that comment, but it has the content.

hello-smile6 commented 2 years ago

Never mind, can't hide as "too big"

webdev03 commented 2 years ago

Just remove the >>> === and <<< then add the } brackets on the "main" part then you should be done!

hello-smile6 commented 2 years ago

Just remove the >>> === and <<< then add the } brackets on the "main" part then you should be done!

Could you?

hello-smile6 commented 2 years ago

@webdev03 Could you see if this runs?

if(typeof window=="undefined") {
  const window={
    location: {
      search: "",
    }
  };
}
if (window.location.search.includes("debug")) debugger;
window.Neofetch = {};

// Define environment variables, to align with upstream
Neofetch.escapeCharacter = "\u001b"; // Not implemented upstream, just to make the code neater
// TODO: add the versions with color, maybe make a script to generate icons array from neofetch as json and add it to the file
// At least they're recognizable

/**
 * Taken from the original Neofetch project
 */
Neofetch.osList = {
  windows: {
    names: ["Windows"],
    // @prettier-ignore start
    ascii: `################  ################
################  ################
################  ################
################  ################
################  ################
################  ################
################  ################

################  ################
################  ################
################  ################
################  ################
################  ################
################  ################
################  ################`,
// @prettier-ignore end
  }, // Don't bother detecting different Windows versions, show them all as win11 for now (Would accept PR)
  chrome: {
    names: ["Chrome", "Chrome OS"],
    // @prettier-ignore start
    ascii: `        .,coooooooooooooc,.
    .,lllllllllllllllllllll,.
   ;ccccccccccccccccccccccccc;
 'ccccccccccccccccccccccccccccc.
,ooc::::::::okO0000OOkkkkkkkkkkk:
.ooool;;;;:xK0kxxxxxk0XK0000000000.
:oooool;,;OKdddddddddddKX000000000d
lllllool;lNdllllllllllldNK000000000
llllllllloMdcccccccccccoWK000000000
;cllllllllXXc:::::::::c0X000000000d
.ccccllllllONkc;,,,;cxKK0000000000.
.cccccclllllxOOOOOOkxO0000000000;
 .:cccccccclllllllloO0000000OOO,
   ,:ccccccccclllcd0000OOOOOOl.
     '::cccccccccdOOOOOOOkx:.
       ..,::ccccxOOOkkko;.
           ..,:dOkxl:.`,
    // @prettier-ignore end
  },
  linux: {
    names: ["Linux"],
    // @prettier-ignore start
    ascii: `        #####
       #######
       ##O#O##
       #######
     ###########
    #############
   ###############
   ################
  #################
#####################
#####################
  #################`,
    // @prettier-ignore end
  },
  mac: {
    names: ["Mac", "iOS"],
    // @prettier-ignore start
    ascii: `                    'c. 
                 ,xNMM.
               .OMMMMo
               OMMM0,
     .;loddo:' loolloddol;.
   cKMMMMMMMMMMNWMMMMMMMMMM0:
 .KMMMMMMMMMMMMMMMMMMMMMMMWd.
 XMMMMMMMMMMMMMMMMMMMMMMMX.
;MMMMMMMMMMMMMMMMMMMMMMMM:
:MMMMMMMMMMMMMMMMMMMMMMMM:
.MMMMMMMMMMMMMMMMMMMMMMMMX. 
 kMMMMMMMMMMMMMMMMMMMMMMMMWd.
 .XMMMMMMMMMMMMMMMMMMMMMMMMMMk
  .XMMMMMMMMMMMMMMMMMMMMMMMMK.
    kMMMMMMMMMMMMMMMMMMMMMMd
     ;KMMMMMMMWXXWMMMMMMMk.
       .cooc,.    .,coo:.`,
    // @prettier-ignore end
  },
  unknown: {
    names: ["Unknown"],
    // @prettier-ignore start
    ascii: `?`
    // @prettier-ignore end
  }
};
// <<<<<<< main

Neofetch.getASCII = function (name, cfg) {
  if (window.location.search.includes("debug")) debugger;
  // loop through the keys in Neofetch.osList
  for (const key in Neofetch.osList) {
    // check if the current key is equal to the key from the osList
    if (Neofetch.osList[key].names.includes(name)) {
      // return the ASCII art
      return Neofetch.osList[key].ascii.replaceAll("\n", cfg.lineEnding);
// =======
// Icon aliases
Neofetch.osList.chromeos=Neofetch.osList.chrome;
Neofetch.ansiRegex=function({onlyFirst = false} = {}) {
    const pattern = [
      '[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)',
      '(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))'
    ].join('|');
    return new RegExp(pattern, onlyFirst ? undefined : 'g');
}
Neofetch.fixAnsi=function(data) {
    if (typeof string !== 'string') {
      throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
    }
    return string.replaceAll(ansiRegex(), ''); // Seems like Node doesn't have replaceAll(), but browsers do. May be a compat issue in the end.
}

Neofetch.getData = function (opts) {
  if (window.location.search.includes("debug")) debugger;
  let cfg = {
    os: "Unknown", // Unknown by default
    browser: "Unknown", // Unknown by default
    lineEnding: "\n",
    allowColor: false, // Default to disabling color
  };
  if (typeof window == "object" && typeof Window !== "undefined") {
    // Verify that it is, indeed, a browser
    if (window instanceof Window) {
      // Configure defaults considering browser
      if (navigator?.platform == "Win32") cfg.os = "Windows";
      if (navigator?.platform?.startsWith("Linux ")) cfg.os = "Linux";
      if (cfg?.os == "Linux") {
        // Detect Chrome OS, which will identify as Linux
        if (navigator?.userAgent?.includes("CrOS")) {
          cfg.os = "Chrome OS"; // Don't worry about browser, that'll be done later in the script
        } else {
          // Mac detection
          if (
            navigator?.userAgent?.includes("Macintosh") &&
            navigator?.userAgent?.includes("Mac OS")
          ) {
            cfg.os = "Mac";
          }
          // iOS detection
          if (navigator?.userAgent?.includes("iPhone OS")) {
            // They give the same logo so it doesn't matter
            cfg.os = "Mac";
          }
          // iPadOS detection
          if (navigator?.userAgent?.includes("iPad")) {
            // They give the same logo so it doesn't matter
            cfg.os = "Mac";
          }
        }
      }
      if (navigator?.vendor == "Google Inc.") cfg.browser = "Chrome";
    }
  }
  if (typeof opts == "object") {
    // Process options
    if (typeof opts?.os == "string") cfg.os = opts.os;
    if (typeof opts?.browser == "string") cfg.browser = opts.browser;
    if (typeof opts?.lineEnding == "string") cfg.lineEnding = opts.lineEnding;
  }

  let output = "";
  // Each output must make sure there is exactly one (1) newline after it.
  output +=
    "Icon:" + cfg.lineEnding + Neofetch.getASCII(cfg.os, cfg) + cfg.lineEnding;
  if (cfg.browser == "Chrome" && cfg.os == "Unknown") {
    output +=
      "Icon:" +
      cfg.lineEnding +
      Neofetch.getASCII(cfg.browser, cfg) +
      cfg.lineEnding +
      cfg.lineEnding +
      "We didn't have your OS icon, so we used your browser icon instead." +
      cfg.lineEnding;
  }
  return output;
};
if (typeof process !== "undefined") {
  if (process instanceof EventEmitter) {
    module.exports = { neofetch: Neofetch };
  }
}
webdev03 commented 2 years ago

The part where it is Neofetch.getASCII needs three }}} brackets at the end.

hello-smile6 commented 2 years ago

The part where it is Neofetch.getASCII needs three }}} brackets at the end.

Okay

hello-smile6 commented 2 years ago

Pasted into vscode.dev, LOL.

if(typeof window=="undefined") {
    const window={
      location: {
        search: "",
      }
    };
  }
  if (window.location.search.includes("debug")) debugger;
  window.Neofetch = {};

  // Define environment variables, to align with upstream
  Neofetch.escapeCharacter = "\u001b"; // Not implemented upstream, just to make the code neater
  // TODO: add the versions with color, maybe make a script to generate icons array from neofetch as json and add it to the file
  // At least they're recognizable

  /**
   * Taken from the original Neofetch project
   */
  Neofetch.osList = {
    windows: {
      names: ["Windows"],
      // @prettier-ignore start
      ascii: `################  ################
  ################  ################
  ################  ################
  ################  ################
  ################  ################
  ################  ################
  ################  ################

  ################  ################
  ################  ################
  ################  ################
  ################  ################
  ################  ################
  ################  ################
  ################  ################`,
  // @prettier-ignore end
    }, // Don't bother detecting different Windows versions, show them all as win11 for now (Would accept PR)
    chrome: {
      names: ["Chrome", "Chrome OS"],
      // @prettier-ignore start
      ascii: `        .,coooooooooooooc,.
      .,lllllllllllllllllllll,.
     ;ccccccccccccccccccccccccc;
   'ccccccccccccccccccccccccccccc.
  ,ooc::::::::okO0000OOkkkkkkkkkkk:
  .ooool;;;;:xK0kxxxxxk0XK0000000000.
  :oooool;,;OKdddddddddddKX000000000d
  lllllool;lNdllllllllllldNK000000000
  llllllllloMdcccccccccccoWK000000000
  ;cllllllllXXc:::::::::c0X000000000d
  .ccccllllllONkc;,,,;cxKK0000000000.
  .cccccclllllxOOOOOOkxO0000000000;
   .:cccccccclllllllloO0000000OOO,
     ,:ccccccccclllcd0000OOOOOOl.
       '::cccccccccdOOOOOOOkx:.
         ..,::ccccxOOOkkko;.
             ..,:dOkxl:.`,
      // @prettier-ignore end
    },
    linux: {
      names: ["Linux"],
      // @prettier-ignore start
      ascii: `        #####
         #######
         ##O#O##
         #######
       ###########
      #############
     ###############
     ################
    #################
  #####################
  #####################
    #################`,
      // @prettier-ignore end
    },
    mac: {
      names: ["Mac", "iOS"],
      // @prettier-ignore start
      ascii: `                    'c. 
                   ,xNMM.
                 .OMMMMo
                 OMMM0,
       .;loddo:' loolloddol;.
     cKMMMMMMMMMMNWMMMMMMMMMM0:
   .KMMMMMMMMMMMMMMMMMMMMMMMWd.
   XMMMMMMMMMMMMMMMMMMMMMMMX.
  ;MMMMMMMMMMMMMMMMMMMMMMMM:
  :MMMMMMMMMMMMMMMMMMMMMMMM:
  .MMMMMMMMMMMMMMMMMMMMMMMMX. 
   kMMMMMMMMMMMMMMMMMMMMMMMMWd.
   .XMMMMMMMMMMMMMMMMMMMMMMMMMMk
    .XMMMMMMMMMMMMMMMMMMMMMMMMK.
      kMMMMMMMMMMMMMMMMMMMMMMd
       ;KMMMMMMMWXXWMMMMMMMk.
         .cooc,.    .,coo:.`,
      // @prettier-ignore end
    },
    unknown: {
      names: ["Unknown"],
      // @prettier-ignore start
      ascii: `?`
      // @prettier-ignore end
    }
  };
  // <<<<<<< main

  Neofetch.getASCII = function (name, cfg) {
    if (window.location.search.includes("debug")) debugger;
    // loop through the keys in Neofetch.osList
    for (const key in Neofetch.osList) {
      // check if the current key is equal to the key from the osList
      if (Neofetch.osList[key].names.includes(name)) {
        // return the ASCII art
        return Neofetch.osList[key].ascii.replaceAll("\n", cfg.lineEnding);
  // =======
  // Icon aliases
  Neofetch.osList.chromeos=Neofetch.osList.chrome;
  Neofetch.ansiRegex=function({onlyFirst = false} = {}) {
      const pattern = [
        '[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)',
        '(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))'
      ].join('|');
      return new RegExp(pattern, onlyFirst ? undefined : 'g');
  }
  Neofetch.fixAnsi=function(data) {
      if (typeof string !== 'string') {
        throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
      }
      return string.replaceAll(ansiRegex(), ''); // Seems like Node doesn't have replaceAll(), but browsers do. May be a compat issue in the end.
  }

  Neofetch.getData = function (opts) {
    if (window.location.search.includes("debug")) debugger;
    let cfg = {
      os: "Unknown", // Unknown by default
      browser: "Unknown", // Unknown by default
      lineEnding: "\n",
      allowColor: false, // Default to disabling color
    };
    if (typeof window == "object" && typeof Window !== "undefined") {
      // Verify that it is, indeed, a browser
      if (window instanceof Window) {
        // Configure defaults considering browser
        if (navigator?.platform == "Win32") cfg.os = "Windows";
        if (navigator?.platform?.startsWith("Linux ")) cfg.os = "Linux";
        if (cfg?.os == "Linux") {
          // Detect Chrome OS, which will identify as Linux
          if (navigator?.userAgent?.includes("CrOS")) {
            cfg.os = "Chrome OS"; // Don't worry about browser, that'll be done later in the script
          } else {
            // Mac detection
            if (
              navigator?.userAgent?.includes("Macintosh") &&
              navigator?.userAgent?.includes("Mac OS")
            ) {
              cfg.os = "Mac";
            }
            // iOS detection
            if (navigator?.userAgent?.includes("iPhone OS")) {
              // They give the same logo so it doesn't matter
              cfg.os = "Mac";
            }
            // iPadOS detection
            if (navigator?.userAgent?.includes("iPad")) {
              // They give the same logo so it doesn't matter
              cfg.os = "Mac";
            }
          }
        }
        if (navigator?.vendor == "Google Inc.") cfg.browser = "Chrome";
      }
    }
    if (typeof opts == "object") {
      // Process options
      if (typeof opts?.os == "string") cfg.os = opts.os;
      if (typeof opts?.browser == "string") cfg.browser = opts.browser;
      if (typeof opts?.lineEnding == "string") cfg.lineEnding = opts.lineEnding;
    }

    let output = "";
    // Each output must make sure there is exactly one (1) newline after it.
    output +=
      "Icon:" + cfg.lineEnding + Neofetch.getASCII(cfg.os, cfg) + cfg.lineEnding;
    if (cfg.browser == "Chrome" && cfg.os == "Unknown") {
      output +=
        "Icon:" +
        cfg.lineEnding +
        Neofetch.getASCII(cfg.browser, cfg) +
        cfg.lineEnding +
        cfg.lineEnding +
        "We didn't have your OS icon, so we used your browser icon instead." +
        cfg.lineEnding;
    }
    return output;
  };
  if (typeof process !== "undefined") {
    if (process instanceof EventEmitter) {
      module.exports = { neofetch: Neofetch };
    }
  }
}
    }
}
hello-smile6 commented 2 years ago

Does that run?

webdev03 commented 2 years ago

It warns unreachable code after return statement but other than that it works!

hello-smile6 commented 2 years ago

Could you do a support check on every device you can? https://neofetch-js-lzbwscpsb-9pfs.vercel.app/ Screenshot - Linux

hello-smile6 commented 2 years ago

@webdev03 Does it work for you?

hello-smile6 commented 2 years ago

Merging

webdev03 commented 2 years ago

Noo!

hello-smile6 commented 2 years ago

Noo!

Why?

webdev03 commented 2 years ago

Critical bug fix!!!

hello-smile6 commented 2 years ago

Critical bug fix!!!

What? Screenshot?

hello-smile6 commented 2 years ago

12 Oh

hello-smile6 commented 2 years ago

Should I merge now?

hello-smile6 commented 2 years ago

@webdev03 Any more formatters you want to run?

webdev03 commented 2 years ago

You can merge

hello-smile6 commented 2 years ago

You should really look at my merge commit messages...

webdev03 commented 2 years ago

Must have been a typo the PR title by me 😄

hello-smile6 commented 2 years ago

Must have been a typo the PR title by me 😄

LOL. I can make snarky comments in there and you'll never see it unless you git log.

hello-smile6 commented 2 years ago

@webdev03 We have color! https://neofetch-js-add-color.vercel.app/

hello-smile6 commented 2 years ago

The add-color-support branch seems stable, should I merge?

hello-smile6 commented 2 years ago

We have color for all current logos! @webdev03 Screenshot

webdev03 commented 2 years ago

Very awesome 🚀

hello-smile6 commented 2 years ago

Very awesome 🚀

Should I merge it?

webdev03 commented 2 years ago

Can I see the code?

hello-smile6 commented 2 years ago

Can I see the code?

https://github.com/hello-smile6/neofetch-js/tree/add-color-support

hello-smile6 commented 2 years ago

@webdev03

hello-smile6 commented 2 years ago

Merged! #14