
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
A ruby plugin used to help evaluate the exported Ghost posts
Install the gem and add to the application's Gemfile by executing:
$ bundle add ghost_parser
If bundler is not being used to manage dependencies, install the gem by executing:
$ gem installghost_parser
To parse the export:
parser = GhostParser.new("path/to/export.json").parse
[
{
id: "id",
title: "title",
slug: "slug",
html: "html",
feature_image: "feature_image",
created_at: "created_at",
updated_at: "updated_at",
published_at: "published_at",
status: "status"
}, ......
]
Ghost export content will have their links modified like __GHOST_URL__/image.jpg
. If you want the content with active links provide your ghost url.
GhostParser.set_ghost_url("your ghost url")
Instead of getting all the fields we can define the necessary params with necessary keys
GhostParser.set_config({
new_id: "id",
name: "title",
new_slug: "slug"
})
parser = GhostParser.new("path/to/export.json").parse
[
{
new_id: "id",
name: "title",
new_slug: "slug"
}, ......
]
GhostParser.unset_config # Reverts back to default
Also supports the option of adding extra fields to parsed data
# Using blocks
parser = GhostParser.new(file_path).parse do |t|
t[:user_id] = 12
end
[
{
id: "id",
title: "title",
slug: "slug",
html: "html",
feature_image: "feature_image",
created_at: "created_at",
updated_at: "updated_at",
published_at: "published_at",
status: "status",
user_id: 12
}, ......
]
# Inline
parser = GhostParser.new(file_path).parse(
{param_key: "123"}
)
[
{
id: "id",
title: "title",
slug: "slug",
html: "html",
feature_image: "feature_image",
created_at: "created_at",
updated_at: "updated_at",
published_at: "published_at",
status: "status",
param_key: "123"
}, ......
]
FAQs
Unknown package
We found that ghost_parser 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.