# @fireflysemantics/fs-gist

> A web component for including gists in html content

Latest version **1.0.17** (published 2023-05-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install @fireflysemantics/fs-gist
pnpm add @fireflysemantics/fs-gist
yarn add @fireflysemantics/fs-gist
bun add @fireflysemantics/fs-gist
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.17 |
| Published | 2023-05-12 |
| First published | 2020-12-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 262.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Ole Ersoy |
| Maintainers | ole.ersoy |
| Keywords | web-components, lit-element, typescript |

## Links

- npm: https://www.npmjs.com/package/@fireflysemantics/fs-gist
- Repository: https://github.com/fireflysemantics/fs-gist
- Homepage: https://github.com/fireflysemantics/fs-gist#readme
- Issues: https://github.com/fireflysemantics/fs-gist/issues
- npm.io page: https://npm.io/package/@fireflysemantics/fs-gist

## Dependencies (1)

- [lit-element](https://npm.io/package/lit-element.md) ^2.3.1

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 1.0.17 (latest) — 2023-05-12
- 1.0.15 — 2021-01-25
- 1.0.13 — 2021-01-25
- 1.0.12 — 2021-01-22
- 1.0.11 — 2021-01-22
- 1.0.10 — 2021-01-22
- 1.0.9 — 2021-01-22
- 1.0.7 — 2020-12-06
- 1.0.6 — 2020-12-06
- 1.0.5 — 2020-12-06
- 1.0.4 — 2020-12-05
- 1.0.3 — 2020-12-05
- 1.0.2 — 2020-12-05
- 1.0.1 — 2020-12-05
- 1.0.0 — 2020-12-05

## README

# fs-gist

Web component for embedding gists in html content

## Installation

`npm i @fireflysemantics/fs-gist`

## Usage

Include `fs-gist` via CDN like this in your html page:

```
<script src="https://unpkg.com/@fireflysemantics/fs-gist"></script>
```

To show this gist url:

`https://gist.github.com/fireflysemantics/054716730103cd205c39167054542f68` 

configure the component `gistURL` like this:

```
<body style="height: 100vh;">
  <fs-gist gistURL="https://gist.github.com/fireflysemantics/054716730103cd205c39167054542f68">
  </fs-gist>
</body>
```

or 
configure the component `gistID` like this:

```
<body style="height: 100vh;">
  <fs-gist gistID="fireflysemantics/054716730103cd205c39167054542f68">
  </fs-gist>
</body>
```

Note that we set the `height` of the body to `100vh` in order to allow
`fs-gist` to expand.

A height property is also supported.  For example:

```
<body style="height: 100vh;">
  <fs-gist height="10rem" gistID="fireflysemantics/054716730103cd205c39167054542f68">
  </fs-gist>
</body>

```

[Stackblitz Demo](https://stackblitz.com/edit/typescript-fs-gist-set-body-height-demo?file=index.html)

## Development

### Baseline

The project baseline is based on the [Lit Element Typescript Starter Project](https://fireflysemantics.medium.com/lit-element-resources-94038d5f2506).

### Package

This project uses the build configuration
from the [rollup starter app](https://github.com/rollup/rollup-starter-app/blob/master/package.json) as well as the `rollup.config.js` example configuration found in the [Lit Element Typescript Starter Project](https://fireflysemantics.medium.com/lit-element-resources-94038d5f2506).

---
_Source: https://npm.io/package/@fireflysemantics/fs-gist · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
