node-navigator
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

Node Navigator

Node.js navigator api

Installing

$ npm install --save node-navigator

Example

const { Navigator } = require("node-navigator");
const navigator = new Navigator();

navigator.geolocation.getCurrentPosition((success, error) => {
    if (error) console.error(error);
    else console.log(success);
});

/*
{
  accuracy: null,
  altitude: null,
  altitudeAccuracy: null,
  heading: null,
  latitude: 69.6969,
  longitude: 69.6969,
  speed: null,
  timestamp: 1609918525820
}
*/

Package Sidebar

Install

npm i node-navigator

Weekly Downloads

127

Version

1.0.1

License

MIT

Unpacked Size

12 kB

Total Files

14

Last publish

Collaborators

  • snowflake7
  • jcbhmr