ios-simulator-set-location

1.0.0 • Public • Published

ios-simulator-set-location

Set the location of the ios simulator via node or the command line

Install

$ npm install ios-simulator-set-location

or if you want to use the cli

$ npm install ios-simulator-set-location -g

Usage

const setLocation = require('ios-simulator-set-location');

(async () => {
    const lat = 52.5243700; 
    const lat = 13.4105300;

    // set optional device Name, defaults to all running devices
    const deviceName = 'iphone X'; 
    await setLocation(lat, lat, deviceName);

})();

CLI

Usage
  $ ios-set-location lat lng -n deviceName

Options
  --name, -n  specify the simulator name (optional, defaults to active running devices)

Examples
  $ ios-set-location 52.5243700 13.4105300

License

MIT © Steffen Müller

Readme

Keywords

none

Package Sidebar

Install

npm i ios-simulator-set-location

Weekly Downloads

94

Version

1.0.0

License

MIT

Unpacked Size

9.17 MB

Total Files

6

Last publish

Collaborators

  • steffen