Socket
Book a DemoInstallSign in
Socket

airplay-photos

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

airplay-photos

A low level module for getting photos from iDevices

latest
Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
1
-75%
Maintainers
1
Weekly downloads
 
Created
Source

airplay-photos

A low level module for getting photos from iDevices.

Build status js-standard-style

Installation

npm install airplay-photos

Usage example

Write each file sent from your iDevice to a new file in the current directory:

var fs = require('fs')
var airplay = require('airplay-photos')('My Photo Bucket')

var photos = 0

airplay.on('photo', function (req) {
  photos++
  var filename = 'picture' + photos + '.jpg'
  var file = fs.createWriteStream(filename)

  req.pipe(file) // do the magic!

  req.on('end', function () {
    console.log(filename)
  })
})

License

MIT

Keywords

airplay

FAQs

Package last updated on 08 Sep 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts