# flex-seo

> a package to scan all of the SEO defects

Latest version **1.0.4** (published 2018-03-03) · Apache 2.0 license · 0 weekly downloads

## Install

```sh
npm install flex-seo
pnpm add flex-seo
yarn add flex-seo
bun add flex-seo
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2018-03-03 |
| First published | 2018-03-03 |
| Weekly downloads | 0 |
| License | Apache 2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 1 MB |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Wei-Kun Lu |
| Maintainers | weikunlu |
| Keywords | node, SEO |

## Links

- npm: https://www.npmjs.com/package/flex-seo
- Repository: https://github.com/weikunlu/flex-seo
- Homepage: https://github.com/weikunlu/flex-seo#readme
- Issues: https://github.com/weikunlu/flex-seo/issues
- npm.io page: https://npm.io/package/flex-seo

## Dependencies (3)

- [when](https://npm.io/package/when.md) 3.7.8
- [cheerio](https://npm.io/package/cheerio.md) 1.0.0-rc.2
- [underscore](https://npm.io/package/underscore.md) 1.8.3

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 1.0.4 (latest) — 2018-03-03
- 1.0.3 — 2018-03-03
- 1.0.2 — 2018-03-03
- 1.0.1 — 2018-03-03
- 1.0.0 — 2018-03-03

## README

<h1 align="center">flex-seo</h1>

<h5 align="center">A Node.js package to scan a HTML file and show all of the SEO defects.</h5>

<br />

## Install
`npm install flex-seo`

## Run tests
`npm test`

## Quick start
```js
var fs = require('fs');

var Flexseo = require('flex-seo');
var Input = require('flex-seo').Input;
var Output = require('flex-seo').Output;
var Rule = require("flex-seo").Rule;

// chain any predefined rules
var opt = {
    enableImgTagDefect: true,
    enableATagDefect: true,
    enableHeadTagDefect: true,
    enableStrongTagDefect: true,
    enableH1TagDefect: true
};

var flexseo = new Flexseo(opt);

// configure input and output
flexseo.setInput(new Input().createInputFile(__dirname+"/test.html"));
flexseo.setOutput(new Output().createOutputConsole());

// implement additional rule for meta tag
flexseo.addRule(Rule.detectExistTagWithAttribute("head", "meta", "http-equiv"));

// show all of the SEO defects
flexseo.detectSEO().then(
  function(result){
    console.log(result);
  },
  function(err){
    console.log("catch error: ");
    console.log(err);
  }
);
```

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