Socket
Socket
Sign inDemoInstall

shiki

Package Overview
Dependencies
Maintainers
1
Versions
115
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

shiki - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

4

package.json
{
"name": "shiki",
"version": "0.1.1",
"version": "0.1.2",
"description": "shiki",

@@ -25,3 +25,3 @@ "keywords": [

},
"gitHead": "a20dccbdb72c05af8821204d6b1a3cd437245459"
"gitHead": "0b905494cd14c2e7ec00c0a11f9f099fd251850b"
}

@@ -5,14 +5,2 @@ export { getTheme, loadTheme } from 'shiki-themes'

export { renderToHtml } from './renderer';
export { IThemedToken } from './themedTokenizer';
const shiki = require('shiki')
shiki.getHighlighter({
theme: 'nord'
}).then(highlighter => {
console.log(highlighter.codeToHtml(`console.log('shiki');`, 'js'))
})
// <pre class="shiki" style="background-color: #2e3440"><code>
// <!-- Highlighted Code -->
// </code></pre
export { IThemedToken } from './themedTokenizer';
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc