# gulp-jinx-inject

> This is an GulpJS plugin for inject [Jinx](https://github.com/webcaetano/jinx) .AS packages files

Latest version **1.0.1** (published 2015-05-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install gulp-jinx-inject
pnpm add gulp-jinx-inject
yarn add gulp-jinx-inject
bun add gulp-jinx-inject
```

## 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 | 2015-05-04 |
| First published | 2015-05-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Maintainers | webcaetano |
| Keywords | gulpplugin, jinx, jinxplugin, as3, flash, swf, swc, flex |

## Links

- npm: https://www.npmjs.com/package/gulp-jinx-inject
- Repository: https://github.com/webcaetano/gulp-jinx-inject
- Issues: https://github.com/webcaetano/gulp-jinx-inject/issues
- npm.io page: https://npm.io/package/gulp-jinx-inject

## Dependencies (2)

- [through2](https://npm.io/package/through2.md) ^0.6.3
- [gulp-util](https://npm.io/package/gulp-util.md) ^3.0.4

## 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.0.1 (latest) — 2015-05-04
- 1.0.0 — 2015-05-04

## README

# [![Imgur](http://i.imgur.com/FHjshUv.png)](https://github.com/webcaetano/jinx)

### Gulp Jinx Inject

This is an GulpJS plugin for inject [Jinx](https://github.com/webcaetano/jinx) .AS packages files

### Installation

```
npm install gulp-jinx-inject
```

### Usage 

```javascript
var jinxInject = require('gulp-jinx-inject');
var tmpMainFile = '.tmp/as/app/flash/main.as';
var pkgs = require('jinx-loader')(tmpMainFile);

return gulp.src(tmpMainFile) // file path to inject
	.pipe(jinxInject(pkgs.as))
	.pipe(gulp.dest(path.dirname(tmpMainFile))); // injected file
```

### Result example
```javascript
// before 

package {

import flash.display.*;

public class main extends Sprite {
public function main() {

	// [[inject:jinx]]

	include 'partials/bar.as';
}}}

// after

package {

import flash.display.*;

public class main extends Sprite {
public function main() {

	include '../../../node_modules/jinx-mempanel/index.as';
 	include '../../../node_modules/jinx.as/jinx.as';

	include 'partials/bar.as';
}}}
```


---------------------------------

The MIT [License](https://raw.githubusercontent.com/webcaetano/gulp-jinx-inject/master/LICENSE.md)

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