Comparing version 0.1.4 to 0.1.5
@@ -29,5 +29,5 @@ // slowjam: ScreenSlow Jam the Code | ||
function SlowJam() { | ||
function SlowJam(args) { | ||
this.slowness = 1000 | ||
this.log = true | ||
this.log = false | ||
this.fileName = '' | ||
@@ -39,2 +39,9 @@ this.asMarkdown = '' | ||
this.asAST = null | ||
if (args) { | ||
var keys = Object.keys(args) | ||
keys.forEach(function(key){ | ||
this[key] = args[key] | ||
}, this) | ||
} | ||
} | ||
@@ -164,2 +171,1 @@ | ||
module.exports.SlowJam = SlowJam | ||
{ | ||
"name": "slowjam", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"description": "Plays your code, slowly.", | ||
@@ -5,0 +5,0 @@ "author": "Jason Huggins <jrhuggins@gmail.com>", |
@@ -31,2 +31,4 @@ Slow Jam the Code | ||
### As a Library | ||
#### Default | ||
@@ -37,3 +39,9 @@ slowjam = require('slowjam') | ||
jam.play() | ||
#### Customized | ||
slowjam = require('slowjam') | ||
jam = new slowjam.SlowJam({'slowness':2000, 'log':true}) | ||
jam.load('/path/to/slowjam-worthy-code.js') | ||
jam.play() | ||
### From the Command Line | ||
@@ -61,8 +69,8 @@ | ||
By default, slowjam logs the statement about to be run to stdout. | ||
By default, slowjam does not log the statement about to be run to stdout. | ||
> jam.log = true | ||
> jam.log = false | ||
But you can turn that off, so now your code will run -- slowly, and quietly. | ||
But you can turn that on. | ||
> jam.log = false | ||
> jam.log = true |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2210425
156
74