Skip to content

Commit

Permalink
bsd lic
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Mar 16, 2012
1 parent 8d72a84 commit 81b5632
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 5 deletions.
25 changes: 25 additions & 0 deletions LICENCE
@@ -0,0 +1,25 @@
Copyright (c) Isaac Z. Schlueter
All rights reserved.

The BSD License

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
10 changes: 6 additions & 4 deletions example/example.js
Expand Up @@ -3,10 +3,12 @@ var read = require("../lib/read.js")
read({prompt: "Username: ", default: "test-user" }, function (er, user) {
read({prompt: "Password: ", default: "test-pass", silent: true }, function (er, pass) {
read({prompt: "Enter 4 characters: ", num: 4 }, function (er, four) {
console.error(user + ":" + pass + " " + JSON.stringify(four))
console.error("If the program doesn't end right now,\n"
+"then you may be experiencing this bug:\n"
+"https://github.com/joyent/node/issues/2257")
read({prompt: "Password again: ", default: "test-pass", silent: true }, function (er, pass2) {
console.error(user + ":" + pass + " (" + pass2 + ") " + JSON.stringify(four) + (pass === pass2))
console.error("If the program doesn't end right now,\n"
+"then you may be experiencing this bug:\n"
+"https://github.com/joyent/node/issues/2257")
})
})
})
})
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -12,5 +12,6 @@
"repository": {
"type": "git",
"url": "git://github.com/isaacs/read.git"
}
},
"license":"BSD"
}

0 comments on commit 81b5632

Please sign in to comment.