Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gulp-inline-txt

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-inline-txt

Inline any text files with gulp.

  • 0.0.7
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

gulp-inline-txt

A gulp plugin to Inline any text files.

Install

$ npm i gulp-inline-txt -D

basic usage:

in your gulpfiles

var inline = require('gulp-inline-txt');
gulp.task('inline', function() {
    return gulp.src('src/js/a.js')
        .pipe(inline())
        .pipe(gulp.dest('build/js'));
});

In your file, such as a js file:

a.js

console.log(1);
__inline('./b.js');

b.js (which is to be inlined)

console.log(2);

and the result, a.js will be:

console.log(1);
console.log(2);

Also you can cancel the inline temporarily.

//__inline('path/to/file')

Keywords

FAQs

Package last updated on 05 Jul 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc