
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
A general-purpose JS/CSS/HTML prototype tool.
Like jsbin/jsfiddle/codepen but lies on your file system, with more powerful preprocessors support and your favorite editor is your playground!
Install it:
yarn add miku --dev
# optionally you can install it globally
# but recommend to install locally
Add npm scripts:
{
"scripts": {
"try": "miku example.js"
}
}
After that, populate an example.js with the code you wanna try in your project:
setInterval(() => {
document.body.innerHTML = new Date()
}, 1000)
Finally, you can run yarn try to see how your code works in action.
You can also run miku init my-demo to create an empty project in seconds.
Run ./node_modules/.bin/miku -h or miku -h if installed globally to get help.
Every input file will be processed by miku using webpack, and we also use an index.html to load them, you can also pass in an HTML file to override this file, eg: miku example.js example.html
Note: to use non-built-in features, please install its loader first, for example:
# for sass
yarn add node-sass sass-loader --dev
# for vue
yarn add vue vue-loader vue-template-compiler --dev
We have babel presets and plugins included:
However you can use .babelrc to override it.
You can import images and fonts directly, and it will return the path to the file which you can use.
Note that for .svg file it will return its raw content, since we're more likely to use Inline SVG.
Sometimes you need to distribute your work for others to visit, then just use --prod or --production to do this.
All cli options can be kept in a local config file in project folder: .miku/config.js, for example:
module.exports = {
port: 6000
}
If an option shows in both local config and cli options, the latter would have higher priority.
You can also provide your own webpack config, we use webpack-merge to merge it into default webpack config, put it at .miku/webpack.config.js:
module.exports = {
module: {
rules: [/* add more loaders */]
}
}
miku example.jsmiku example.css example.htmlmiku example.coffeegit checkout -b my-new-featuregit commit -am 'Add some feature'git push origin my-new-featuremiku © EGOIST, Released under the MIT License.
Authored and maintained by EGOIST with help from contributors (list).
egoistian.com · GitHub @egoist · Twitter @rem_rin_rin
FAQs
A general-purpose JS/CSS/HTML prototype tool.
We found that miku 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.