
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
gatsby-plugin-klipse
Advanced tools
Adds code REPLs in markdown using Klipse
npm install --save gatsby-plugin-klipse
// In your gatsby-config.js
plugins: [
{
resolve: 'gatsby-plugin-klipse',
options: {
// Class prefix for <pre> tags containing code examples
// defaults to empty string
// if you use PrimsJS for example then add `language-` as the prefix
classPrefix: '',
// Klipse config, you can check it here
// https://github.com/viebel/klipse#configuration
klipseSettings: { ... },
// Klipse version, defaults to '7.5.0'
klipseVersion: '7.5.0',
// To load any external scripts you need, pass an array of URLs. The plugin will always load them before the klipse plugin
// defaults to an empty Array
externalScripts: [],
}
}
]
This will create a JavaScript REPL
```eval-js
1 + 1
```
This will create a Ruby REPL
```eval-ruby
[ 1, 2 ] * 3
```
The text that you pass after the backticks needs to match the part after selector_
keys in this object, these are default selectors used by the plugin:
{
selector: '.klipse', //selector for clojure evaluation snippets
selector_brainfuck: '.klipse-brainfuck', // selector for brainfuck snippets
selector_es2017: '.klipse-es2017', // selector for EcmaScript 2017 evaluation snippets
selector_eval_cpp: '.klipse-cpp', // selector for cpp evaluation
selector_eval_html: '.klipse-html', // selector for html evaluation snippets
selector_eval_js: '.klipse-eval-js', // selector for javascript evaluation snippets
selector_eval_lambdaway: '.klipse-lambdaway', // selector for lambdaway transpilation snippets
selector_eval_markdown: '.klipse-markdown', // selector for markdown transpilation snippets
selector_eval_ocaml: '.klipse-ocaml', // selector for ocaml evaluation snippets
selector_eval_php: '.klipse-eval-php', // selector for php evaluation snippets
selector_eval_python_client: '.klipse-python', // selector for python evaluation snippets
selector_eval_reason: '.klipse-reason', // selector for reason evaluation snippets
selector_eval_ruby: '.klipse-eval-ruby', //selector for ruby evaluation snippets
selector_eval_scheme: '.klipse-scheme', // selector for scheme evaluation snippets
selector_google_charts: '.klipse-google-charts', // selector for google charts snippets
selector_js: '.klipse-js', // selector for clojure transpilation snippets
selector_jsx: '.klipse-jsx', // selector for jsx evaluation snippets
selector_oblivion: '.klipse-oblivion', // selector for oblivion snippets
selector_react: '.klipse-react', //selector for react snippets
selector_reagent: '.klipse-reagent', // selector for reagent snippets
selector_render_jsx: '.klipse-render-jsx', // selector for jsx rendering snippets
selector_sql: '.klipse-sql', // selector for sqlite evaluation snippets
selector_transpile_jsx: '.klipse-transpile-jsx', // selector for jsx transpilation snippets
selector_transpile_ocaml: '.klipse-transpile-ocaml', // selector for ocaml transpilation snippets
selector_transpile_reason: '.klipse-transpile-reason', // selector for reason transpilation snippets
selector_transpile_reason_to_ocaml: '.klipse-transpile-reason-to-ocaml', // selector for reason transpilation into ocaml snippets
}
FAQs
Adds interactive code REPLs at build time using Klipse
The npm package gatsby-plugin-klipse receives a total of 2 weekly downloads. As such, gatsby-plugin-klipse popularity was classified as not popular.
We found that gatsby-plugin-klipse 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.
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.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.