UNPKG

webflow-json-dump

Version:

Simple script that dumps all items in a Webflow CMS Collection to JSON. Useful for creating a file-system based cache of your CMS or other hackery.

13 lines (9 loc) 280 B
#!/usr/bin/env node 'use strict'; const Webflow = require('webflow-api'); const lib = require('./lib'); module.exports = function(options) { const imports = {}; imports.webflow = new Webflow({ token: options.token || options.apiToken }); return lib(options, imports); };