How to write that node-glob matches all non-js files?

use node-glob to match files, match to all non-js files, how to write?

May.08,2022

glob("**/!(*.js)", function (er, files) {
    console.log(files)
})

! (pattern | pattern | pattern) Matches anything that does not match any of the patterns provided.

Glob Primer

Menu