/
usr
/
local
/
lib
/
node_modules
/
pm2
/
node_modules
/
charm
/
lib
/
/usr/local/lib/node_modules/pm2/node_modules/charm/lib
mkdir
upload
Name
Size
Mode
Actions
encode.js
457
0644
edit
dl
rm
Edit:
/usr/local/lib/node_modules/pm2/node_modules/charm/lib/encode.js
(457B)
var encode = module.exports = function (xs) { function bytes (s) { if (typeof s === 'string') { return s.split('').map(ord); } else if (Array.isArray(s)) { return s.reduce(function (acc, c) { return acc.concat(bytes(c)); }, []); } } return new Buffer([ 0x1b ].concat(bytes(xs))); }; var ord = encode.ord = function ord (c) { return c.charCodeAt(0) };
Save
cmd:
run