node package manager
Love JavaScript? Your insights can make it even better. Take the 2017 JavaScript Ecosystem Survey »

add-file-extensions

add-file-extensions

Add some file extensions to a bunch of files.

use

var addExtension = require('add-file-extensions')
 
addExtensions('/path/to/folder', 'doc', function(err) {
    if (!err) {
        // all files in folder have `doc` extension added 
    }
})

license

VOL