Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
contentful-link-cleaner
Advanced tools
This tool cleans up unresolved Entry links in Contentful spaces.
When you have a link to an Entry or Asset on a Published Entry, if you delete the linked Entry the Entry that links to it will have a reference to a non existing entity.
This tool goes through all of your entries, figures out which links don't exist anymore, and removes them.
This might be particularly relevant to users of contentful-space-sync.
If you're not entirely clear on what Links are, check out the Links page for more information.
This tool will ask you if the entries which have had their links fixed should also be published. This is the default, and we recommend that we do.
Any entries that don't get their links fixed will stay in "updated" state and will need to be published manually.
Check out the releases page.
npm install -g contentful-link-cleaner
Usage: contentful-link-cleaner [options]
Options:
--version Show version number
--space ID of Space with source data
[string] [required]
--delivery-token Delivery API token
[string] [required]
--management-token Management API token
[string]
--pre-publish-delay Delay in milliseconds to account for delay
after creating entities, due to internal
database indexing
[default: 5000]
--config Configuration file with required values
Check the example-config.json
file for an example of what a configuration file would look like. If you use the config file, you don't need to specify the other options for tokens and space ids.
contentful-link-cleaner \
--space sourceSpaceId \
--delivery-token spaceDeliveryToken \
--management-token spaceManagementToken
or
contentful-link-cleaner --config example-config.json
You can create your own config file based on the example-config.json
file.
FAQs
Cleans up unresolved Entry links in Contentful spaces
The npm package contentful-link-cleaner receives a total of 1 weekly downloads. As such, contentful-link-cleaner popularity was classified as not popular.
We found that contentful-link-cleaner demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.