index.js
function chmod(p, mode) {
    mode = mode || 0777;
    if (!fs.existsSync(p)) {
        return true;
    }
    return fs.chmodSync(p, mode);
}
function chmod(p, mode) {
    mode = mode || 0777;
    if (!fs.existsSync(p)) {
        return true;
    }
    return fs.chmodSync(p, mode);
}
function chmod ( p , mode ) { mode = mode || 0777 ; if ( ! fs . existsSync ( p ) ) { return true ; } return fs . chmodSync ( p , mode ) ; }
Modify the permissions of the file or folder p.
Synchronous mode
@param {string} p
@param {number} mode
@returns {*}
Modify the permissions of the file or folder p . Synchronous mode