# angular-statisfy

> Prerender an Angular application into static HTML for crawlers

Latest version **2.0.0** (published 2021-05-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install angular-statisfy
pnpm add angular-statisfy
yarn add angular-statisfy
bun add angular-statisfy
```

## Health

**Score 35/100 (D)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2021-05-23 |
| First published | 2017-12-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 12.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Matthias Kunnen |
| Maintainers | -waylander- |
| Keywords | Prerender, SEO, Angular, Static HTML |

## Links

- npm: https://www.npmjs.com/package/angular-statisfy
- Repository: https://github.com/MatthiasKunnen/angular-statisfy
- Homepage: https://github.com/MatthiasKunnen/angular-statisfy#readme
- Issues: https://github.com/MatthiasKunnen/angular-statisfy/issues
- npm.io page: https://npm.io/package/angular-statisfy

## Dependencies (1)

- [puppeteer](https://npm.io/package/puppeteer.md) ^9.1.1

## Alternatives

- [@tsparticles/shape-image](https://npm.io/package/@tsparticles/shape-image.md) — 303.7K weekly downloads
- [@tsparticles/shape-line](https://npm.io/package/@tsparticles/shape-line.md) — 233.7K weekly downloads
- [stringify-attributes](https://npm.io/package/stringify-attributes.md) — 58.6K weekly downloads
- [mobile-drag-drop](https://npm.io/package/mobile-drag-drop.md) — 46.3K weekly downloads
- [@comunica/actor-rdf-parse-html](https://npm.io/package/@comunica/actor-rdf-parse-html.md) — 29.2K weekly downloads

## Recent versions

- 2.0.0 (latest) — 2021-05-23
- 1.2.1 — 2018-07-27
- 1.2.0 — 2017-12-01
- 1.1.1 — 2017-12-01
- 1.1.0 — 2017-12-01
- 1.0.1 — 2017-12-01
- 1.0.0 — 2017-12-01

## README

# Angular statisfy
[![npm version](https://img.shields.io/npm/v/angular-statisfy.svg?style=for-the-badge)](https://www.npmjs.com/package/angular-statisfy)
[![Build Status](https://img.shields.io/github/workflow/status/MatthiasKunnen/angular-statisfy/Main?label=Build&logo=github&style=for-the-badge)
](https://github.com/MatthiasKunnen/angular-statisfy/actions)
[![License](https://img.shields.io/npm/l/angular-statisfy?style=for-the-badge&color=green)
](https://github.com/MatthiasKunnen/angular-statisfy/blob/master/LICENSE)

This library renders your application, strips the script tags, and returns the static HTML for a given URL.
The generated HTML can be used to serve spiders and crawlers in order to improve SEO.

Originally made for Angular but works for any single page applications or website.

## Install
Install the library using `yarn add angular-statisfy`.

## Usage

The default usage of statisfy can be found in the code below.

```typescript
import {launch} from 'puppeteer';

import {generateStaticHtml} from './generate-static';

(async () => {
    const browser = await launch({
        args: ['--no-sandbox'],
    });

    const html = await generateStaticHtml('https://bookingworldspeakers.com', browser);

    await browser.close();
})().catch(console.error);
```

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