New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

nativescript-sound

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nativescript-sound - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

2

package.json
{
"name": "nativescript-sound",
"version": "1.0.2",
"version": "1.0.3",
"description": "Play a sound in your NativeScript app",

@@ -5,0 +5,0 @@ "main": "sound.js",

@@ -23,4 +23,8 @@ # NativeScript Sound

It's important to preload the audio file into the **sound** module before playing it; there is a delay during creation due to the audio being processed.
```js
var tada = sound.create("~/sounds/tada.mp3");
var tada = sound.create("~/sounds/tada.mp3"); // preload the audio file
// play the sound (i.e. tap event handler)
tada.play();

@@ -27,0 +31,0 @@ ```

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