
Security News
Packagist Urges Immediate Composer Update After GitHub Actions Token Leak
Packagist urges PHP projects to update Composer after a GitHub token format change exposed some GitHub Actions tokens in CI logs.
@nicktomlin/babel-plugin-jsx-source
Advanced tools
:warning: This is currently a spike :warning:
A transform to add a source code string to a JSX component, useful for example applications or storybooks.
# or yarn add
npm install --save-dev @nicktomlin/babel-plugin-jsx-source
// .bablerc
// add 'jsx-source' to your babel plugins
{
"plugins": ['jsx-source']
}
<JSXExample>
<MyComponent className="test">
<p>Hello</p>
</MyComponent>
</JSXExample>;
Becomes:
<JSXExample __source__="<MyComponent className=\"test\">\n <p>Hello</p>\n </MyComponent>">
<MyComponent className="test">
<p>Hello</p>
</MyComponent>
</JSXExample>;
You can use this within your component to run the __source__ prop through a syntax highlighter like highligh.js or prism.js.
FAQs
Transform to provide source code for
We found that @nicktomlin/babel-plugin-jsx-source 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
Packagist urges PHP projects to update Composer after a GitHub token format change exposed some GitHub Actions tokens in CI logs.

Research
GemStuffer abuses RubyGems as an exfiltration channel, packaging scraped UK council portal data into junk gems published from new accounts.

Company News
Socket was named to the Rising in Cyber 2026 list, recognizing 30 private cybersecurity startups selected by CISOs and security executives.