kutt-to-snapp

0.0.2 • Public • Published

kutt-to-snapp

Migrate short URLs from kutt to snapp.

Usage

KUTT_URL=https://kutt.it \
KUTT_TOKEN=your-kutt-token \
MIGRATE_ALL=true \
npx kutt-to-snapp > kutt.csv

kutt-to-snapp will output the CSV file to stdout.

KUTT_URL and KUTT_TOKEN are required.

KUTT_TOKEN can generate in settings page.

settings page

MIGRATE_ALL is optional. default value is false. If set to true, it will read all short URLs from kutt. Only you are the administrator of kutt.

After exporting, you can import the CSV file to snapp.

import csv to snapp

The current script only implements single-user data migration.

If you are the administrator of a self-hosted kutt instance and you accept to migrate all data under a single snapp username, then this script can accomplish this by passing in the MIGRATE_ALL=true environment variable.

For multi-user migrations, there is currently no support.

License

MIT.

Readme

Keywords

Package Sidebar

Install

npm i kutt-to-snapp

Weekly Downloads

0

Version

0.0.2

License

MIT

Unpacked Size

858 kB

Total Files

6

Last publish

Collaborators

  • ivanli-cn