PATH:
usr
/
local
/
lib
/
node_modules
/
pm2
/
node_modules
/
rechoir
/
lib
const path = require('path'); const EXTRE = /^[.]?[^.]+([.].*)$/; module.exports = function (input) { var extension = EXTRE.exec(path.basename(input)); if (!extension) { return; } return extension[1]; };
[-] normalize.js
[edit]
[+]
..
[-] extension.js
[edit]
[-] register.js
[edit]