Permalink
Browse files

updates for hashish and not-found keysyms

  • Loading branch information...
1 parent 7c7bfb1 commit a29ac6cc9320d134e223454bdeb453e6fb5db9ec @substack committed Mar 30, 2011
Showing with 10 additions and 7 deletions.
  1. +1 −1 index.js
  2. +7 −4 package.json
  3. +1 −1 scrape.js
  4. +1 −1 test/keysym.js
View
2 index.js
@@ -9,7 +9,7 @@ exports.fromKeysym = function (keysym) {
};
exports.fromUnicode = function (code) {
- return data.unicodes[code].map(function (i) {
+ return (data.unicodes[code] || []).map(function (i) {
return data.records[i]
});
};
View
11 package.json
@@ -1,14 +1,17 @@
{
"name" : "keysym",
- "version" : "0.0.2",
+ "version" : "0.0.3",
"description" : "Look up X11 keysyms, unicode positions, and names.",
"main" : "./index.js",
- "keywords": [ "x11 keysym unicode" ],
- "license": { "type": "Public Domain" },
+ "keywords": [ "x11", "keysym", "key", "unicode" ],
+ "license": "MIT/X11",
"repository": {
"type": "git",
"url": "http://github.com/substack/node-keysym.git"
},
- "engines": { "node": ">=0.2.0" }
+ "dependencies" : {
+ "hashish" : "0.0.2"
+ },
+ "engines": { "node" : ">=0.4.0" }
}
View
2 scrape.js
@@ -1,6 +1,6 @@
// Scraper for http://www.cl.cam.ac.uk/~mgk25/ucs/keysyms.txt
var Lazy = require('lazy');
-var Hash = require('traverse/hash');
+var Hash = require('hashish');
var fs = require('fs');
var s = fs.createReadStream(__dirname + '/data/keysyms.txt');
View
2 test/keysym.js
@@ -1,5 +1,5 @@
var ks = require('keysym');
-var Hash = require('traverse/hash');
+var Hash = require('hashish');
exports.symmetric = function (assert) {
assert.ok(ks.records.length > 50); // at least

0 comments on commit a29ac6c

Please sign in to comment.