@heise/embetty-base

1.0.9 • Public • Published

embetty-base · Build Status Greenkeeper badge Dependency Status JavaScript Style Guide

Embetty displays remote content like tweets or YouTube videos without compromising your privacy. embetty-base is the API used to retrieve the necessary data.

Quick Start

Install

$ npm install @heise/embetty-base

or

$ yarn add @heise/embetty-base

Basic Usage

const Embetty = require('@heise/embetty-base')

const embetty = new Embetty()
const tweet = await embetty.loadTweet(someStatusId)

Using the cache

By default, remote service responses are stored in an LRU cache. The engine can be selected by defining the environment variable EMBETTY_CACHE. Example:

$ export EMBETTY_CACHE=redis://

Running tests

$ yarn test

Debug

You can set the DEBUG env to embetty.* to print debug info:

$ export DEBUG=embetty.*

License

embetty-base is MIT licensed.

Readme

Keywords

none

Package Sidebar

Install

npm i @heise/embetty-base

Weekly Downloads

67

Version

1.0.9

License

MIT

Unpacked Size

3.11 MB

Total Files

57

Last publish

Collaborators

  • digitalgopnik
  • sehkunde
  • pmb00
  • cst152
  • stevenkowalzik