# gulp-import

> gulp.import('PKGNAME/FILENAME')

Latest version **0.0.1** (published 2014-03-16) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

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

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2014-03-16 |
| First published | 2014-03-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Kengo Nakatsuka |
| Maintainers | nak2k |
| Keywords | gulpplugin, gulpfriendly |

## Links

- npm: https://www.npmjs.com/package/gulp-import
- Repository: https://github.com/nak2k/node-gulp-import
- Issues: https://github.com/nak2k/node-gulp-import/issues
- npm.io page: https://npm.io/package/gulp-import

## Dependencies (2)

- [resolve](https://npm.io/package/resolve.md) ~0.6.1
- [gulp-util](https://npm.io/package/gulp-util.md) ~2.2.14

## Recent versions

- 0.0.1 (latest) — 2014-03-16

## README

# gulp-import

## Usage

`gulp-import` exports a method for the [gulp](https://github.com/gulpjs/gulp).

```javascript
var gulp = require('gulp');
gulp.import = require('gulp-import');
```

### gulp.import(globs[, options])

`globs` and `options` are equal to arguments of [gulp.src](https://github.com/gulpjs/gulp/blob/master/docs/API.md#gulpsrcglobs-options),
except a first path segment of a glob means a package name.

## Example

In your `gulpfile.js`:

```javascript
var gulp = require('gulp');
gulp.import = require('gulp-import');

gulp.task('default', function() {
  gulp.import('twitter-bootstrap/img/*')
    .pipe(gulp.dest(__dirname + '/public/img'))
});
```

```
$ npm install gulp gulp-import --save-dev
$ npm install twitter-bootstrap --save
$ gulp
```

## License

MIT

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