🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

@snlab/refractor-svelte

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@snlab/refractor-svelte

Svelte language extension for refractor

0.0.2
latest
Version published
Maintainers
1
Created

refractor-svelte

Syntax highlighting for svelte code with refractor. Simple wrapper around prism-svelte by pngwn so it can be registered as additional syntax in refractor.

Install

npm i refractor-svelte

Usage

const refractor = require('refractor');
const svelte = require('refractor-svelte');

refractor.register(svelte)

console.log(refractor.highlight('{#each items as item, i}{item.name}{/each}', 'svelte'))

FAQs

Package last updated on 25 Jan 2020

Did you know?

Socket

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.

Install

Related posts