How to use edge-lexer - 1 common examples

To help you get started, we’ve selected a few edge-lexer examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github edge-js / edge / src / utils / index.ts View on Github external
export function isBlockToken (token: ParserToken, name: string): token is ParserTagToken {
  if (token.type === TagTypes.TAG || token.type === TagTypes.ETAG) {
    return token.properties.name === name
  }

  return false
}

edge-lexer

Edge parser to convert text markup to lexer tokens

MIT
Latest version published 2 months ago

Package Health Score

71 / 100
Full package analysis

Popular edge-lexer functions