Permalink
Browse files

Updated README.

  • Loading branch information...
1 parent ea061e0 commit 9d6c114c0a2fb03f8e66fb376e8906017209a163 @slaskis slaskis committed Apr 18, 2011
Showing with 13 additions and 7 deletions.
  1. +12 −5 README.md
  2. +1 −1 index.js
  3. +0 −1 package.json
View
@@ -29,7 +29,7 @@
open("http://google.com",console.log)("http://publicclass.se",process.stdout)
// Get a file off of an FTP
- open("ftp://user:pass@ftp.example.com/myfile.txt",function(err,txt){console.log(txt)})
+ open("ftp://user:pass@ftp.example.com/myfile.txt",function(err,txt){console.log(txt)})
## Supported schemes
@@ -60,14 +60,25 @@ Uses the [addressable module](https://github.com/publicclass/addressable) for pa
* `anonymous` (boolean) If no user info is in the URI, add anonymous. Defaults to `true`.
+
+
## History
+
+### 0.2.2
+
+* [Feature] Re-factored the schemes into separate files. Now adding more schemes will be much easier.
+
+* [Feature] Added a simple binary. Usage: `open-uri http://google.com`
+
+
### 0.2.1
* [Feature] Better parsing of content using the [mime module](https://github.com/bentomas/node-mime) for Content-Type lookup.
* [Feature] _FTP_ Initial support using the [node-ftp module](https://github.com/mscdex/node-ftp).
+
### 0.2.0
* [Feature] _HTTP(S)_ Now supports gzip responses (and adds a 'Accept-Encoding: gzip'-header if there is none already).
@@ -92,8 +103,6 @@ Uses the [addressable module](https://github.com/publicclass/addressable) for pa
* A timeout option for all schemes would be useful.
-* Get the tests to pass, having some issues with faking a Writeable Stream.
-
* A binary, just for fun really. Usage: `open-uri http://google.com`.
- Output to process.stdout by default.
- Allow a REST interface? So if something is written to stdin it's sent as body to the url using POST by default, but definable with -X (curl style!)
@@ -103,8 +112,6 @@ Uses the [addressable module](https://github.com/publicclass/addressable) for pa
- SQL query. Is there a standard URI for this? Something like: `mysql://root@localhost/mydb?query=SELECT * FROM x;` or `sqlite3://file.sqlite?query=SELECT * FROM x;` possibly with support for input escaping. open("sqlite3://file.sqlite?query=SELECT * FROM x WHERE id=? AND name=?;",[12,"bob"]) using the drivers own escaping. With a callback like `function(err,rows,meta){}`.
- NNTP (using [node-nntp module](https://github.com/mscdex/node-nntp))
-* A little refactoring so we'd do `require("./open-uri/"+uri.scheme)` in the main function and keep the different schemes in separate files.
-
## Thanks to
View
@@ -1 +1 @@
-module.exports = require("lib/open-uri")
+module.exports = require("./lib/open-uri")
View
@@ -9,7 +9,6 @@
"mime": ">= 1.0.0"
},
"keywords": ["open", "uri", "open-uri"],
- "main": "./lib/open-uri",
"scripts": { "test": "expresso test/test-open-uri.js" },
"engines": { "node": ">= 0.3.6" }
}

0 comments on commit 9d6c114

Please sign in to comment.