@heise/embetty-base
[Embetty](https://github.com/heiseonline/embetty) displays remote content like tweets or YouTube videos without compromising your privacy. `embetty-base` is the API used to retrieve the necessary data.
Last updated 9 months ago by mick_heise .
MIT · Original npm · Tarball · package.json
$ cnpm install @heise/embetty-base 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 1.0.9                                ...           latest (9 months ago)

11 Versions

  • 1.0.9                                ...           9 months ago
  • 1.0.8                                ...           9 months ago
  • 1.0.4                                ...           a year ago
  • 1.0.3                                ...           2 years ago
  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
  • 1.0.0-beta.6                                ...           2 years ago
  • 1.0.0-beta.5                                ...           2 years ago
  • 1.0.0-beta.4                                ...           2 years ago
  • 1.0.0-beta.2                                ...           2 years ago
Downloads
Today 0
This Week 11
This Month 14
Last Day 0
Last Week 0
Last Month 7
Dependencies (8)
Dev Dependencies (8)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |