Security News
JSR Working Group Kicks Off with Ambitious Roadmap and Plans for Open Governance
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
codepen-prefill
Advanced tools
The live editor of CodePen is not stable for me most of the time due to the network (in China...), so I always write demos on my local machine first, then open CodePen afterwards and copy/paste into the editor.
This tool is for saving this process by doing the following steps:
The rest is to click the SAVE button.
$ npm install -g codepen-prefill
$ codepen-prefill index.html
It can be used to preview a markdown
file quickly on CodePen:
$ codepen-prefill README.md
Edit a JS file on CodePen:
$ codepen-prefill example.js
Using npx which is a package runner bundled in npm
:
$ npx codepen-prefill index.html
By default all the embedded scripts/styles in HTML will be put into JS/CSS sections seperatly,
but they can stay with HTML using --keep-embedded
or --embed
option.
Output the prefiled data instead of open CodePen.
https://blog.codepen.io/documentation/prefill
Usage:
codepen-prefill <filename>
Options:
--keep-embedded: Keep embedded styles/scripts inside html (alias: --embed)
--data: Output the prefilled data
--help: Display help info
Supported filename types by extension:
htm, html, md, markdown, js, ts, css, less, sass, scss, styl
FAQs
Create new pen from local HTML/JS/CSS files with ease
We found that codepen-prefill 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
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
Security News
Research
An advanced npm supply chain attack is leveraging Ethereum smart contracts for decentralized, persistent malware control, evading traditional defenses.
Security News
Research
Attackers are impersonating Sindre Sorhus on npm with a fake 'chalk-node' package containing a malicious backdoor to compromise developers' projects.