Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kiss-my/csv-to-redirect

Generate Nginx, Apache and Vue Router redirects from a CSV file
https://github.com/kiss-my/csv-to-redirect

Last synced: 24 days ago
JSON representation

Generate Nginx, Apache and Vue Router redirects from a CSV file

Awesome Lists containing this project

README

        

# csv-to-redirect

Simple command line utility to convert a CSV to redirect files for Nginx, Apache and vue-router redirects.

The CSV file needs to have at least two rows named `source` for the base url and `destination` for the redirect location.

## Install

```
npm install -g @kissmy/csv-to-redirect
```

## Usage

```
Usage: csv-to-redirect [options]

Options:
-V, --version output the version number
-i, --input Input CSV file (required)
-o, --output Output file name (Defaults to outputing to terminal)
-t, --type Output type [nginx, apache, vue] (required)
-s, --source Source cell name (default: "source")
-d, --destination Destination cell name (default: "destination")
-h, --help output usage information
```