ohm-loader

0.0.4 • Public • Published

ohm-loader

Build Status dependencies Status

Ohm loader for webpack

Installation

npm install --save-dev ohm-loader

Usage

webpack.config.js

{
  module: {
    rules: [{
      test: /\.ohm$/,
      loader: 'ohm-loader'
    }]
  }
}

file.js

import grammar from 'file.ohm'
grammar.match(...);

or if the file contains more than one grammar

import {CSV, Json} from 'file.ohm'
CSV.match(...);

/ohm-loader/

    Package Sidebar

    Install

    npm i ohm-loader

    Weekly Downloads

    11

    Version

    0.0.4

    License

    MIT

    Unpacked Size

    121 kB

    Total Files

    8

    Last publish

    Collaborators

    • mateuszsikora