Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/arnaudjuracek/csv2kirby

Generate Kirby content from a CSV file
https://github.com/arnaudjuracek/csv2kirby

cli csv kirby yaml

Last synced: 27 days ago
JSON representation

Generate Kirby content from a CSV file

Awesome Lists containing this project

README

        

# `csv2kirby`
> Generate Kirby content from a CSV file


## Installation

```console
$ npm install --global arnaudjuracek/csv2kirby
```

## Usage

```
Usage:
csv2kirby
csv2kirby --output '/dev/a-kirby-website/content'
csv2kirby --blueprint
csv2kirby --title 'TitleColumn'
csv2kirby --publish
csv2kirby --download '^http.*(png|jpe?g)$'
csv2kirby --ignore '(index|pubdate)'
csv2kirby --raw '(index|pubdate)'

Options:
-h, --help Show this screen
-v, --version Print the current version

-o, --output Define the output directory (default: CWD/content/)

--progress Log writing progress
--verbose Print detailed informations, disable --progress
--porcelain Print parsable log, disable --progress and --verbose

--blueprint Define the name of the Kirby blueprint (default: 'page.txt')
--title Define the column used to get the mandatory page Title
(default: 'title')

--publish Auto-publish all written pages (order based on their index in
the CSV file)

--download Define a regex which trigger a file download
--ignore Define a regex to ignore some column names
--raw Define a regex to store some column in a raw field,
referencing their name and the value of the corresponding
line
```

## Development

```console
$ git clone https://github.com/arnaudjuracek/csv2kirby
$ cd csv2kirby && npm install
```

## License
[MIT.](https://tldrlegal.com/license/mit-license)