Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

write-yaml-file

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

write-yaml-file - npm Package Compare versions

Comparing version 1.0.1 to 2.0.0

6

index.js

@@ -22,12 +22,12 @@ 'use strict'

return fn(fp, yaml, {mode: opts.mode})
return fn(fp, yaml, { mode: opts.mode })
}
module.exports = (fp, data, opts) =>
pify(mkdirp)(path.dirname(fp), {fs})
pify(mkdirp)(path.dirname(fp), { fs })
.then(() => main(pify(writeFileAtomic), fp, data, opts))
module.exports.sync = (fp, data, opts) => {
mkdirp.sync(path.dirname(fp), {fs})
mkdirp.sync(path.dirname(fp), { fs })
main(writeFileAtomic.sync, fp, data, opts)
}
{
"name": "write-yaml-file",
"version": "1.0.1",
"version": "2.0.0",
"description": "Stringify and write YAML to a file atomically",

@@ -8,3 +8,3 @@ "main": "index.js",

"engines": {
"node": ">=4"
"node": ">=6"
},

@@ -18,6 +18,3 @@ "files": [

},
"repository": {
"type": "git",
"url": "git+https://github.com/zkochan/write-yaml-file.git"
},
"repository": "https://github.com/zkochan/packages/tree/master/write-yaml-file",
"keywords": [

@@ -39,6 +36,3 @@ "write",

"license": "MIT",
"bugs": {
"url": "https://github.com/zkochan/write-yaml-file/issues"
},
"homepage": "https://github.com/zkochan/write-yaml-file#readme",
"homepage": "https://github.com/zkochan/packages/tree/master/write-yaml-file#readme",
"dependencies": {

@@ -48,8 +42,8 @@ "graceful-fs": "^4.1.11",

"mkdirp": "^0.5.1",
"pify": "^3.0.0",
"pify": "^4.0.0",
"write-file-atomic": "^2.0.0"
},
"devDependencies": {
"standard": "^11.0.1"
"standard": "12.0.1"
}
}
# write-yaml-file
[![Build Status](https://travis-ci.org/zkochan/write-yaml-file.svg?branch=master)](https://travis-ci.org/zkochan/write-yaml-file)
> Stringify and write YAML to a file atomically

@@ -39,3 +37,3 @@

Type: `number`
Type: `number`
Default `438` *(0666 in octal)*

@@ -42,0 +40,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc