Al-HUWAITI Shell
Al-huwaiti


Server : nginx/1.18.0
System : Linux localhost 6.14.3-x86_64-linode168 #1 SMP PREEMPT_DYNAMIC Mon Apr 21 19:47:55 EDT 2025 x86_64
User : www-data ( 33)
PHP Version : 8.0.16
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Directory :  /var/www/ecommerce/node_modules/collect.js/bundler/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/ecommerce/node_modules/collect.js/bundler/bundle.js
'use strict';

const { readFileSync, readdirSync, writeFileSync } = require('fs');

// Get all markdown stubs
const header = readFileSync('bundler/header.md', 'utf-8');
const badges = readFileSync('bundler/badges.md', 'utf-8');
const installation = readFileSync('bundler/installation.md', 'utf-8');
const api = readFileSync('bundler/api.md', 'utf-8');
const strictnessAndComparisons = readFileSync('bundler/strictness_and_comparisons.md', 'utf-8');
const notImplemented = readFileSync('bundler/not_implemented.md', 'utf-8');
const contribute = readFileSync('bundler/contribute.md', 'utf-8');
const license = readFileSync('bundler/license.md', 'utf-8');

// Get all API docs
const methods = readdirSync('docs/api', 'utf-8');

// Build table of contents
const tableOfContents = methods.map((file) => {
  const methodName = file.replace('.md', '');

  return `- [${methodName}](#${methodName.toLowerCase()})`;
}).join('\n');

// Build methods "readme"
const methodDocumentation = methods.map((file) => {
  let content = readFileSync(`docs/api/${file}`, 'utf-8');

  const lines = content.split('\n');

  lines[0] = `###${lines[0]}`;
  lines.pop();
  lines.pop();

  content = lines.join('\n');
  content = content.replace(/(\r\n|\r|\n){2,}/g, '$1\n');

  return content;
}).join('\n\n');

writeFileSync(
  'README.md',
  [
    header,
    badges,
    installation,
    api,
    tableOfContents,
    strictnessAndComparisons,
    notImplemented,
    methodDocumentation,
    contribute,
    license,
  ].join('\n\n'),
);

Al-HUWAITI Shell