/
usr
/
local
/
lib
/
node_modules
/
pm2
/
node_modules
/
dayjs
/
esm
/
plugin
/
localizedFormat
/
/usr/local/lib/node_modules/pm2/node_modules/dayjs/esm/plugin/localizedFormat
mkdir
upload
Name
Size
Mode
Actions
index.d.ts
89
0644
edit
dl
rm
index.js
603
0644
edit
dl
rm
utils.js
626
0644
edit
dl
rm
Edit:
/usr/local/lib/node_modules/pm2/node_modules/dayjs/esm/plugin/localizedFormat/utils.js
(626B)
// eslint-disable-next-line import/prefer-default-export export var t = function t(format) { return format.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function (_, a, b) { return a || b.slice(1); }); }; export var englishFormats = { LTS: 'h:mm:ss A', LT: 'h:mm A', L: 'MM/DD/YYYY', LL: 'MMMM D, YYYY', LLL: 'MMMM D, YYYY h:mm A', LLLL: 'dddd, MMMM D, YYYY h:mm A' }; export var u = function u(formatStr, formats) { return formatStr.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function (_, a, b) { var B = b && b.toUpperCase(); return a || formats[b] || englishFormats[b] || t(formats[B]); }); };
Save
cmd:
run