Need private packages and team management tools?Check out npm Teams »

browserify-commit-sha

0.1.1 • Public • Published

browserify-commit-sha

browserify transform for appending the latest git commit SHA

The output looks like this:

(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
(function (process){
 
 
 
 
global.__BROWSERIFY_META_DATA__GIT_VERSION = "c6541cbdf842e204fd2a958a28e83ba7be42f3c9";
global.__BROWSERIFY_META_DATA__CREATED_AT = "Sun Feb 15 2015 17:18:10 GMT-0500 (PET)";
 
 
 
'use strict';
 
// this is the entry point file that you browserified
var x require('x')
var y = require('y')
// ...

Its a bit of a hack, but it works alright.

Requires node 0.12+ for execSync.

Install

npm i browserify-commit-sha

DownloadsWeekly Downloads

4

Version

0.1.1

License

MIT

Last publish

Collaborators

  • avatar
  • avatar