The Blog Redirect Importer
A small command line tool to import redirects from an Excel spreadsheet into a Fastly edge dictionary
Status
Installation
$ git clone git@github.com:trieloff/theblog-redirect-importer.git
$ npm install
Usage
You need:
- A Fastly Service ID pointing to a service that has an edge dictionary called
redirects
- A Fastly Token
- An Excel workbook
urls.xlsx
with one sheet calledurls
that has two columns. The first column must be namedyear
and contain the year of the post, the second column must be namedurl
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