Socket
Book a DemoInstallSign in
Socket

@bcoe/test-typescript-jsx

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bcoe/test-typescript-jsx

testing typescript and JSX highlighting

latest
Source
npmnpm
Version
1.0.6
Version published
Maintainers
1
Created
Source

JSX Highlighting for the Highlighting Gods

JSX and TypeScript are both getting pretty darn popular, we should definitely support highlighting their syntax in READMEs!

use ```jsx for JSX highlightning:

class Thinger extends React.Component {
  constructor(props) {
    super(props)
  }
  render() {
    return (
      <div>{this.whatever}</div>
    )
  }
}

use ```ts or ```typescript for TypeScript highlighting:

declare namespace myLib {
    function makeGreeting(s: string): string;
    let numberOfGreetings: number;
}
declare namespace myLib {
    function makeGreeting(s: string): string;
    let numberOfGreetings: number;
}

FAQs

Package last updated on 21 Aug 2017

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