package.json 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. {
  2. "_args": [
  3. [
  4. {
  5. "raw": "y18n@^3.2.1",
  6. "scope": null,
  7. "escapedName": "y18n",
  8. "name": "y18n",
  9. "rawSpec": "^3.2.1",
  10. "spec": ">=3.2.1 <4.0.0",
  11. "type": "range"
  12. },
  13. "/mnt/Data/bach/Documents/ola/OLA#4/OLA#4DOC/sys/node_modules/yargs"
  14. ]
  15. ],
  16. "_from": "y18n@>=3.2.1 <4.0.0",
  17. "_id": "y18n@3.2.1",
  18. "_inCache": true,
  19. "_location": "/y18n",
  20. "_nodeVersion": "3.2.0",
  21. "_npmOperationalInternal": {
  22. "host": "packages-13-west.internal.npmjs.com",
  23. "tmp": "tmp/y18n-3.2.1.tgz_1458191070611_0.9606689948122948"
  24. },
  25. "_npmUser": {
  26. "name": "bcoe",
  27. "email": "ben@npmjs.com"
  28. },
  29. "_npmVersion": "3.3.0",
  30. "_phantomChildren": {},
  31. "_requested": {
  32. "raw": "y18n@^3.2.1",
  33. "scope": null,
  34. "escapedName": "y18n",
  35. "name": "y18n",
  36. "rawSpec": "^3.2.1",
  37. "spec": ">=3.2.1 <4.0.0",
  38. "type": "range"
  39. },
  40. "_requiredBy": [
  41. "/yargs"
  42. ],
  43. "_resolved": "https://registry.npmjs.org/y18n/-/y18n-3.2.1.tgz",
  44. "_shasum": "6d15fba884c08679c0d77e88e7759e811e07fa41",
  45. "_shrinkwrap": null,
  46. "_spec": "y18n@^3.2.1",
  47. "_where": "/mnt/Data/bach/Documents/ola/OLA#4/OLA#4DOC/sys/node_modules/yargs",
  48. "author": {
  49. "name": "Ben Coe",
  50. "email": "ben@npmjs.com"
  51. },
  52. "bugs": {
  53. "url": "https://github.com/yargs/y18n/issues"
  54. },
  55. "dependencies": {},
  56. "description": "the bare-bones internationalization library used by yargs",
  57. "devDependencies": {
  58. "chai": "^3.4.1",
  59. "coveralls": "^2.11.6",
  60. "mocha": "^2.3.4",
  61. "nyc": "^6.1.1",
  62. "rimraf": "^2.5.0",
  63. "standard": "^5.4.1"
  64. },
  65. "directories": {},
  66. "dist": {
  67. "shasum": "6d15fba884c08679c0d77e88e7759e811e07fa41",
  68. "tarball": "https://registry.npmjs.org/y18n/-/y18n-3.2.1.tgz"
  69. },
  70. "files": [
  71. "index.js"
  72. ],
  73. "gitHead": "34d6ad7bfeac67721ccbcf3bbcc761f33d787c90",
  74. "homepage": "https://github.com/yargs/y18n",
  75. "keywords": [
  76. "i18n",
  77. "internationalization",
  78. "yargs"
  79. ],
  80. "license": "ISC",
  81. "main": "index.js",
  82. "maintainers": [
  83. {
  84. "name": "bcoe",
  85. "email": "ben@npmjs.com"
  86. },
  87. {
  88. "name": "nexdrew",
  89. "email": "andrew@npmjs.com"
  90. }
  91. ],
  92. "name": "y18n",
  93. "optionalDependencies": {},
  94. "readme": "# y18n\n\n[![Build Status][travis-image]][travis-url]\n[![Coverage Status][coveralls-image]][coveralls-url]\n[![NPM version][npm-image]][npm-url]\n[![js-standard-style][standard-image]][standard-url]\n\nThe bare-bones internationalization library used by yargs.\n\nInspired by [i18n](https://www.npmjs.com/package/i18n).\n\n## Examples\n\n_simple string translation:_\n\n```js\nvar __ = require('y18n').__\n\nconsole.log(__('my awesome string %s', 'foo'))\n```\n\noutput:\n\n`my awesome string foo`\n\n_pluralization support:_\n\n```js\nvar __n = require('y18n').__n\n\nconsole.log(__n('one fish %s', '%d fishes %s', 2, 'foo'))\n```\n\noutput:\n\n`2 fishes foo`\n\n## JSON Language Files\n\nThe JSON language files should be stored in a `./locales` folder.\nFile names correspond to locales, e.g., `en.json`, `pirate.json`.\n\nWhen strings are observed for the first time they will be\nadded to the JSON file corresponding to the current locale.\n\n## Methods\n\n### require('y18n')(config)\n\nCreate an instance of y18n with the config provided, options include:\n\n* `directory`: the locale directory, default `./locales`.\n* `updateFiles`: should newly observed strings be updated in file, default `true`.\n* `locale`: what locale should be used.\n* `fallbackToLanguage`: should fallback to a language-only file (e.g. `en.json`)\n be allowed if a file matching the locale does not exist (e.g. `en_US.json`),\n default `true`.\n\n### y18n.\\_\\_(str, arg, arg, arg)\n\nPrint a localized string, `%s` will be replaced with `arg`s.\n\n### y18n.\\_\\_n(singularString, pluralString, count, arg, arg, arg)\n\nPrint a localized string with appropriate pluralization. If `%d` is provided\nin the string, the `count` will replace this placeholder.\n\n### y18n.setLocale(str)\n\nSet the current locale being used.\n\n### y18n.getLocale()\n\nWhat locale is currently being used?\n\n### y18n.updateLocale(obj)\n\nUpdate the current locale with the key value pairs in `obj`.\n\n## License\n\nISC\n\n[travis-url]: https://travis-ci.org/yargs/y18n\n[travis-image]: https://img.shields.io/travis/yargs/y18n.svg\n[coveralls-url]: https://coveralls.io/github/yargs/y18n\n[coveralls-image]: https://img.shields.io/coveralls/yargs/y18n.svg\n[npm-url]: https://npmjs.org/package/y18n\n[npm-image]: https://img.shields.io/npm/v/y18n.svg\n[standard-image]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg\n[standard-url]: https://github.com/feross/standard\n",
  95. "readmeFilename": "README.md",
  96. "repository": {
  97. "type": "git",
  98. "url": "git+ssh://git@github.com/yargs/y18n.git"
  99. },
  100. "scripts": {
  101. "coverage": "nyc report --reporter=text-lcov | coveralls",
  102. "pretest": "standard",
  103. "test": "nyc mocha"
  104. },
  105. "version": "3.2.1"
  106. }