# peritext-generator-twitter

> peritext pdf twitter fragments generator

Latest version **0.0.7** (published 2017-10-22) · 0 weekly downloads

## Install

```sh
npm install peritext-generator-twitter
pnpm add peritext-generator-twitter
yarn add peritext-generator-twitter
bun add peritext-generator-twitter
```

## Health

**Score 0/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: insecure dependencies; abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.7 |
| Published | 2017-10-22 |
| First published | 2017-10-08 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 13 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Robin de Mourat |
| Maintainers | robindemourat |

## Links

- npm: https://www.npmjs.com/package/peritext-generator-twitter
- npm.io page: https://npm.io/package/peritext-generator-twitter

## Dependencies (13)

- [uuid](https://npm.io/package/uuid.md) ^3.1.0
- [async](https://npm.io/package/async.md) ^2.5.0
- [react](https://npm.io/package/react.md) ^15.6.1
- [redraft](https://npm.io/package/redraft.md) ^0.8.0
- [webshot](https://npm.io/package/webshot.md) ^0.18.0
- [progress](https://npm.io/package/progress.md) ^2.0.0
- [precommit](https://npm.io/package/precommit.md) ^1.2.2
- [react-dom](https://npm.io/package/react-dom.md) ^15.6.1
- [array-shuffle](https://npm.io/package/array-shuffle.md) ^1.0.1
- [simple-pandoc](https://npm.io/package/simple-pandoc.md) git+https://github.com/robindemourat/simple-pandoc.git
- [react-citeproc](https://npm.io/package/react-citeproc.md) ^0.1.7
- [peritext-typography](https://npm.io/package/peritext-typography.md) git+https://github.com/peritext/typographic-base.git
- [peritext-rendering-utils](https://npm.io/package/peritext-rendering-utils.md) 0.0.15

## Recent versions

- 0.0.7 (latest) — 2017-10-22
- 0.0.6 — 2017-10-09
- 0.0.5 — 2017-10-09
- 0.0.4 — 2017-10-09
- 0.0.3 — 2017-10-09
- 0.0.2 — 2017-10-08
- 0.0.1 — 2017-10-08

## README

WIP WIP WIP

This generator - from the peritext fragments family of generators - consumes a peritext document in order to allow the publishing of fragments constituted of text and images compatible with the twitter format requirements.

The generator produces a json file summarizing all the tweets' data and a series of images to use in tweets. Twitter API connexion and tweet sending must be taken care of at a higher level of implementation.

Component API :

```
{
  story, // json object
  imagesFolder = './temp', // where to put the generated images
  dataPath = './temp', // where to put the generated json file describing the tweets
  contextualizers, // map of the contextualizers modules to use
  cssStyle = '',
  fontUrl,
  locale = 'fr',// iso-639 locale

  displayText = true,
  minBlockCharLength = 100, // min length of text to accept for building an excerpt
  includeHeaders = false, // weather to include headers
  includeBlockContextualizations = true, // display as image static block contextualizations
  excludeBlockContextualizationTypes = [], // what blocks to exclude
  ordering = 'shuffle', // or 'normal' or 'reverse'
  makeLink, // undefined or functions that takes section id and possibly contextualization id
  prefix = '', // tweet body prefix
  suffix = '#peritext-twitter', // tweet body suffix

  displayTags = true, // whether to generate hashtags based on the plain text
  weightedTags = true, // whether to weighten the tags
  tagsStopWords = [], // stop words to use for generating the tags

  callback
}
```

---
_Source: https://npm.io/package/peritext-generator-twitter · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
