UNPKG

eljson

Version:

## 介绍

20 lines (19 loc) 643 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.toLowerCases = exports.trimStr = exports.OUTPUT_DIR = exports.INPUT_DIR = exports.CWD = void 0; const path_1 = require("path"); exports.CWD = process.cwd(); exports.INPUT_DIR = (0, path_1.join)(exports.CWD, 'input'); exports.OUTPUT_DIR = (0, path_1.join)(exports.CWD, 'output'); function trimStr(str) { if (!str) return ''; return String(str).replace(/(^\s*)|(\s*$)/g, ""); } exports.trimStr = trimStr; function toLowerCases(str) { if (!str) return ''; return String(str).toLowerCase(); } exports.toLowerCases = toLowerCases;