write
write copied to clipboard
Write data to the file system, creating any intermediate directories if they don't already exist. Used by flat-cache and many others!
``` error - ./node_modules/add-filename-increment/index.js:3:0 Module not found: Can't resolve 'fs' Import trace for requested module: ./node_modules/write/index.js ``` I get this error when I try to use write. npm says the...
I think there is a race condition when 2 `write()` calls write to the same file at almost the same time, like the test case below: ```js const targetFile =...
https://github.com/jonschlinkert/write/blob/f537eb68091d0257b5a4ea915aa00a2c46727198/index.js#L183-L186 Node fs has mkdir built in with recursive mode available as a promise method https://nodejs.org/api/fs.html#fs_fspromises_mkdir_path_options
Hello! I've found this issue when tried to use the `increment` option. In the empty folder I expect the following code to create `foo.txt` file: ```javascript write.sync('foo.txt', 'some data', {...