Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including ego with all npm packages installed. Try it out:

var ego = require("ego")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

ego v0.1.0

Find your rank on Google and other search engines.

node-ego

Find your rank on Google and other search engines.

Getting Started

Install the module with: npm install ego

ego = require 'ego'

ego.rank
  phrase: "ebay"
  domain: "ebay.com"
  success: (result) ->
    console.log "Google position: #{result.position}"

output: "Google position: 1"

Examples

Delay

Google will temporarily block searches if they suspect you're automating searches. You can specify a delay (in milliseconds) between each pagination to avoid this.

ego.options.delay = 5000

# or

ego.rank
  delay: 5000
  phrase: "ebay"
  domain: "ebay.com"
  success: (result) ->
    console.log "Google position: #{result.position}"

Documentation

(Coming soon)

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.

Roadmap

  • Incorporate bing/yahoo

Release History

v0.1.0

  • now using node-google

License

Copyright (c) 2013 Simon W. Jackson
Licensed under the MIT license.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free