1.0.67 • Published 5 months ago

fari-directus-parser v1.0.67

Weekly downloads
-
License
ISC
Repository
github
Last release
5 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

5 months ago

1.0.66

5 months ago

1.0.65

5 months ago

1.0.64

5 months ago

1.0.63

5 months ago

1.0.6

8 months ago

1.0.5

8 months ago

1.0.4

8 months ago

1.0.3

8 months ago

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago