# gulp-slm

> Compile Slm to HTML for Gulp

Latest version **1.2.6** (published 2026-07-30) · (Apache-2.0 OR MIT) license · 0 weekly downloads

## Install

```sh
npm install gulp-slm
pnpm add gulp-slm
yarn add gulp-slm
bun add gulp-slm
```

## Health

**Score 60/100 (C)** — status: active.

Positive: has types; esm support; no vulnerabilities; high maintenance score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 1.2.6 |
| Published | 2026-07-30 |
| First published | 2014-08-24 |
| Weekly downloads | 0 |
| License | (Apache-2.0 OR MIT) |
| TypeScript types | bundled |
| Module format | ESM |
| Dependencies | 2 |
| Unpacked size | 8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 11 |
| Author | Hyeon Kim <simnalamburt@gmail.com> (https://hyeon.me/) |
| Maintainers | simnalamburt |
| Keywords | compile, gulp, gulpplugin, plugin, slm |

## Links

- npm: https://www.npmjs.com/package/gulp-slm
- Repository: git@github.com:simnalamburt/npm
- Homepage: https://github.com/simnalamburt/npm/tree/master/packages/gulp-slm
- Issues: https://github.com/simnalamburt/npm/issues
- npm.io page: https://npm.io/package/gulp-slm

## Dependencies (2)

- [slm](https://npm.io/package/slm.md) >=0.6.0 <3.0.0
- [plugin-error](https://npm.io/package/plugin-error.md) ^2.0.1

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 1.2.6 (latest) — 2026-07-30
- 1.2.5 — 2026-02-16
- 1.2.4 — 2025-03-11
- 1.2.3 — 2020-08-22
- 1.2.2 — 2020-08-20
- 1.2.1 — 2020-08-18
- 1.2.0 — 2019-07-12
- 1.1.3 — 2017-03-09
- 1.1.2 — 2017-03-09
- 1.1.1 — 2016-12-20
- 1.0.7 — 2016-04-01
- 1.0.6 — 2016-04-01
- 1.0.5 — 2016-01-11
- 1.0.4 — 2016-01-07
- 1.0.3 — 2015-07-07
- … 9 more at https://npm.io/package/gulp-slm/versions

## README

# gulp-slm [![version] ![downloads]][npm]

Let's use [Slm] with [Gulp]!

```slim
doctype html
html
  head
    meta charset="utf-8"
    title = this.title
  body
    h1 = this.title
    p = this.text
```

```javascript
import slm from "gulp-slm";

gulp.task("slm", (_) => {
  const data = {
    title: "Hello, world!",
    text: "Hello world example for slm template.",
  };

  return gulp
    .src("./src/*.slm")
    .pipe(slm({ locals: data }))
    .pipe(gulp.dest("./build/"));
});
```

##### Result _(whitespace included for readability)_

```html
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <title>Hello, world!</title>
  </head>
  <body>
    <h1>Hello, world!</h1>
    <p>Hello world example for slm template.</p>
  </body>
</html>
```

[version]: https://badgen.net/npm/v/gulp-slm
[downloads]: https://badgen.net/npm/dt/gulp-slm
[npm]: https://npmjs.org/package/gulp-slm
[Slm]: https://github.com/slm-lang/slm
[Gulp]: https://gulpjs.com/

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