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

custom-file

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

custom-file - npm Package Compare versions

Comparing version 0.5.6 to 0.5.7

5

package.json
{
"name": "custom-file",
"description": "It abstracts the File and Folder classes, can be used on any virtual file system, and stream supports.",
"version": "0.5.6",
"version": "0.5.7",
"homepage": "https://github.com/snowyu/custom-file.js",

@@ -31,3 +31,3 @@ "repository": {

"dependencies": {
"abstract-file": "^0.5.0",
"abstract-file": "^0.5.4",
"bluebird": "^2.9.34",

@@ -53,2 +53,3 @@ "inherits-ex": "^1.1.3",

"mocha": "~2.1.0",
"path.js": "^1.0.7",
"pre-commit": "~1.0.2",

@@ -55,0 +56,0 @@ "rimraf": "~2.2.8",

21

README.md

@@ -23,2 +23,3 @@ ## custom-file [![npm](https://img.shields.io/npm/v/custom-file.svg)](https://npmjs.org/package/custom-file)

fs.cwd = process.cwd # what's the get current working directory function.
fs.path = require 'path.js' # what's the path package. (>=abstract-file@0.5.4 supports)
CustomFile.setFileSystem(fs) # and should set your filesystem first.

@@ -29,11 +30,11 @@

file = File './readme.md', load:true, read:true, buffer:true
file = File './readme.md', load:true, read:true
console.log file.contents #<Buffer 23...>
file = File './readme.md', load:true, read:true
file = File './readme.md', load:true, read:true, buffer:false
console.log file.contents instanceof Stream #true
file.pipe process.stdout, end:false #pipe to stdout(the stdout should be never closed.)
file = Folder './', load:true, read:true, buffer:true
file = Folder './', load:true, read:true
console.log file.contents #[<File "README.md">, <Folder "src">,...]
file = Folder './', load:true, read:true
file = Folder './', load:true, read:true, buffer:false
console.log file.contents instanceof Stream #true

@@ -76,4 +77,3 @@ file.pipe through2.obj (aFile, enc, next)->next null, aFile.inspect()+'\n'

load: true,
read: true,
buffer: true
read: true
});

@@ -85,3 +85,4 @@

load: true,
read: true
read: true,
buffer: false
});

@@ -97,4 +98,3 @@

load: true,
read: true,
buffer: true
read: true
});

@@ -106,3 +106,4 @@

load: true,
read: true
read: true,
buffer: false
});

@@ -109,0 +110,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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