File size: 262 Bytes
fea495a
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
import fs from 'fs';
export async function isWriteable(directory) {
    try {
        await fs.promises.access(directory, (fs.constants || fs).W_OK);
        return true;
    } catch (err) {
        return false;
    }
}

//# sourceMappingURL=is-writeable.js.map