Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
@intcreator/code-demo
Advanced tools
A small but useful isolated code demo element. Uses <iframe>
to create an isolated space where HTML and JavaScript code can run without affecting other parts of the page.
<code-demo>
uses <code-demo>
to render the code as from Markdown.
Install and save to package.json:
npm i --save @intcreator/code-demo
Import where needed:
import '@intcreator/code-demo';
code
propertyThe code source is taken directly from the code
property supplied to the element. The code supplied can be dynamically updated to change the rendered code.
<code-demo code="<button>Click me!</button>"></code-demo>
src
attributeThe src
attribute can be used to load a markdown file through AJAX. It overrides the code
attribute. The source can be dynamically updated to change the markdown file displayed.
<code-demo src="./demo.html"></code-demo>
<script>
tagA <script>
tag can be inserted inside of the <code-demo>
to provide the code source. It overrides the code
and src
attributes. Support for changing this code source dynamically is not yet implemented.
<code-demo>
<script type="text/markdown">
<p>This demo uses a <code><script></code> tag.</p>
</script>
</code-demo>
Here are a few issues that need to be resolved before the 1.0 release:
<iframe>
to render the code instead of just sticking it in the template<script>
tags)Let's make this element even better! Want to help? Found a problem? Open an issue or contact me on the Polymer Slack, Twitter, etc. @intcreator.
FAQs
A small but useful isolated code demo element
The npm package @intcreator/code-demo receives a total of 1 weekly downloads. As such, @intcreator/code-demo popularity was classified as not popular.
We found that @intcreator/code-demo 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
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.