Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/arnaudjuracek/csv2kirby
- Owner: arnaudjuracek
- License: mit
- Created: 2020-10-23T14:27:32.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-01-23T14:08:25.000Z (almost 2 years ago)
- Last Synced: 2024-11-06T23:45:38.580Z (3 months ago)
- Topics: cli, csv, kirby, yaml
- Language: JavaScript
- Homepage:
- Size: 135 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)