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

utterson-publish

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

utterson-publish

Utterson module for publishing

  • 0.1.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

Utterson-Publish

Git publishing module for flexible and static blog generation framework Utterson.

Installation

npm install utterson-publish

Basic Usage

Every method is returning a Promise and is chainable.

var publisher = require('utterson-publish');

Getting a repository

publisher.getRepo(filePath, sourceRemote, sourceBranch)
    .then(function (repo) {
        console.log(repo)
    });

Note: initializes a new repo or returns a existing once from the given path

Checking for new commits

publisher.checkForNewCommits(repository)
    .then(function (repo) {
        console.log(repo.hasNewCommits);
    });

Note: should be chained with the getRepo method

Checking out new Files

publisher.checkoutNewFiles(repo)
    .then(function (repo) {
        console.log(repo.hasNewFiles);
    });

Note: should be chained with the getRepo method

Publishing files to a repo

publisher.getRepo(filePath, destinationRemote, destinationBranch)
    .then(publisher.publish);

License

MIT-Licensed

FAQs

Package last updated on 24 May 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