1.1.2 • Published 6 years ago

contentful-offline-delivery v1.1.2

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

contentful-offline-delivery

This library allows very basic usage of the Content Delivery API — running offline, and powered by a contentful-export.

To use, first export your content using contentful-export.

Current state of Content Delivery API: Only getEntries and getEntry methods are implemented. 🦀


yarn add contentful-offline-delivery

const contentful = require('contentful-offline-delivery')
const contentfulExport = require('./contentful-export.json')

contentful.import(contentfulExport)

// Use like existing Content Delivery API
contentful.getEntries({
  content_type: 'books',
  'fields.category': 'philosophy',
  locale: 'en-US' // default,
  include: 3,
  skip: 12,
  limit: 5
}).then(response => {
  console.log(response)
})
1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago