Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add a simple example to the README.

  • Loading branch information...
commit c1453d7c4b999ca29111bb655c53a974e74cdeff 1 parent 51484fd
@tristandunn authored
Showing with 16 additions and 0 deletions.
  1. +16 −0 README.markdown
View
16 README.markdown
@@ -2,6 +2,22 @@
A node.js driver for [webkit-server](https://github.com/tristandunn/webkit-server).
+## Example
+
+```javascript
+var WebKit = require("webkit-server");
+
+new WebKit.Browser(function() {
+ this.visit("http://www.timeapi.org/utc/now", function(error) {
+ this.source(function(error, source) {
+ console.info("The time is:", source);
+
+ this.stop();
+ });
+ });
+});
+```
+
## License
node-webkit-server uses the MIT license. See LICENSE for more details.
Please sign in to comment.
Something went wrong with that request. Please try again.