nl_tokens: Get all file extensions of the files which have the same basename .
pl_tokens: function getExistingExtensions ( filePath ) { const basename = path . basename ( filePath , <mask> . extname ( filePath ) ) try { return fs . readdirSync ( path . dirname ( filePath ) ) . filter ( filename => path . basename ( filename , path . extname ( filename ) ) === basename ) . map ( filename => path . extname ( filename ) ) } catch ( _error ) { return [ ] } }