Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

contentful-export

Package Overview
Dependencies
Maintainers
0
Versions
520
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

contentful-export

this tool allows you to export a space to a JSON dump

  • 7.19.162
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
66K
decreased by-52.07%
Maintainers
0
Weekly downloads
 
Created

What is contentful-export?

The contentful-export npm package is a tool designed to export data from Contentful, a content management system (CMS). It allows users to export content types, entries, assets, and more from a Contentful space into a JSON file. This can be useful for backup purposes, migrations, or for setting up similar environments.

What are contentful-export's main functionalities?

Exporting Content Types

This feature allows you to export all content types from a specified Contentful space. The code sample demonstrates how to set up the export options and execute the export process.

const contentfulExport = require('contentful-export');

const options = {
  spaceId: 'your_space_id',
  managementToken: 'your_management_token',
  contentFile: 'export.json',
  includeDrafts: true,
  includeArchived: true
};

contentfulExport(options).then((result) => {
  console.log('Export successful!');
}).catch((err) => {
  console.error('Export failed:', err);
});

Exporting Entries

This feature allows you to export all entries from a specified Contentful space. The code sample shows how to configure the export options to include entries and execute the export.

const contentfulExport = require('contentful-export');

const options = {
  spaceId: 'your_space_id',
  managementToken: 'your_management_token',
  contentFile: 'export.json',
  exportEntries: true
};

contentfulExport(options).then((result) => {
  console.log('Entries export successful!');
}).catch((err) => {
  console.error('Entries export failed:', err);
});

Exporting Assets

This feature allows you to export all assets from a specified Contentful space. The code sample demonstrates how to set up the export options to include assets and execute the export process.

const contentfulExport = require('contentful-export');

const options = {
  spaceId: 'your_space_id',
  managementToken: 'your_management_token',
  contentFile: 'export.json',
  exportAssets: true
};

contentfulExport(options).then((result) => {
  console.log('Assets export successful!');
}).catch((err) => {
  console.error('Assets export failed:', err);
});

Other packages similar to contentful-export

Keywords

FAQs

Package last updated on 08 Nov 2024

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc