# seo-csv

> The simple module of seo data from csv file for meta tags

Latest version **1.0.0** (published 2021-06-05) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2021-06-05 |
| First published | 2021-06-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 2.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Ruslan Lazurenko |
| Maintainers | nebado |
| Keywords | seo, csv, meta, express |

## Links

- npm: https://www.npmjs.com/package/seo-csv
- Repository: https://github.com/Nebado/seo-csv
- Issues: https://github.com/Nebado/seo-csv/issues
- npm.io page: https://npm.io/package/seo-csv

## Dependencies (1)

- [csv-parser](https://npm.io/package/csv-parser.md) ^3.0.0

## Alternatives

- [csv-to-markdown-table](https://npm.io/package/csv-to-markdown-table.md) — 47.0K weekly downloads
- [@sapphire/ratelimits](https://npm.io/package/@sapphire/ratelimits.md) — 4.4K weekly downloads
- [js-csvparser](https://npm.io/package/js-csvparser.md) — 2.0K weekly downloads
- [@adadapted/js-sdk](https://npm.io/package/@adadapted/js-sdk.md) — 251 weekly downloads
- [@grapecity/spread-sheets-sparklines](https://npm.io/package/@grapecity/spread-sheets-sparklines.md) — 103 weekly downloads

## Recent versions

- 1.0.0 (latest) — 2021-06-05

## README

# Seo Csv Module

This is a very simple seo module for set meta tags from csv file on Nodejs.

## Installation

```console
$ npm install seo-csv
```

## Configuration

### Your seo.csv file with your seo meta in directory public/.

```console
url;title;description;keywords
/;Home;Home;Home
/about;About;About;About
```

### Add middleware in your app.js

```js
app.use(
  require("seo-csv")({
    ignore: /^\/(images|js|css)/,
    namespace: "meta",
  })
);

app.use(function (req, res, next) {
    res.locals.meta = req.meta;
    next();
});

app.get("/", function (req, res) {
  res.render("index", res.locals.meta);
});

```

### In view

```html
<title>{{title}}</title>
<meta name="description" content="{{description}}" />
<meta name="keywords" content="{{keywords}}" />
```

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