ee-project

0.2.4 • Public • Published

ee-project

Loads config.js files in the project roo directory, provides infos about git

installation

npm install ee-project

build status

Build Status

usage

importing

var project = require('ee-project');

project.root

returns the projects root path

log(project.root);

project.config

returns the contents of the config.sj file in the project root path, if available

log(project.config);

project.git.revision()

returns the current revision of HEAD of the git repository found in the project.root directory

project.git.revision(function(err, revision){
	log(revision); // 324...
});

project.git.remote()

returns the remote of the git repository found in the project.root directory

project.git.remote(function(err, remote){
	log(remote); // git@github.com:eventEmitter/ee-project
});

project.git.remoteRepository()

returns the remoteRepository of the git repository found in the project.root directory

project.git.revision(function(err, remoteRepository){
	log(remoteRepository); // eventEmitter/ee-project
});

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.2.426latest

Version History

VersionDownloads (Last 7 Days)Published
0.2.426
0.2.30
0.2.20
0.2.10
0.2.00
0.1.60
0.1.50
0.1.40
0.1.30
0.1.20
0.1.10
0.1.00

Package Sidebar

Install

npm i ee-project

Weekly Downloads

26

Version

0.2.4

License

none

Last publish

Collaborators

  • ee