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

@spinajs/fs

Package Overview
Dependencies
Maintainers
1
Versions
260
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@spinajs/fs - npm Package Compare versions

Comparing version 2.0.163 to 2.0.164

19

lib/cjs/interfaces.d.ts

@@ -61,5 +61,22 @@ /// <reference types="node" />

abstract Name: string;
/**
* Downloads file to local storage and returns path to it.
* If used on local storage provider eg. hard drive it only returns full path to file
*
* On remote storage provivers eg. amazon s3 - it tries to download it to local disk first and returns
* full path.
*
* Returns local path to file
*
* @param path path to download
*/
abstract download(path: string): Promise<string>;
/**
*
* Returns full LOCAL path to file
*
* @param path path to resolve
*/
abstract resolvePath(path: string): string;
abstract read(path: string, encoding: BufferEncoding): Promise<string | Buffer>;
abstract read(path: string, encoding?: BufferEncoding): Promise<string | Buffer>;
abstract readStream(path: string, encoding?: BufferEncoding): Promise<ReadStream>;

@@ -66,0 +83,0 @@ abstract write(path: string, data: string | Buffer, encoding?: BufferEncoding): Promise<void>;

@@ -61,5 +61,22 @@ /// <reference types="node" resolution-mode="require"/>

abstract Name: string;
/**
* Downloads file to local storage and returns path to it.
* If used on local storage provider eg. hard drive it only returns full path to file
*
* On remote storage provivers eg. amazon s3 - it tries to download it to local disk first and returns
* full path.
*
* Returns local path to file
*
* @param path path to download
*/
abstract download(path: string): Promise<string>;
/**
*
* Returns full LOCAL path to file
*
* @param path path to resolve
*/
abstract resolvePath(path: string): string;
abstract read(path: string, encoding: BufferEncoding): Promise<string | Buffer>;
abstract read(path: string, encoding?: BufferEncoding): Promise<string | Buffer>;
abstract readStream(path: string, encoding?: BufferEncoding): Promise<ReadStream>;

@@ -66,0 +83,0 @@ abstract write(path: string, data: string | Buffer, encoding?: BufferEncoding): Promise<void>;

4

package.json
{
"name": "@spinajs/fs",
"version": "2.0.163",
"version": "2.0.164",
"description": "wrapper for file operations",

@@ -55,3 +55,3 @@

"dependencies": {
"@spinajs/exceptions": "2.0.163",
"@spinajs/exceptions": "2.0.164",
"archiver": "^5.3.1",

@@ -58,0 +58,0 @@ "lodash": "^4.17.21",

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

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