Socket
Socket
Sign inDemoInstall

contentful-blog-importer

Package Overview
Dependencies
180
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    contentful-blog-importer

Generic data importer for blogs on Contentful


Version published
Weekly downloads
4
increased by100%
Maintainers
1
Install size
25.9 MB
Created
Weekly downloads
 

Changelog

Source

v1.1.0 - 2016-01-01

Changed

  • Ignore non-existing embeddings

Readme

Source

contentful-blog-importer

Generic data importer for blogs on Contentful.

Usage

import ContentfulBlogImporter from 'contentful-blog-importer';

new ContentfulBlogImporter(spaceId, cmaToken, options).run(data);

Options

| Name | Description                                 | Default            | Example                                |
|------|---------------------------------------------|--------------------|----------------------------------------|
| host | The host you want to run the import against | api.contentful.com | { host: 'my-test-stub.localhost.com' } |

Data format

let data = {
  authors: [
    {
      name: 'John Doe',
      slug: 'john-doe', // Falls back to an auto-generated slug based on the name.
      email: 'john@doe.com',
      image: 'TBD.jpg'
    }
  ],

  tags: [
    {
      name: 'General',
      slug: 'general'  // Falls back to an auto-generated slug based on the name.
    }
  ],

  posts: [
    {
      title: 'A generic data importer for blogs',
      slug: 'a-generic-data-importer-for-blogs',
      body: '**Various** information about the *importer*',
      publishedAt: '2014-08-19T22:00:00+02:00',
      metaTitle: 'Title for contentful-blog-importer post',
      metaDescription: 'Description for contentful-blog-importer post',
      author: 'slug-of-an-author',
      tags: [ 'slug-of-a-tag', 'slug-of-another-tag' ]
    }
  ]
};

Keywords

FAQs

Last updated on 01 Jan 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc