npm

Check out our latest tech talk, "JavaScript Supply Chain Security" presented by VP of Security, Adam Baldwin.Watch it here »

acyort-processor

1.0.6 • Public • Published

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/
*/

install

npm i acyort-processor

Downloadsweekly downloads

6

version

1.0.6

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability