gulp-import

gulp.import('PKGNAME/FILENAME')

gulp-import

gulp-import exports a method for the gulp.

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

globs and options are equal to arguments of gulp.src, except a first path segment of a glob means a package name.

In your gulpfile.js:

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

MIT