# gulp-jspre

> gulp-jspre

Latest version **1.0.1** (published 2018-02-16) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2018-02-16 |
| First published | 2018-02-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 271.5 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Aaron Kirkham |
| Maintainers | aaronlad |
| Keywords | gulp, gulp-plugin, javascript, nodejs |

## Links

- npm: https://www.npmjs.com/package/gulp-jspre
- Repository: https://github.com/aaronkirkham/gulp-jspre
- Homepage: https://github.com/aaronkirkham/gulp-jspre#readme
- Issues: https://github.com/aaronkirkham/gulp-jspre/issues
- npm.io page: https://npm.io/package/gulp-jspre

## Dependencies (4)

- [request](https://npm.io/package/request.md) ^2.83.0
- [through2](https://npm.io/package/through2.md) ^2.0.3
- [gulp-util](https://npm.io/package/gulp-util.md) ^3.0.8
- [async-replace](https://npm.io/package/async-replace.md) ^1.0.1

## Recent versions

- 1.0.1 (latest) — 2018-02-16
- 1.0.0 — 2018-02-15

## README

gulp-jspre
==============

A JavaScript preprocessor for gulp to import local and remote scripts without using a bundler.

## Gulp Usage
```javascript
const jspre = require('gulp-jspre');

gulp.task('js', () => {
  return gulp.src('entrypoint.js')
    .pipe(jspre())
    .pipe(gulp.dest('./dist/'));
});
```

## entrypoint.js
```javascript
(function() {
  console.log('this is my javascript file!');
})();

// import from another file on disk
// @jspre "another-file.js"

// import from a file on the web
// @jspre "http://code.jquery.com/jquery-3.3.1.js"
```

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