trieloff / theblog-redirect-importer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The Blog Redirect Importer

A small command line tool to import redirects from an Excel spreadsheet into a Fastly edge dictionary

Status

codecov CircleCI GitHub license GitHub issues LGTM Code Quality Grade: JavaScript semantic-release

Installation

$ git clone git@github.com:trieloff/theblog-redirect-importer.git
$ npm install

Usage

You need:

  1. A Fastly Service ID pointing to a service that has an edge dictionary called redirects
  2. A Fastly Token
  3. An Excel workbook urls.xlsx with one sheet called urls that has two columns. The first column must be named year and contain the year of the post, the second column must be named url and have the full URL of the imported post.
$ node src/index.js <service-id> <token>
639 items imported

Development

Build

$ npm install

Test

$ npm test

Lint

$ npm run lint

About

License:Apache License 2.0


Languages

Language:JavaScript 100.0%