Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

osc-min

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

osc-min - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

12

lib/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc