{"_id":"locale","_rev":"938049","name":"locale","description":"Browser locale negotiation for node.js","dist-tags":{"latest":"0.1.0"},"maintainers":[{"name":"florrain","email":"lorrain.florian@gmail.com"},{"name":"stuartf","email":"stuart.freeman@et.gatech.edu"}],"time":{"modified":"2021-09-23T02:05:08.000Z","created":"2012-01-14T14:29:35.740Z","0.1.0":"2016-06-18T21:22:37.553Z","0.0.21":"2016-03-14T14:16:56.309Z","0.0.20":"2014-09-20T20:58:30.340Z","0.0.17":"2014-07-08T00:38:42.950Z","0.0.16":"2014-07-07T17:31:00.670Z","0.0.15":"2014-04-09T00:20:06.279Z","0.0.14":"2014-01-22T17:16:06.686Z","0.0.13":"2014-01-22T15:22:33.802Z","0.0.12":"2013-10-18T14:10:33.119Z","0.0.11":"2013-10-18T14:09:10.245Z","0.0.10":"2013-05-17T20:13:07.422Z","0.0.9":"2013-04-12T04:15:58.176Z","0.0.8":"2013-02-21T11:38:57.623Z","0.0.7":"2012-01-20T03:50:33.133Z","0.0.6":"2012-01-20T01:45:47.040Z","0.0.5":"2012-01-15T01:00:20.852Z","0.0.4":"2012-01-15T00:54:36.257Z","0.0.3":"2012-01-14T14:45:52.069Z","0.0.2":"2012-01-14T14:33:41.620Z","0.0.1":"2012-01-14T14:29:35.740Z"},"users":{"lucasmciruzzi":true,"fezvrasta":true,"moimikey":true,"n370":true,"hugovila":true,"mluberry":true,"manjunathd":true,"n3sty":true},"author":{"name":"Florian Lorrain"},"repository":{"type":"git","url":"git://github.com/florrain/locale.git"},"versions":{"0.1.0":{"author":{"name":"Florian Lorrain"},"name":"locale","description":"Browser locale negotiation for node.js","version":"0.1.0","homepage":"https://github.com/florrain/locale","repository":{"type":"git","url":"git://github.com/florrain/locale.git"},"main":"./lib","scripts":{"test":"mocha ./src/test.coffee","prepublish":"coffee -o lib/ -c src/"},"engines":{"node":">0.8.x"},"dependencies":{},"devDependencies":{"coffee-script":"~1.6.0","express":"~3.0.0","mocha":"~1.13.0"},"contributors":[{"name":"Jed Smith","email":"where@jed.is","url":"https://github.com/jed"},{"name":"D. Stuart Freeman","email":"stuart.freeman@et.gatech.edu","url":"https://github.com/stuartf"}],"gitHead":"860f5a1be620955f19f1cd303884c1c2d9cecd75","bugs":{"url":"https://github.com/florrain/locale/issues"},"_id":"locale@0.1.0","_shasum":"3b5bf70614fdab48ac3e3fbc648147cb65443bde","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.2","_npmUser":{"name":"florrain","email":"lorrain.florian@gmail.com"},"dist":{"shasum":"3b5bf70614fdab48ac3e3fbc648147cb65443bde","size":6321,"noattachment":false,"key":"/locale/-/locale-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/locale/download/locale-0.1.0.tgz"},"maintainers":[{"name":"florrain","email":"lorrain.florian@gmail.com"},{"name":"stuartf","email":"stuart.freeman@et.gatech.edu"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/locale-0.1.0.tgz_1466284956389_0.7535254582762718"},"directories":{},"publish_time":1466284957553,"_cnpm_publish_time":1466284957553,"_hasShrinkwrap":false},"0.0.21":{"author":{"name":"Jed Schmidt","email":"tr@nslator.jp","url":"http://jed.is"},"name":"locale","description":"Browser locale negotiation for node.js","version":"0.0.21","homepage":"https://github.com/jed/locale","repository":{"type":"git","url":"git://github.com/jed/locale.git"},"main":"./lib","scripts":{"test":"mocha ./src/test.coffee","prepublish":"coffee -o lib/ -c src/"},"engines":{"node":">0.8.x"},"dependencies":{},"devDependencies":{"coffee-script":"~1.6.0","express":"~3.0.0","mocha":"~1.13.0"},"contributors":[{"name":"D. Stuart Freeman","email":"stuart.freeman@et.gatech.edu","url":"https://github.com/stuartf"}],"gitHead":"72e5fa5c5006b72e46ebfa86e6b26e71ceeb79cb","bugs":{"url":"https://github.com/jed/locale/issues"},"_id":"locale@0.0.21","_shasum":"2ce9e693b8ce67a63ca0eb14f519f18eeef28a8d","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.7.0","_npmUser":{"name":"jed","email":"where@jed.is"},"dist":{"shasum":"2ce9e693b8ce67a63ca0eb14f519f18eeef28a8d","size":5977,"noattachment":false,"key":"/locale/-/locale-0.0.21.tgz","tarball":"http://registry.cnpm.dingdandao.com/locale/download/locale-0.0.21.tgz"},"maintainers":[{"name":"florrain","email":"lorrain.florian@gmail.com"},{"name":"stuartf","email":"stuart.freeman@et.gatech.edu"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/locale-0.0.21.tgz_1457965015800_0.7418101700022817"},"directories":{},"publish_time":1457965016309,"_cnpm_publish_time":1457965016309,"_hasShrinkwrap":false},"0.0.20":{"author":{"name":"Jed Schmidt","email":"tr@nslator.jp","url":"http://jed.is"},"name":"locale","description":"Browser locale negotiation for node.js","version":"0.0.20","homepage":"https://github.com/jed/locale","repository":{"type":"git","url":"git://github.com/jed/locale.git"},"main":"./lib","scripts":{"test":"mocha ./src/test.coffee","prepublish":"coffee -o lib/ -c src/"},"engines":{"node":">0.8.x <=1.0.0"},"dependencies":{},"devDependencies":{"coffee-script":"~1.6.0","express":"~3.0.0","mocha":"~1.13.0"},"contributors":[{"name":"D. Stuart Freeman","email":"stuart.freeman@et.gatech.edu","url":"https://github.com/stuartf"}],"gitHead":"5012622e926a27785d33efa084ab857fdcc1e783","bugs":{"url":"https://github.com/jed/locale/issues"},"_id":"locale@0.0.20","_shasum":"cc863210eaa34d92091cc720d5a1bbe7bbc499c6","_from":".","_npmVersion":"1.4.13","_npmUser":{"name":"jed","email":"where@jed.is"},"maintainers":[{"name":"florrain","email":"lorrain.florian@gmail.com"},{"name":"stuartf","email":"stuart.freeman@et.gatech.edu"}],"dist":{"shasum":"cc863210eaa34d92091cc720d5a1bbe7bbc499c6","size":5984,"noattachment":false,"key":"/locale/-/locale-0.0.20.tgz","tarball":"http://registry.cnpm.dingdandao.com/locale/download/locale-0.0.20.tgz"},"directories":{},"publish_time":1411246710340,"_cnpm_publish_time":1411246710340,"_hasShrinkwrap":false},"0.0.17":{"author":{"name":"Jed Schmidt","email":"tr@nslator.jp","url":"http://jed.is"},"name":"locale","description":"Browser locale negotiation for node.js","version":"0.0.17","homepage":"https://github.com/jed/locale","repository":{"type":"git","url":"git://github.com/jed/locale.git"},"main":"./lib","scripts":{"test":"mocha ./src/test.coffee","prepublish":"coffee -o lib/ -c src/"},"engines":{"node":">0.8.x <=1.0.0"},"dependencies":{},"devDependencies":{"coffee-script":"~1.6.0","express":"~3.0.0","mocha":"~1.13.0"},"contributors":[{"name":"D. Stuart Freeman","email":"stuart.freeman@et.gatech.edu","url":"https://github.com/stuartf"}],"gitHead":"5567c17b9a8dcfedef87ee8d8e2577eeb890a1b6","bugs":{"url":"https://github.com/jed/locale/issues"},"_id":"locale@0.0.17","_shasum":"66039ff22122dfa45f773b353e472cfad4c9a06a","_from":".","_npmVersion":"1.4.13","_npmUser":{"name":"jed","email":"where@jed.is"},"maintainers":[{"name":"florrain","email":"lorrain.florian@gmail.com"},{"name":"stuartf","email":"stuart.freeman@et.gatech.edu"}],"dist":{"shasum":"66039ff22122dfa45f773b353e472cfad4c9a06a","size":4902,"noattachment":false,"key":"/locale/-/locale-0.0.17.tgz","tarball":"http://registry.cnpm.dingdandao.com/locale/download/locale-0.0.17.tgz"},"directories":{},"publish_time":1404779922950,"_cnpm_publish_time":1404779922950,"_hasShrinkwrap":false},"0.0.16":{"author":{"name":"Jed Schmidt","email":"tr@nslator.jp","url":"http://jed.is"},"name":"locale","description":"Browser locale negotiation for node.js","version":"0.0.16","homepage":"https://github.com/jed/locale","repository":{"type":"git","url":"git://github.com/jed/locale.git"},"main":"./lib","scripts":{"test":"mocha ./src/test.coffee","prepublish":"coffee -o lib/ -c src/"},"engines":{"node":">0.8.x <=1.0.0"},"dependencies":{},"devDependencies":{"coffee-script":"~1.6.0","express":"~3.0.0","mocha":"~1.13.0"},"contributors":[{"name":"D. Stuart Freeman","email":"stuart.freeman@et.gatech.edu","url":"https://github.com/stuartf"}],"gitHead":"edf5bab275a1f37995c7c62829473ce8047efc8d","bugs":{"url":"https://github.com/jed/locale/issues"},"_id":"locale@0.0.16","_shasum":"2d19a49ac934816d759ee57a094254072458c2fb","_from":".","_npmVersion":"1.4.13","_npmUser":{"name":"jed","email":"where@jed.is"},"maintainers":[{"name":"florrain","email":"lorrain.florian@gmail.com"},{"name":"stuartf","email":"stuart.freeman@et.gatech.edu"}],"dist":{"shasum":"2d19a49ac934816d759ee57a094254072458c2fb","size":4752,"noattachment":false,"key":"/locale/-/locale-0.0.16.tgz","tarball":"http://registry.cnpm.dingdandao.com/locale/download/locale-0.0.16.tgz"},"directories":{},"publish_time":1404754260670,"_cnpm_publish_time":1404754260670,"_hasShrinkwrap":false},"0.0.15":{"author":{"name":"Jed Schmidt","email":"tr@nslator.jp","url":"http://jed.is"},"name":"locale","description":"Browser locale negotiation for node.js","version":"0.0.15","homepage":"https://github.com/jed/locale","repository":{"type":"git","url":"git://github.com/jed/locale.git"},"main":"./lib","scripts":{"test":"mocha ./src/test.coffee","prepublish":"coffee -o lib/ -c src/"},"engines":{"node":">0.8.x <=1.0.0"},"dependencies":{},"devDependencies":{"coffee-script":"~1.6.0","express":"~3.0.0","mocha":"~1.13.0"},"contributors":[{"name":"D. Stuart Freeman","email":"stuart.freeman@et.gatech.edu","url":"https://github.com/stuartf"}],"bugs":{"url":"https://github.com/jed/locale/issues"},"_id":"locale@0.0.15","dist":{"shasum":"07062fda309eaefa41d62f44ed7977b8b5b7509b","size":4780,"noattachment":false,"key":"/locale/-/locale-0.0.15.tgz","tarball":"http://registry.cnpm.dingdandao.com/locale/download/locale-0.0.15.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"jed","email":"where@jed.is"},"maintainers":[{"name":"florrain","email":"lorrain.florian@gmail.com"},{"name":"stuartf","email":"stuart.freeman@et.gatech.edu"}],"directories":{},"publish_time":1397002806279,"_cnpm_publish_time":1397002806279,"_hasShrinkwrap":false},"0.0.14":{"author":{"name":"Jed Schmidt","email":"tr@nslator.jp","url":"http://jed.is"},"name":"locale","description":"Browser locale negotiation for node.js","version":"0.0.14","homepage":"https://github.com/jed/locale","repository":{"type":"git","url":"git://github.com/jed/locale.git"},"main":"./lib","scripts":{"test":"./node_modules/.bin/mocha ./src/test.coffee","prepublish":"coffee -o lib/ -c src/"},"engines":{"node":">0.8.x <=1.0.0"},"dependencies":{},"devDependencies":{"coffee-script":"~1.6.0","express":"~3.0.0","mocha":"~1.13.0"},"contributors":[{"name":"D. Stuart Freeman","email":"stuart.freeman@et.gatech.edu","url":"https://github.com/stuartf"}],"bugs":{"url":"https://github.com/jed/locale/issues"},"_id":"locale@0.0.14","dist":{"shasum":"132bc52c9e1ca791151149d2312aef753629de7e","size":4669,"noattachment":false,"key":"/locale/-/locale-0.0.14.tgz","tarball":"http://registry.cnpm.dingdandao.com/locale/download/locale-0.0.14.tgz"},"_from":".","_npmVersion":"1.3.15","_npmUser":{"name":"jed","email":"where@jed.is"},"maintainers":[{"name":"florrain","email":"lorrain.florian@gmail.com"},{"name":"stuartf","email":"stuart.freeman@et.gatech.edu"}],"directories":{},"publish_time":1390410966686,"_cnpm_publish_time":1390410966686,"_hasShrinkwrap":false},"0.0.13":{"author":{"name":"Jed Schmidt","email":"tr@nslator.jp","url":"http://jed.is"},"name":"locale","description":"Browser locale negotiation for node.js","version":"0.0.13","homepage":"https://github.com/jed/locale","repository":{"type":"git","url":"git://github.com/jed/locale.git"},"main":"./lib","scripts":{"test":"./node_modules/.bin/mocha ./src/test.coffee","prepublish":"coffee -o lib/ -c src/"},"engines":{"node":">0.6.x <=1.0.0"},"dependencies":{},"devDependencies":{"coffee-script":"~1.6.0","express":"~3.0.0","mocha":"~1.13.0"},"contributors":[{"name":"D. Stuart Freeman","email":"stuart.freeman@et.gatech.edu","url":"https://github.com/stuartf"}],"bugs":{"url":"https://github.com/jed/locale/issues"},"_id":"locale@0.0.13","dist":{"shasum":"99498426011e24469109c39262a395ca28956ac0","size":4616,"noattachment":false,"key":"/locale/-/locale-0.0.13.tgz","tarball":"http://registry.cnpm.dingdandao.com/locale/download/locale-0.0.13.tgz"},"_from":".","_npmVersion":"1.3.15","_npmUser":{"name":"jed","email":"where@jed.is"},"maintainers":[{"name":"florrain","email":"lorrain.florian@gmail.com"},{"name":"stuartf","email":"stuart.freeman@et.gatech.edu"}],"directories":{},"publish_time":1390404153802,"_cnpm_publish_time":1390404153802,"_hasShrinkwrap":false},"0.0.12":{"author":{"name":"Jed Schmidt","email":"tr@nslator.jp","url":"http://jed.is"},"name":"locale","description":"Browser locale negotiation for node.js","version":"0.0.12","homepage":"https://github.com/jed/locale","repository":{"type":"git","url":"git://github.com/jed/locale.git"},"main":"./lib","scripts":{"test":"coffee -o lib/ -c src/ && node ./lib/test.js","prepublish":"coffee -o lib/ -c src/"},"engines":{"node":">0.6.x <=1.0.0"},"dependencies":{},"devDependencies":{"coffee-script":"~1.6.0","express":"~3.0.0"},"readmeFilename":"README.md","bugs":{"url":"https://github.com/jed/locale/issues"},"_id":"locale@0.0.12","dist":{"shasum":"069056b90816cdace112e553ee508957725da4d2","size":4307,"noattachment":false,"key":"/locale/-/locale-0.0.12.tgz","tarball":"http://registry.cnpm.dingdandao.com/locale/download/locale-0.0.12.tgz"},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"jed","email":"tr@nslator.jp"},"maintainers":[{"name":"florrain","email":"lorrain.florian@gmail.com"},{"name":"stuartf","email":"stuart.freeman@et.gatech.edu"}],"directories":{},"publish_time":1382105433119,"_cnpm_publish_time":1382105433119,"_hasShrinkwrap":false},"0.0.11":{"author":{"name":"Jed Schmidt","email":"tr@nslator.jp","url":"http://jed.is"},"name":"locale","description":"Browser locale negotiation for node.js","version":"0.0.11","homepage":"https://github.com/jed/locale","repository":{"type":"git","url":"git://github.com/jed/locale.git"},"main":"./lib","scripts":{"test":"coffee -o lib/ -c src/ && node ./lib/test.js","prepublish":"coffee -o lib/ -c src/"},"engines":{"node":">0.6.x <=1.0.0"},"dependencies":{},"devDependencies":{"coffee-script":"~1.6.0","express":"~3.0.0"},"readmeFilename":"README.md","bugs":{"url":"https://github.com/jed/locale/issues"},"_id":"locale@0.0.11","dist":{"shasum":"70706f2312725285a556faccb289d8994dbff2de","size":4305,"noattachment":false,"key":"/locale/-/locale-0.0.11.tgz","tarball":"http://registry.cnpm.dingdandao.com/locale/download/locale-0.0.11.tgz"},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"jed","email":"tr@nslator.jp"},"maintainers":[{"name":"florrain","email":"lorrain.florian@gmail.com"},{"name":"stuartf","email":"stuart.freeman@et.gatech.edu"}],"directories":{},"publish_time":1382105350245,"_cnpm_publish_time":1382105350245,"_hasShrinkwrap":false},"0.0.10":{"author":{"name":"Jed Schmidt","email":"tr@nslator.jp","url":"http://jed.is"},"name":"locale","description":"Browser locale negotiation for node.js","version":"0.0.10","homepage":"https://github.com/jed/locale","repository":{"type":"git","url":"git://github.com/jed/locale.git"},"main":"./lib","scripts":{"test":"coffee -o lib/ -c src/ && node ./lib/test.js","prepublish":"coffee -o lib/ -c src/"},"engines":{"node":">0.6.x <=1.0.0"},"dependencies":{},"devDependencies":{"coffee-script":"~1.2.0","express":"~2.5.6"},"readmeFilename":"README.md","_id":"locale@0.0.10","dist":{"shasum":"334b04f915456bd17da453cd9411d0ff77aa2b7d","size":4307,"noattachment":false,"key":"/locale/-/locale-0.0.10.tgz","tarball":"http://registry.cnpm.dingdandao.com/locale/download/locale-0.0.10.tgz"},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"jed","email":"tr@nslator.jp"},"maintainers":[{"name":"florrain","email":"lorrain.florian@gmail.com"},{"name":"stuartf","email":"stuart.freeman@et.gatech.edu"}],"directories":{},"publish_time":1368821587422,"_cnpm_publish_time":1368821587422,"_hasShrinkwrap":false},"0.0.9":{"author":{"name":"Jed Schmidt","email":"tr@nslator.jp","url":"http://jed.is"},"name":"locale","description":"Browser locale negotiation for node.js","version":"0.0.9","homepage":"https://github.com/jed/locale","repository":{"type":"git","url":"git://github.com/jed/locale.git"},"main":"./lib","scripts":{"test":"coffee -o lib/ -c src/ && node ./lib/test.js","prepublish":"coffee -o lib/ -c src/"},"engines":{"node":"~0.6.x"},"dependencies":{},"devDependencies":{"coffee-script":"~1.2.0","express":"~2.5.6"},"readmeFilename":"README.md","_id":"locale@0.0.9","dist":{"shasum":"d88d9bdd586ce30a35f6590a8ca397bfbc6aeda1","size":4293,"noattachment":false,"key":"/locale/-/locale-0.0.9.tgz","tarball":"http://registry.cnpm.dingdandao.com/locale/download/locale-0.0.9.tgz"},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"jed","email":"tr@nslator.jp"},"maintainers":[{"name":"florrain","email":"lorrain.florian@gmail.com"},{"name":"stuartf","email":"stuart.freeman@et.gatech.edu"}],"directories":{},"publish_time":1365740158176,"_cnpm_publish_time":1365740158176,"_hasShrinkwrap":false},"0.0.8":{"author":{"name":"Jed Schmidt","email":"tr@nslator.jp","url":"http://jed.is"},"name":"locale","description":"Browser locale negotiation for node.js","version":"0.0.8","homepage":"https://github.com/jed/locale","repository":{"type":"git","url":"git://github.com/jed/locale.git"},"main":"./lib","scripts":{"test":"coffee -o lib/ -c src/ && node ./lib/test.js","prepublish":"coffee -o lib/ -c src/"},"engines":{"node":"~0.6.x"},"dependencies":{},"devDependencies":{"coffee-script":"~1.2.0","express":"~2.5.6"},"readmeFilename":"README.md","_id":"locale@0.0.8","dist":{"shasum":"30a889af69b51b0cbdacc925eaf4f6097ff6b0a1","size":4120,"noattachment":false,"key":"/locale/-/locale-0.0.8.tgz","tarball":"http://registry.cnpm.dingdandao.com/locale/download/locale-0.0.8.tgz"},"_from":".","_npmVersion":"1.2.2","_npmUser":{"name":"jed","email":"tr@nslator.jp"},"maintainers":[{"name":"florrain","email":"lorrain.florian@gmail.com"},{"name":"stuartf","email":"stuart.freeman@et.gatech.edu"}],"directories":{},"publish_time":1361446737623,"_cnpm_publish_time":1361446737623,"_hasShrinkwrap":false},"0.0.7":{"author":{"name":"Jed Schmidt","email":"tr@nslator.jp","url":"http://jed.is"},"name":"locale","description":"Browser locale negotiation for node.js","version":"0.0.7","homepage":"https://github.com/jed/locale","repository":{"type":"git","url":"git://github.com/jed/locale.git"},"main":"./lib","scripts":{"test":"coffee -o lib/ -c src/ && node ./lib/test.js","prepublish":"coffee -o lib/ -c src/"},"engines":{"node":"~0.6.x"},"dependencies":{},"devDependencies":{"coffee-script":"~1.2.0","express":"~2.5.6"},"_npmUser":{"name":"jed","email":"tr@nslator.jp"},"_id":"locale@0.0.7","_engineSupported":true,"_npmVersion":"1.1.0-beta-10","_nodeVersion":"v0.6.7","_defaultsLoaded":true,"dist":{"shasum":"c797295809692bac557e68673a943bc3485c7485","size":3962,"noattachment":false,"key":"/locale/-/locale-0.0.7.tgz","tarball":"http://registry.cnpm.dingdandao.com/locale/download/locale-0.0.7.tgz"},"maintainers":[{"name":"florrain","email":"lorrain.florian@gmail.com"},{"name":"stuartf","email":"stuart.freeman@et.gatech.edu"}],"directories":{},"publish_time":1327031433133,"_cnpm_publish_time":1327031433133,"_hasShrinkwrap":false},"0.0.6":{"author":{"name":"Jed Schmidt","email":"tr@nslator.jp","url":"http://jed.is"},"name":"locale","description":"Browser locale negotiation for node.js","version":"0.0.6","homepage":"https://github.com/jed/locale","repository":{"type":"git","url":"git://github.com/jed/locale.git"},"main":"./lib","scripts":{"test":"coffee -o lib/ -c src/ && node ./lib/test.js","prepublish":"coffee -o lib/ -c src/"},"engines":{"node":"~0.6.7"},"dependencies":{},"devDependencies":{"coffee-script":"~1.2.0","express":"~2.5.6"},"_npmUser":{"name":"jed","email":"tr@nslator.jp"},"_id":"locale@0.0.6","_engineSupported":true,"_npmVersion":"1.1.0-beta-10","_nodeVersion":"v0.6.7","_defaultsLoaded":true,"dist":{"shasum":"a176f8f1ff7a0f9261bbec0afda4afdfca401b60","size":3961,"noattachment":false,"key":"/locale/-/locale-0.0.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/locale/download/locale-0.0.6.tgz"},"maintainers":[{"name":"florrain","email":"lorrain.florian@gmail.com"},{"name":"stuartf","email":"stuart.freeman@et.gatech.edu"}],"directories":{},"publish_time":1327023947040,"_cnpm_publish_time":1327023947040,"_hasShrinkwrap":false},"0.0.5":{"author":{"name":"Jed Schmidt","email":"tr@nslator.jp","url":"http://jed.is"},"name":"locale","description":"Browser locale negotiation for node.js","version":"0.0.5","homepage":"https://github.com/jed/locale","repository":{"type":"git","url":"git://github.com/jed/locale.git"},"main":"./lib","scripts":{"test":"coffee -o lib/ -c src/ && node ./lib/test.js","prepublish":"coffee -o lib/ -c src/"},"engines":{"node":"~0.6.7"},"dependencies":{},"devDependencies":{"coffee-script":"~1.2.0","express":"~2.5.6"},"_npmUser":{"name":"jed","email":"tr@nslator.jp"},"_id":"locale@0.0.5","_engineSupported":true,"_npmVersion":"1.1.0-beta-10","_nodeVersion":"v0.6.7","_defaultsLoaded":true,"dist":{"shasum":"72ce16a61591df9df67c14df861c7c57277bf62f","size":3877,"noattachment":false,"key":"/locale/-/locale-0.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/locale/download/locale-0.0.5.tgz"},"maintainers":[{"name":"florrain","email":"lorrain.florian@gmail.com"},{"name":"stuartf","email":"stuart.freeman@et.gatech.edu"}],"directories":{},"publish_time":1326589220852,"_cnpm_publish_time":1326589220852,"_hasShrinkwrap":false},"0.0.4":{"author":{"name":"Jed Schmidt","email":"tr@nslator.jp","url":"http://jed.is"},"name":"locale","description":"Browser locale negotiation for node.js","version":"0.0.4","homepage":"https://github.com/jed/locale","repository":{"type":"git","url":"git://github.com/jed/locale.git"},"main":"./lib","scripts":{"test":"node ./lib/test.js","prepublish":"coffee -o lib/ -c src/"},"engines":{"node":"~0.6.7"},"dependencies":{},"devDependencies":{"express":"~2.5.6"},"_npmUser":{"name":"jed","email":"tr@nslator.jp"},"_id":"locale@0.0.4","_engineSupported":true,"_npmVersion":"1.1.0-beta-10","_nodeVersion":"v0.6.7","_defaultsLoaded":true,"dist":{"shasum":"e499a32a1a713f81a9e393306951b0385649f5ff","size":3855,"noattachment":false,"key":"/locale/-/locale-0.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/locale/download/locale-0.0.4.tgz"},"maintainers":[{"name":"florrain","email":"lorrain.florian@gmail.com"},{"name":"stuartf","email":"stuart.freeman@et.gatech.edu"}],"directories":{},"publish_time":1326588876257,"_cnpm_publish_time":1326588876257,"_hasShrinkwrap":false},"0.0.3":{"author":{"name":"Jed Schmidt","email":"tr@nslator.jp","url":"http://jed.is"},"name":"locale","description":"Browser locale negotiation for node.js","version":"0.0.3","homepage":"https://github.com/jed/locale","repository":{"type":"git","url":"git://github.com/jed/locale.git"},"main":"./lib","scripts":{"test":"node ./lib/test.js","prepublish":"coffee -o lib/ -c src/"},"engines":{"node":"~0.6.7"},"dependencies":{},"devDependencies":{"express":"~2.5.6"},"_npmUser":{"name":"jed","email":"tr@nslator.jp"},"_id":"locale@0.0.3","_engineSupported":true,"_npmVersion":"1.1.0-beta-10","_nodeVersion":"v0.6.7","_defaultsLoaded":true,"dist":{"shasum":"4e995e4e85aedbe4e5570f22dd83b98260b0b801","size":3754,"noattachment":false,"key":"/locale/-/locale-0.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/locale/download/locale-0.0.3.tgz"},"maintainers":[{"name":"florrain","email":"lorrain.florian@gmail.com"},{"name":"stuartf","email":"stuart.freeman@et.gatech.edu"}],"directories":{},"publish_time":1326552352069,"_cnpm_publish_time":1326552352069,"_hasShrinkwrap":false},"0.0.2":{"author":{"name":"Jed Schmidt","email":"tr@nslator.jp","url":"http://jed.is"},"name":"locale","description":"Browser locale negotiation for node.js","version":"0.0.2","homepage":"https://github.com/jed/locale","repository":{"type":"git","url":"git://github.com/jed/locale.git"},"main":"./lib","scripts":{"test":"node ./lib/test.js","prepublish":"coffee -o lib/ -c src/"},"engines":{"node":"~0.6.7"},"dependencies":{},"devDependencies":{"express":"~2.5.6"},"_npmUser":{"name":"jed","email":"tr@nslator.jp"},"_id":"locale@0.0.2","_engineSupported":true,"_npmVersion":"1.1.0-beta-10","_nodeVersion":"v0.6.7","_defaultsLoaded":true,"dist":{"shasum":"ceff4655794ba9b2e416507f9792f24d54682f88","size":3030,"noattachment":false,"key":"/locale/-/locale-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/locale/download/locale-0.0.2.tgz"},"maintainers":[{"name":"florrain","email":"lorrain.florian@gmail.com"},{"name":"stuartf","email":"stuart.freeman@et.gatech.edu"}],"directories":{},"publish_time":1326551621620,"_cnpm_publish_time":1326551621620,"_hasShrinkwrap":false},"0.0.1":{"author":{"name":"Jed Schmidt","email":"tr@nslator.jp","url":"http://jed.is"},"name":"locale","description":"Browser locale negotiation for node.js","version":"0.0.1","homepage":"https://github.com/jed/locale","repository":{"type":"git","url":"git://github.com/jed/locale.git"},"main":"./lib","scripts":{"test":"node ./lib/test.js","prepublish":"coffee -o lib/ -c src/"},"engines":{"node":"~0.6.7"},"dependencies":{},"devDependencies":{"coffee-script":"~1.2.0","express":"~2.5.6"},"_npmUser":{"name":"jed","email":"tr@nslator.jp"},"_id":"locale@0.0.1","_engineSupported":true,"_npmVersion":"1.1.0-beta-10","_nodeVersion":"v0.6.7","_defaultsLoaded":true,"dist":{"shasum":"a99b77a9cb07cfea2e974984e63f12ae806d3bd3","size":3041,"noattachment":false,"key":"/locale/-/locale-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/locale/download/locale-0.0.1.tgz"},"maintainers":[{"name":"florrain","email":"lorrain.florian@gmail.com"},{"name":"stuartf","email":"stuart.freeman@et.gatech.edu"}],"directories":{},"publish_time":1326551375740,"_cnpm_publish_time":1326551375740,"_hasShrinkwrap":false}},"readme":"locale [![Build Status](https://travis-ci.org/florrain/locale.svg?branch=master)](https://travis-ci.org/florrain/locale)\n======\n\nlocale is a [node.js][node] module for negotiating HTTP locales for incoming browser requests. It can be used as a standalone module for HTTP or as [Express][express]/[Connect][connect] middleware, or as the server component for an in-browser gettext implementation like [JED][JED].\n\nIt works like this: you (optionally) tell it the languages you support, and it figures out the best one to use for each incoming request from a browser. So if you support `en`, `en_US`, `ja`, `kr`, and `zh_TW`, and a request comes in that accepts `en_UK` or `en`, locale will figure out that `en` is the best language to use.\n\n**Credits to [jed](https://github.com/jed) who passed the ownership of the package.**\n\nExamples\n--------\n\n### For the node.js HTTP module\n```javascript\nvar http = require(\"http\")\n  , locale = require(\"locale\")\n  , supported = new locale.Locales([\"en\", \"en_US\", \"ja\"])\n\nhttp.createServer(function(req, res) {\n  var locales = new locale.Locales(req.headers[\"accept-language\"])\n  res.writeHeader(200, {\"Content-Type\": \"text/plain\"})\n  res.end(\n    \"You asked for: \" + req.headers[\"accept-language\"] + \"\\n\" +\n    \"We support: \" + supported + \"\\n\" +\n    \"Our default is: \" + locale.Locale[\"default\"] + \"\\n\" +\n    \"The best match is: \" + locales.best(supported) + \"\\n\"\n  )\n}).listen(8000)\n```\n\n### For Connect/Express\n```javascript\nvar http = require(\"http\")\n  , express = require(\"express\")\n  , locale = require(\"locale\")\n  , supported = [\"en\", \"en_US\", \"ja\"]\n  , app = express()\n\napp.use(locale(supported))\n\napp.get(\"/\", function(req, res) {\n  res.header(\"Content-Type\", \"text/plain\")\n  res.send(\n    \"You asked for: \" + req.headers[\"accept-language\"] + \"\\n\" +\n    \"We support: \" + supported + \"\\n\" +\n    \"Our default is: \" + locale.Locale[\"default\"] + \"\\n\" +\n    \"The best match is: \" + req.locale + \"\\n\"\n  )\n})\n\napp.listen(8000)\n```\n\nInstall\n-------\n\n    $ npm install locale\n\n(Note that although this repo is CoffeeScript, the actual npm library is pre-compiled to pure JavaScript and has no run-time dependencies.)\n\nAPI\n---\n\n### locale(supportedLocales)\n\nThis module exports a function that can be used as Express/Connect middleware. It takes one argument, a list of supported locales, and adds a `locale` property to incoming HTTP requests, reflecting the most appropriate locale determined using the `best` method described below.\n\n### new locale.Locale(languageTag)\n\nThe Locale constructor takes a [language tag][langtag] string consisting of an ISO-639 language abbreviation and optional two-letter ISO-3166 country code, and returns an object with a `language` property containing the former and a `country` property containing the latter.\n\n### locale.Locale[\"default\"]\n\nThe default locale for the environment, as parsed from `process.env.LANG`. This is used as the fallback when the best language is calculated from the intersection of requested and supported locales and supported languages has not default.\n\n### locales = new locale.Locales(acceptLanguageHeader, default)\n\nThe Locales constructor takes a string compliant with the [`Accept-Language` HTTP header][header], and returns a list of acceptible locales, optionally sorted in descending order by quality score. Second argument is optional default value used as the fallback when the best language is calculated. Otherwise locale.Locale[\"default\"] is used as fallback.\n\n### locales.best([supportedLocales])\n\nThis method takes the target locale and compares it against the optionally provided list of supported locales, and returns the most appropriate locale based on the quality scores of the target locale.  If no exact match exists (i.e. language+country) then it will fallback to `language` if supported, or if the language isn't supported it will return the default locale.\n\n    supported = new locale.Locales(['en', 'en_US'], 'en');\n    (new locale.Locales('en')).best(supported).toString();     // 'en'\n    (new locale.Locales('en_GB')).best(supported).toString();  // 'en'\n    (new locale.Locales('en_US')).best(supported).toString();  // 'en_US'\n    (new locale.Locales('jp')).best(supported);                // supported.default || locale.Locale[\"default\"]\n\n\nCopyright\n---------\n\nCopyright (c) 2012 Jed Schmidt. See LICENSE.txt for details.\n\nSend any questions or comments [here](http://twitter.com/jedschmidt).\n\n[node]: http://nodejs.org\n[express]: http://expressjs.com\n[JED]: http://slexaxton.github.com/Jed\n[connect]: http://senchalabs.github.com/connect\n[langtag]: http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.10\n[header]: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.4\n","_attachments":{},"homepage":"https://github.com/florrain/locale","bugs":{"url":"https://github.com/florrain/locale/issues"}}