New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

machinepack-fs

Package Overview
Dependencies
Maintainers
5
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

machinepack-fs - npm Package Compare versions

Comparing version 2.0.3 to 2.1.0

machines/ensure-dir.js

22

machines/mkdir.js
module.exports = {
friendlyName: 'Create directory',
description: 'Create a new directory.',
inputs: {
destination: {
description: 'The destination path where the new directory should be created.',
extendedDescription: 'If a relative path is provided, it will be resolved to an absolute path using the current working directory.',
example: '/Users/mikermcneil/.tmp/bar',
required: true
},
force: {
description: 'Whether or not to overwrite a file or directory which already exists at the specified destination.',
example: true
}
},
defaultExit: 'success',
exits: {
error: {},
success: {},
alreadyExists: {
description: 'Something already exists at the specified path (overwrite by enabling the `force` input)'
}
},
fn: function (inputs, exits) {

@@ -59,2 +79,4 @@

}
};

10

package.json
{
"name": "machinepack-fs",
"version": "2.0.3",
"version": "2.1.0",
"description": "Work with the local filesystem; list files, write files, etc.",

@@ -23,3 +23,3 @@ "scripts": {

"walker": "~1.0.6",
"machine": "^2.0.0",
"machine": "^4.0.0",
"async": "^0.9.0",

@@ -46,5 +46,7 @@ "machinepack-util": "^0.7.0"

"mv",
"mkdir"
]
"mkdir",
"ensure-dir"
],
"testsUrl": "https://travis-ci.org/mikermcneil/machinepack-fs"
}
}
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