fari-directus-parser
TypeScript icon, indicating that this package has built-in type declarations

1.0.67 • Public • Published

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)

Readme

Keywords

Package Sidebar

Install

npm i fari-directus-parser

Weekly Downloads

1

Version

1.0.67

License

ISC

Unpacked Size

19.4 kB

Total Files

8

Last publish

Collaborators

  • mosatron