Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

skeleton

  • Loading branch information...
commit c20bf2098a13241e1d0033c183804e8d6e9291b3 0 parents
Edward Hotchkiss authored
Showing with 64 additions and 0 deletions.
  1. +10 −0 README.md
  2. +12 −0 lib/version.js
  3. +24 −0 package.json
  4. +18 −0 test/index.test.js
10 README.md
@@ -0,0 +1,10 @@
+
+# version (NodeJS package.json version number display (wherever))
+
+[![Build Status](https://secure.travis-ci.org/edwardhotchkiss/version.png)](http://travis-ci.org/edwardhotchkiss/version)
+
+### Installation
+
+```bash
+$ npm install version
+```
12 lib/version.js
@@ -0,0 +1,12 @@
+
+/*
+ version
+ @class version
+ @author Edward Hotchkiss
+*/
+
+module.exports = version = function(repository) {
+ return null;
+};
+
+/* EOF */
24 package.json
@@ -0,0 +1,24 @@
+{
+ "author": "Edward Hotchkiss <e@ingk.com>",
+ "name": "version",
+ "description": "NodeJS package.json version number display (wherever)",
+ "version": "0.0.0",
+ "repository": {
+ "type": "git",
+ "url": "git://github.com/edwardhotchkiss/version.git"
+ },
+ "keywords": ["version", "package", "json", "display", "number"],
+ "main": "./lib/version",
+ "engines":{
+ "node":">= 0.4.11 < 0.7.0"
+ },
+ "dependencies": {
+ },
+ "devDependencies":{
+ "vows":"0.5.13",
+ "should":"0.3.2"
+ },
+ "scripts": {
+ "test": "vows test/*.test.js --spec"
+ }
+}
18 test/index.test.js
@@ -0,0 +1,18 @@
+
+var vows = require("vows");
+var assert = require("assert");
+
+var version = require("../lib/version");
+
+vows.describe("General Module Tests").addBatch({
+ "when instantiating version":{
+ topic:function(){
+ return version;
+ },
+ "short should be a function":function(topic) {
+ assert.equal(typeof(version), "function");
+ }
+ }
+}).export(module);
+
+/* EOF */
Please sign in to comment.
Something went wrong with that request. Please try again.