This repository has been archived by the owner. It is now read-only.
Processor for AcyOrt
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
test
.editorconfig
.eslintignore
.eslintrc
.gitignore
.npmignore
.travis.yml
LICENSE
README.md
index.js
package-lock.json
package.json

README.md

acyort-processor

Build Status codecov

Data Processor for AcyOrt

Install

$ npm i acyort-processor -S

Usage

const processor = require('acyort-processor')

const config = {
  "title": "acyort",
  "post_dir": "post",
  "category_dir": "category",
  "default_category": "uncategorized",
  "authors": ["LoeiFy"],
  "per_page": 2,
  "root": "/",
  "tag_dir": "tag"
}
const issues = [...issues] // data from github api

processor.call(config, issue)
  .then(res => console.log(res))
  .catch(err => console.error(err))

/*
{
  posts: [...],
  pages: [...],
  categories: [...],
  tags: [...],
  index: [...],
  category: {
    ...: [...]
  },
  tag: {
    ...: [...]
  }
}
more: https://acyort.com/docs/variables/
*/