{"_id":"@bond-wm/keysym","name":"@bond-wm/keysym","dist-tags":{"latest":"0.0.6"},"versions":{"0.0.6":{"name":"@bond-wm/keysym","version":"0.0.6","description":"Look up X11 keysyms, unicode positions, and names.","main":"./index.js","exports":"./index.js","types":"./index.d.ts","keywords":["x11","keysym","key","unicode"],"license":"MIT/X11","author":{"name":"James Halliday","email":"mail@substack.net"},"_id":"@bond-wm/keysym@0.0.6","_integrity":"sha512-PBNqxppClgc/C5Oz0mYST0hXFwn8FCAcy2TAqNCJAaF5rEqRMNF+KGow2ZAWQpzN2u1FqGzOr2B+v/+bumoiBw==","_resolved":"/tmp/19122288c0daf9aac7211caff94de8cb/bond-wm-keysym-0.0.6.tgz","_from":"file:bond-wm-keysym-0.0.6.tgz","_nodeVersion":"21.5.0","_npmVersion":"10.2.5","dist":{"integrity":"sha512-PBNqxppClgc/C5Oz0mYST0hXFwn8FCAcy2TAqNCJAaF5rEqRMNF+KGow2ZAWQpzN2u1FqGzOr2B+v/+bumoiBw==","shasum":"47d0d131fcbe6459c69881be0944a5ff6ae2fa2f","tarball":"https://registry.npmjs.org/@bond-wm/keysym/-/keysym-0.0.6.tgz","fileCount":5,"unpackedSize":178973,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFKIJnbs0jxdejzEkbCAi+9trsbd/STYbF2O3d7uXzw5AiBGMedzOVnxh0ufOcyxua8pVVRVsvKayck2TN6kDNFJrQ=="}]},"_npmUser":{"name":"wnayes","email":"wnayes+npm@gmail.com"},"directories":{},"maintainers":[{"name":"wnayes","email":"wnayes+npm@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/keysym_0.0.6_1704602960588_0.05757466018860469"},"_hasShrinkwrap":false}},"time":{"created":"2024-01-07T04:49:20.449Z","0.0.6":"2024-01-07T04:49:20.761Z","modified":"2024-01-07T04:49:21.112Z"},"maintainers":[{"name":"wnayes","email":"wnayes+npm@gmail.com"}],"description":"Look up X11 keysyms, unicode positions, and names.","keywords":["x11","keysym","key","unicode"],"author":{"name":"James Halliday","email":"mail@substack.net"},"license":"MIT/X11","readme":"> [!NOTE]\n> This is an bond-wm fork of the npm `keysym` to remove use of Node `fs` APIs and `__dirname`.\n\n# Keysym\n\nThis library converts among X11 keysyms, unicodes, and string names in node.js.\n\nWhy would anybody want to do that? Why indeed, dear reader. Why indeed.\n\n## Methods\n\n- fromKeysym - look up a record from an integral keysym\n- fromUnicode - look up a record from its integral unicode position\n- fromName - look up a record by name\n\nYou can also get at all the records at `require('keysym').records`.\n\n## Record Format\n\nRecords are just hashes with fields: keysym, unicode, status, ane name.\nThese fields come directly from\n[keysyms.txt](http://www.cl.cam.ac.uk/~mgk25/ucs/keysyms.txt),\nexcept keysym and unicode are converted from hexadecimal strings to integers.\n\n# Example\n\n## Look up keysym records from a unicode position\n\n    var ks = require('keysym');\n    console.dir(ks.fromUnicode(8))\n\nOutput:\n[ { keysym: 65288\n, unicode: 8\n, status: 'f'\n, names: [ 'BackSpace' ]\n}\n]\n\n# Installation\n\nTo install with [npm](http://github.com/isaacs/npm):\n\n    npm install keysym\n\nTo run the tests with [expresso](http://github.com/visionmedia/expresso):\n\n    expresso\n\n# Credits\n\nThis module is basically just a thin wrapper around\n[a public domain keysym dataset](http://www.cl.cam.ac.uk/~mgk25/ucs)\ncompiled by\n[Markus G. Kuhn](http://www.cl.cam.ac.uk/~mgk25/).\n\nSpecifically, it's from [this file](http://www.cl.cam.ac.uk/~mgk25/ucs/keysyms.txt).\n","readmeFilename":"README.md"}