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
3
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 1.2.1 to 1.3.0

11

machines/read.js

@@ -19,2 +19,5 @@ module.exports = {

error: {},
doesNotExist: {
description: 'No file exists at the provided `source` path'
},
success: {

@@ -30,3 +33,9 @@ example: 'stuff in a file!'

fsx.readFile(inputs.source, function (err, contents) {
if (err) return exits.error(err);
if (err) {
if (typeof err === 'object' && err.code === 'ENOENT') {
return exits.doesNotExist();
}
// Some unrecognized error
return exits.error(err);
}
return exits.success(contents);

@@ -33,0 +42,0 @@ });

2

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

@@ -5,0 +5,0 @@ "scripts": {

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