/seneca-provider

Seneca plugin that provide basic functionality for accessing external service providers (third party APIs etc).

Primary LanguageTypeScriptMIT LicenseMIT

Seneca Provider

Seneca Provider is a plugin for Seneca

A plugin to support access to third party APIs. This is the base plugin used by service-specific provider plugins (such as @seneca/github-provider) to handle key management and other shared tasks.

npm version build Coverage Status Known Vulnerabilities DeepScan grade Maintainability

Voxgig This open source module is sponsored and supported by Voxgig.

Quick Example

// Setup - get the key value (<SECRET>) separately from a vault or
// environment variable.
Seneca()
  .use('provider')

Install

$ npm install @seneca/provider

Provider Plugins

Write Your Own Provider

Options

  • provider : object [object Object]

Set plugin options when loading with:

seneca.use('provider', { name: value, ... })

Note: foo.bar in the list above means { foo: { bar: ... } }

Action Patterns

Action Descriptions

« get:key,sys:provider »

Get the value for a specific provider and key name.


« get:keymap,sys:provider »

No description provided.


« list:provider,sys:provider »

List all the providers and their key names.