A wrapper around fs.writeFile for safely replacing a file, especially to guard against double-writes.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

29 lines
692 B

{
"name": "safe-replace",
"version": "1.1.0",
"description": "A micro-module for safely replacing a file.",
"main": "index.js",
"scripts": {
"test": "node test.js"
},
"repository": {
"type": "git",
"url": "https://git.coolaj86.com/coolaj86/fs-safe-replace.js.git"
},
"keywords": [
"cluster",
"race",
"condition",
"file",
"write",
"replace",
"config",
"json"
],
"author": "AJ ONeal <coolaj86@gmail.com> (https://coolaj86.com/)",
"license": "(MIT OR Apache-2.0)",
"bugs": {
"url": "https://git.coolaj86.com/coolaj86/fs-safe-replace.js/issues"
},
"homepage": "https://git.coolaj86.com/coolaj86/fs-safe-replace.jse"
}