npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

rnsaveaudio

v1.0.6

Published

React Native audio saving module used for DSP

Readme

NDART LOGO

NDART

http://ndart.ca

RNSaveAudio Module

React-Native Home Useful Links Custom Module Tutorial

Purpose

The purpose of this module is to take an array of int16 data from javascript, and create a .wav file from that data, on Android and iOS devices natively. This module is essentially suppose to provide a sink when working with the react-native-recording module (https://www.npmjs.com/package/react-native-recording). More information can be found on the projects respective github homepage page -> https://github.com/qiuxiang/react-native-recording#readme...

Installation

Android

  1. To install, run npm install rnsaveaudio
  2. Edit /android/settings.gradle and add the following lines...
include ':rnsaveaudio'
project(':rnsaveaudio').projectDir = new File(rootProject.projectDir, '../node_modules/rnsaveaudio/android')
  1. Edit /android/app/build.gradle and add the following line inside of dependencies...
compile project(':rnsaveaudio')
  1. Edit /android/app/src/main/java/.../MainApplication.java with the follow lines...
  • Import the module at the top of the file
import com.navraj.rnsaveaudio.RNSaveAudioPackage;
  • Instantiate the package inside of the getPackages() method
new RNSaveAudioPackage()
  1. run the command cd android && gradlew clean && cd ../ for windows, or cd android && ./gradlew clean && cd ../ for OSX, inside the root directory of your react-native project

iOS

  1. Open your xCode project and add the RNSaveAudio.xcodeproj file to your project
  2. Go to your project's build phases, and add the libRNSaveAudio.a file to the list labeled Link Binary With Libraries, using the + under the list
  • If you get an error saying xCode cannot find <RCTEventEmitter.h>, open RNSaveAudio.h inside of the ios project folder, and change the the header to <React/RCTEventEmitter.h>
  • For more information, look at https://github.com/maxs15/react-native-spinkit/wiki/Manual-linking---IOS

Notes

  • Version 1.0.6 is current
  • Works on Android and iOS (Tested)
  • Sends a promise when complete
  • Creates a .wav file based on an array of signed short (SInt16) values at a frequency of 44.1kHz
  • Meant to work with react-native-recording node package and react-native-fs package

Useage

  • Import the module using import RNSaveAudio from 'rnsaveaudio';
  • Export audio using RNsaveAudio.saveWav(PATH+'/filename.wav',dataArray);
  • Make sure to include the keywords await and async if used inside of a function, eg. async func(prop){ const variable = await RNsaveAudio.saveWav(PATH+'/filename.wav',dataArray); }

Contact Information

  • My email is [email protected], use the module name in the subject line.
  • Submit an issue to the github page. http://github.com/navrajkambo/RNSaveAudio/issues

Other Information

  • If you feel like contributing, send me a message or open an issue! Any help is appriciated :)
  • For more information on bridging native modules to react-native, have a look at https://gist.github.com/chourobin/f83f3b3a6fd2053fad29fff69524f91c, https://eastcodes.com/packaging-and-sharing-react-native-modules, and http://matthewsessions.com/2017/10/27/developing-rn-module.html. They are very informative!