Skip to content

A smart package to let you view browser headers in meteor

Notifications You must be signed in to change notification settings

Tarang/meteor-ip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Meteor IP

Meteor-IP lets you get your user's IP address and/or browser headers.

Installation

mrt add ip

Usage (Server side)

//Use this.userId or any other userId
var userdata = new GetClient(this.userId);

userdata.ip_address;
=> 23.23.23.23

userdata.user_agent;
=> "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.101 Safari/537.36"

user.headers
=> all headers in an object

Limitations:

You can only get stuff off a currently active user.

About

A smart package to let you view browser headers in meteor

Resources

Stars

Watchers

Forks

Packages

No packages published