0.2.1 • Published 9 years ago

simple-http-utilities v0.2.1

Weekly downloads
3
License
-
Repository
-
Last release
9 years ago

###NPM version Build Status

simple-http-utilities

Perform simple javascript validation like isEmpty and isDefined in a consistent manner.

Please see the docs/index.html for more details. If link does not work, just open the index.html in the docs folder.

Installation

npm install simple-http-utilities

Usage

  var shu = require('simple-http-utilities');
  
	var buildInputs = {
		host: "someHost",
		port: 443,
		path: "/some/path"
	};
  var options = shu.buildOptions(buildInputs);
  
	var getInputs = {
		useHttps: true,
		options: options
	};
    
	shu.get(getInputs, function (err, results) {
		if (err) {
			// error handling
		}
		
		var statusCode = results.statusCode;
		var response = results.response;
		
		// response handling
		
	});
	
	

Road Map

  • Make sure working in dev branch
  • When updates are complete, run "grunt test" to verify all tests are passing.
  • Run "grunt hint" to verify all jshint checks are passing.
  • Run "grunt bump" to update version (grunt bump:patch, grunt bump:minor) or update package.json directly
  • Update release history and version ref at top of js file
  • Then run "grunt release".
  • When it is complete, git commit, git push, and git push --tags
  • Wait for travis build confirmation
  • Make pull request to master
  • Wait for travis build confirmation
  • Pull down master locally
  • Just to verify, run "grunt test" to verify all tests are passing. Run "grunt hint" to verify all jshint checks are passing.
  • Run "npm publish"
  • Go back to dev branch
  • Cele!!!

Release History