Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/kiss-my/csv-to-redirect
- Owner: kiss-my
- Created: 2019-04-09T11:49:21.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-07-11T23:27:24.000Z (over 1 year ago)
- Last Synced: 2024-10-01T15:55:49.211Z (about 1 month ago)
- Language: JavaScript
- Homepage:
- Size: 32.2 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
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
```