Skip to content

watson/airplay-photos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A low level module for getting photos from iDevices

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors