Comparing version 0.0.5 to 0.0.6
@@ -42,7 +42,7 @@ (function() { | ||
// address : "/address/pattern/might/have/wildcards" | ||
// arguments : [arg1,arg2] | ||
// args : [arg1,arg2] | ||
// } | ||
// | ||
// Where arguments is an array of _OSC Arguments_. `oscType` is optional. | ||
// `arguments` can be a single element. | ||
// Where args is an array of _OSC Arguments_. `oscType` is optional. | ||
// `args` can be a single element. | ||
// | ||
@@ -114,8 +114,8 @@ // + An _OSC Argument_ is represented as a javascript object with the following layout: | ||
//---- | ||
//### .toBuffer(address, arguments[], [strict]) | ||
//### .toBuffer(address, args[], [strict]) | ||
// alternative syntax for above. Assumes this is an _OSC Message_ as defined below, | ||
// and `arguments` is an array of _OSC Arguments_ or single _OSC Argument_ | ||
// and `args` is an array of _OSC Arguments_ or single _OSC Argument_ | ||
exports.toBuffer = function(object, strict, opt) { | ||
if(typeof object === "string") | ||
return utils.toOscPacket({'address' : object, 'arguments' : strict}, opt); | ||
return utils.toOscPacket({'address' : object, 'args' : strict}, opt); | ||
return utils.toOscPacket(object, strict); | ||
@@ -122,0 +122,0 @@ }; |
{ | ||
"name": "osc-min", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"main": "lib/index", | ||
@@ -5,0 +5,0 @@ "author": { |
@@ -51,3 +51,3 @@ # osc-min | ||
``` | ||
### Send a bunch of arguments every two seconds | ||
### Send a bunch of args every two seconds | ||
```coffee-script | ||
@@ -57,3 +57,3 @@ sendHeartbeat = () -> | ||
address : "/heartbeat" | ||
arguments : [ | ||
args : [ | ||
12 | ||
@@ -65,5 +65,5 @@ "sttttring" | ||
) | ||
udp.send buf, 0, buf.length, outport, "localhost" | ||
setInterval sendHeartbeat, 2000 | ||
@@ -107,5 +107,5 @@ ``` | ||
---- | ||
### .toBuffer(address, arguments[], [strict]) | ||
### .toBuffer(address, args[], [strict]) | ||
alternative syntax for above. Assumes this is an _OSC Message_ as defined below, | ||
and `arguments` is an array of _OSC Arguments_ or single _OSC Argument_ | ||
and `args` is an array of _OSC Arguments_ or single _OSC Argument_ | ||
@@ -155,7 +155,7 @@ ---- | ||
address : "/address/pattern/might/have/wildcards" | ||
arguments : [arg1,arg2] | ||
args : [arg1,arg2] | ||
} | ||
Where arguments is an array of _OSC Arguments_. `oscType` is optional. | ||
`arguments` can be a single element. | ||
Where args is an array of _OSC Arguments_. `oscType` is optional. | ||
`args` can be a single element. | ||
@@ -162,0 +162,0 @@ + An _OSC Argument_ is represented as a javascript object with the following layout: |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
78700