Socket
Socket
Sign inDemoInstall

gulp-gist

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-gist

Gulp plugin to update snippets from source to Gist.


Version published
Weekly downloads
15
increased by1400%
Maintainers
1
Weekly downloads
 
Created
Source

gulp-gist

Parse source code for comments and update related gists. Useful to test code snippets published on Gist.

You need to create a ~/.gistauth file with authentication info, e.g. "username:password".

Usage

Annotate your code to delimit Gists (they must already exist on github).


var toto

// startgist:12345-id-of-your-gist-123456:filename.js

// This will go to the gist
var sum = 2 + 2;

// endgist

// No longer in the gist

You can then use it in your gulpfile:


var gist = require('gulp-gist');

gulp.task('deploy:gist', ['test:doc'], function () {
    gulp.src("./test/doc.js")
        .pipe(gist());
});


Keywords

FAQs

Package last updated on 30 Mar 2015

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