
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
@last-rev/contentful-sync-to-fs
Advanced tools
This library syncs content from contentful to the local filesystem. Can be called directly from code as a library, or as a CLI.
This library syncs content from contentful to the local filesystem. Can be called directly from code as a library, or as a CLI.
npm install -g @last-rev/cli
last-rev cms-sync -d graphql/content
See Docs for details on the parameters.
import sync from '@last-rev/contentful-sync-to-fs'
async function () {
await sync({
rootDir: './graphql/content', // Root directory to sync content to
accessToken: process.env.CONTENTFUL_ACCESSTOKEN, // Contentful access token
space: process.env.CONTENTFUL_SPACE_ID, // Contentful space ID
environment: process.env.CONTENTFUL_ENV || 'master', // Contentful environment
host = process.env.CONTENTFUL_HOST || 'cdn.contentful.com' // Contentful host
});
};
The library outputs all content to the passed in rootDir
location in the following structure:
{space_id}/{environment}/{preview_or_production}/entries/{entry_id}.json
{space_id}/{environment}/{preview_or_production}/assets/{asset_id}.json
{space_id}/{environment}/{preview_or_production}/content_types/{contentTypeId}.json
{space_id}/{environment}/{preview_or_production}/entry_ids_by_content_type/{entryId}
- Note, this file has no content. The titles in the directory will simply be read to get the IDsFAQs
This library syncs content from contentful to the local filesystem. Can be called directly from code as a library, or as a CLI.
The npm package @last-rev/contentful-sync-to-fs receives a total of 185 weekly downloads. As such, @last-rev/contentful-sync-to-fs popularity was classified as not popular.
We found that @last-rev/contentful-sync-to-fs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
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.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.