# litfile-compiler

> Compiles .lit files into .js LitElement Web Components

Latest version **0.1.3** (published 2020-04-01) · ISC license · 0 weekly downloads

## Install

```sh
npm install litfile-compiler
pnpm add litfile-compiler
yarn add litfile-compiler
bun add litfile-compiler
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.3 |
| Published | 2020-04-01 |
| First published | 2020-03-03 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 4 |
| Unpacked size | 45.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Joshua Coffey |
| Maintainers | geel9 |

## Links

- npm: https://www.npmjs.com/package/litfile-compiler
- Homepage: https://github.com/geel9/litfile/tree/master/litfile-compiler
- npm.io page: https://npm.io/package/litfile-compiler

## Dependencies (4)

- [esm](https://npm.io/package/esm.md) ^3.2.25
- [recast](https://npm.io/package/recast.md) ^0.18.7
- [cheerio](https://npm.io/package/cheerio.md) ^1.0.0-rc.3
- [domhandler](https://npm.io/package/domhandler.md) ^3.0.0

## Recent versions

- 0.1.3 (latest) — 2020-04-01
- 0.1.2 — 2020-03-03
- 0.1.1 — 2020-03-03
- 0.1.0 — 2020-03-03

## README

Litfile Compiler
=========

This library parses `.lit` files and compiles them into JavaScript.

Litfiles are basically the same as Vue files, if you've ever seen one. Except you don't need to build everything in litfiles because it's Web Components.

As the name suggests, this is designed to work with `LitElement`.

## Installation

  `npm install litfile-compiler`

## Usage

    This package exposes a single API.

    ```js
    import compile from 'litfile-compiler';

    const document = "...";

    const compiled = compile(document).code;
    ```

    Information on the proper structure of a `.lit` file can be found in the root of this repository.


## Contributing

Do not contribute bad code. Do contribute good code.

---
_Source: https://npm.io/package/litfile-compiler · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
