1.0.67 • Published 9 months ago

fari-directus-parser v1.0.67

Weekly downloads
-
License
ISC
Repository
github
Last release
9 months ago

Parser for FARI

How to use

everything should work out of the box, use like this:

import { fetchDirectus } from 'fari-directus-parser'

// provide either ID or slug

const item = fetchDirectus({id: number, slug: string })

Custom parser

You can also create your own parser and pass as a second argument:

import { fetchDirectus } from 'fari-directus-parser'

const id = 1

function myParser(apiresponsedata){
  // some parser function
}

const item = fetchDirectus({id}, myParser)
1.0.67

9 months ago

1.0.66

10 months ago

1.0.65

10 months ago

1.0.64

10 months ago

1.0.63

10 months ago

1.0.6

12 months ago

1.0.5

12 months ago

1.0.4

12 months ago

1.0.3

12 months ago

1.0.2

12 months ago

1.0.1

12 months ago

1.0.0

12 months ago