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

savim

Package Overview
Dependencies
Maintainers
0
Versions
230
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

savim

[![Test Coverage](https://api.codeclimate.com/v1/badges/82ebbb63cf10115c4a09/test_coverage)](https://codeclimate.com/github/qlaffont/savim/test_coverage) [![Maintainability](https://api.codeclimate.com/v1/badges/82ebbb63cf10115c4a09/maintainability)](http

  • 1.2.208
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
273
increased by415.09%
Maintainers
0
Weekly downloads
 
Created
Source

Test Coverage Maintainability npm npm Snyk Vulnerabilities for npm package NPM

Savim

A simple library to send email cross providers. Old Owner: @flexper

Usage

import { Savim } from 'savim';

const savim = new Savim();

await savim.addProvider<SavimSampleProviderConfig>(SavimSampleProvider, {});

addProvider(savimProvider, config?)

Add provider to savim

Params

Field NameTypeDefaultDescription
savimProviderClass implements SavimTransportInterfacerequiredProvider to use
configobject{}Config for provider

uploadFile(filenameWithPath, content, params?, providerName?)

Upload file

Params

Field NameTypeDefaultDescription
filenameWithPathstringrequiredwhere to upload file
contentstring/Buffer/Streamrequiredfile content
configobject{}Additional Config for provider
providerNameobjectoptionalprovider name

getFile(filenameWithPath, params?, providerName?)

Get file

Params

Field NameTypeDefaultDescription
filenameWithPathstringrequiredwhere to get file
configobject{}Additional Config for provider
providerNameobjectoptionalprovider name

deleteFile(filenameWithPath, params?, providerName?)

Delete file

Params

Field NameTypeDefaultDescription
filenameWithPathstringrequiredwhere to delete file
configobject{}Additional Config for provider
providerNameobjectoptionalprovider name

createFolder(path, params?, providerName?)

Create folder

Params

Field NameTypeDefaultDescription
pathstringrequiredwhere to create folder
configobject{}Additional Config for provider
providerNameobjectoptionalprovider name

deleteFolder(path, params?, providerName?)

Delete folder

Params

Field NameTypeDefaultDescription
pathstringrequiredwhere to delete folder
configobject{}Additional Config for provider
providerNameobjectoptionalprovider name

getFolders(path, params?, providerName?)

Get folders path in path

Params

Field NameTypeDefaultDescription
pathstringrequiredwhere to get folders
configobject{}Additional Config for provider
providerNameobjectoptionalprovider name

getFiles(path, params?, providerName?)

Get files path in path

Params

Field NameTypeDefaultDescription
pathstringrequiredwhere to get files
configobject{}Additional Config for provider
providerNameobjectoptionalprovider name

Tests

To execute jest tests (all errors, type integrity test)

pnpm test

Maintain

This package use TSdx. Please check documentation to update this package.

FAQs

Package last updated on 23 Dec 2024

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