x-syntax
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

x-syntax

Simple passthrough tagged template literal function for getting vscode syntax highlighting. Import the function using a variable name like css or graphql to get highlighting:

import css from 'x-syntax';

const myCss = css`
  body {
    display: none;
  }
`;
import graphql from 'x-syntax';

const query = graphql`
  mutation CreateDownload($data: DownloadInput!) {
    result: createDownload(data: $data) {
      _id
    }
  }
`;

Readme

Keywords

none

Package Sidebar

Install

npm i x-syntax

Weekly Downloads

24

Version

2.0.0

License

MIT

Unpacked Size

1.83 kB

Total Files

6

Last publish

Collaborators

  • jaredhenderson