1.3.1 • Published 4 years ago

lexipro v1.3.1

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

Quick Start

const Preprocessor = require('lexipro')

const pp = new Preprocessor()

pp.addRule(/#define\s+(\w+)\s+([^;])[;\n]\s*/i, (match, name, value) => {
  pp.addRule(new RegExp(name), () => {
    return value
  })

  return ''
})

pp.preprocess('#define TEST 1; var x = TEST; return x;') // 'var x = 1; return x;'

Installation

NPM

$ npm i lexipro

Yarn

$ yarn add lexipro
1.3.1

4 years ago

1.3.0

4 years ago

1.2.7

4 years ago

1.2.6

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.2.5

4 years ago

1.2.4

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.0.0

4 years ago

0.3.0

4 years ago

0.2.0

4 years ago

0.1.0

4 years ago