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

file-service-node-client

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

file-service-node-client

Zip dosyası yüklemek için kullanılır.

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

File Service Node Client

uploadZipFile

Zip dosyası yüklemek için kullanılır.

import fileService from "file-service-node-client";

const uploadResponse = await fileService.uploadZip(path.join(process.cwd(), "filRar.rar"), "oauth token");

/*
uploadResponse
{
  status: true,
  error: '',
  data: { fileId: '6415dde418fefc0ddc978216' }
}
*/

downloadFile

Bir dosya indirmek için kullanılır.

import fileService from "file-service-node-client";

const downloadResponse = await fileService.downloadFile(fileId, directoryPath) 

/*
downloadResponse
{
  status: true,
  error: '',
  data: {
    _id: '6415dde418fefc0ddc978216',
    name: '865ee15a-fc65-4875-883c-9274649763ca.rar',
    type: 'zipFile',
    visible: true,
    createdAt: '2023-03-18T15:51:00.863Z',
    updatedAt: '2023-03-18T15:51:00.863Z',
    __v: 0
  }
} 
*/

getFileConfiguration

Bir dosyanın bilgilerini getirmek için kullanılır.

import fileService from "file-service-node-client";

const fileConfigurationResponse = await fileService.getFileConfiguration(fileId) 

/*
fileConfigurationResponse
{
  status: true,
  error: '',
  data: {
    _id: '6415dde418fefc0ddc978216',
    name: '865ee15a-fc65-4875-883c-9274649763ca.rar',
    type: 'zipFile',
    visible: true,
    createdAt: '2023-03-18T15:51:00.863Z',
    updatedAt: '2023-03-18T15:51:00.863Z',
    __v: 0
  }
} 
*/

Keywords

FAQs

Package last updated on 18 Mar 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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