Simple email application for Android. Original source code: https://framagit.org/dystopia-project/simple-email
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

100 lines
7.7 KiB

  1. <!doctype html>
  2. <html>
  3. <title>npm-registry</title>
  4. <meta charset="utf-8">
  5. <link rel="stylesheet" type="text/css" href="../../static/style.css">
  6. <link rel="canonical" href="https://www.npmjs.org/doc/misc/npm-registry.html">
  7. <script async=true src="../../static/toc.js"></script>
  8. <body>
  9. <div id="wrapper">
  10. <h1><a href="../misc/npm-registry.html">npm-registry</a></h1> <p>The JavaScript Package Registry</p>
  11. <h2 id="description">DESCRIPTION</h2>
  12. <p>To resolve packages by name and version, npm talks to a registry website
  13. that implements the CommonJS Package Registry specification for reading
  14. package info.</p>
  15. <p>npm is configured to use npm, Inc.&#39;s public registry at
  16. <a href="https://registry.npmjs.org">https://registry.npmjs.org</a> by default. Use of the npm public registry is
  17. subject to terms of use available at <a href="https://www.npmjs.com/policies/terms">https://www.npmjs.com/policies/terms</a>.</p>
  18. <p>You can configure npm to use any compatible registry you like, and even run
  19. your own registry. Use of someone else&#39;s registry may be governed by their
  20. terms of use.</p>
  21. <p>npm&#39;s package registry implementation supports several
  22. write APIs as well, to allow for publishing packages and managing user
  23. account information.</p>
  24. <p>The npm public registry is powered by a CouchDB database,
  25. of which there is a public mirror at
  26. <a href="https://skimdb.npmjs.com/registry">https://skimdb.npmjs.com/registry</a>. The code for the couchapp is
  27. available at <a href="https://github.com/npm/npm-registry-couchapp">https://github.com/npm/npm-registry-couchapp</a>.</p>
  28. <p>The registry URL used is determined by the scope of the package (see
  29. <code><a href="../misc/npm-scope.html">npm-scope(7)</a></code>). If no scope is specified, the default registry is used, which is
  30. supplied by the <code>registry</code> config parameter. See <code><a href="../cli/npm-config.html">npm-config(1)</a></code>,
  31. <code><a href="../files/npmrc.html">npmrc(5)</a></code>, and <code><a href="../misc/npm-config.html">npm-config(7)</a></code> for more on managing npm&#39;s configuration.</p>
  32. <h2 id="does-npm-send-any-information-about-me-back-to-the-registry-">Does npm send any information about me back to the registry?</h2>
  33. <p>Yes.</p>
  34. <p>When making requests of the registry npm adds two headers with information
  35. about your environment:</p>
  36. <ul>
  37. <li><code>Npm-Scope</code> – If your project is scoped, this header will contain its
  38. scope. In the future npm hopes to build registry features that use this
  39. information to allow you to customize your experience for your
  40. organization.</li>
  41. <li><code>Npm-In-CI</code> – Set to &quot;true&quot; if npm believes this install is running in a
  42. continous integration environment, &quot;false&quot; otherwise. This is detected by
  43. looking for the following environment variables: <code>CI</code>, <code>TDDIUM</code>,
  44. <code>JENKINS_URL</code>, <code>bamboo.buildKey</code>. If you&#39;d like to learn more you may find
  45. the <a href="https://github.com/npm/npm-registry-client/pull/129">original PR</a>
  46. interesting.
  47. This is used to gather better metrics on how npm is used by humans, versus
  48. build farms.</li>
  49. </ul>
  50. <p>The npm registry does not try to correlate the information in these headers
  51. with any authenticated accounts that may be used in the same requests.</p>
  52. <h2 id="can-i-run-my-own-private-registry-">Can I run my own private registry?</h2>
  53. <p>Yes!</p>
  54. <p>The easiest way is to replicate the couch database, and use the same (or
  55. similar) design doc to implement the APIs.</p>
  56. <p>If you set up continuous replication from the official CouchDB, and then
  57. set your internal CouchDB as the registry config, then you&#39;ll be able
  58. to read any published packages, in addition to your private ones, and by
  59. default will only publish internally. </p>
  60. <p>If you then want to publish a package for the whole world to see, you can
  61. simply override the <code>--registry</code> option for that <code>publish</code> command.</p>
  62. <h2 id="i-don-t-want-my-package-published-in-the-official-registry-it-s-private-">I don&#39;t want my package published in the official registry. It&#39;s private.</h2>
  63. <p>Set <code>&quot;private&quot;: true</code> in your package.json to prevent it from being
  64. published at all, or
  65. <code>&quot;publishConfig&quot;:{&quot;registry&quot;:&quot;http://my-internal-registry.local&quot;}</code>
  66. to force it to be published only to your internal registry.</p>
  67. <p>See <code><a href="../files/package.json.html">package.json(5)</a></code> for more info on what goes in the package.json file.</p>
  68. <h2 id="will-you-replicate-from-my-registry-into-the-public-one-">Will you replicate from my registry into the public one?</h2>
  69. <p>No. If you want things to be public, then publish them into the public
  70. registry using npm. What little security there is would be for nought
  71. otherwise.</p>
  72. <h2 id="do-i-have-to-use-couchdb-to-build-a-registry-that-npm-can-talk-to-">Do I have to use couchdb to build a registry that npm can talk to?</h2>
  73. <p>No, but it&#39;s way easier. Basically, yes, you do, or you have to
  74. effectively implement the entire CouchDB API anyway.</p>
  75. <h2 id="is-there-a-website-or-something-to-see-package-docs-and-such-">Is there a website or something to see package docs and such?</h2>
  76. <p>Yes, head over to <a href="https://www.npmjs.com/">https://www.npmjs.com/</a></p>
  77. <h2 id="see-also">SEE ALSO</h2>
  78. <ul>
  79. <li><a href="../cli/npm-config.html">npm-config(1)</a></li>
  80. <li><a href="../misc/npm-config.html">npm-config(7)</a></li>
  81. <li><a href="../files/npmrc.html">npmrc(5)</a></li>
  82. <li><a href="../misc/npm-developers.html">npm-developers(7)</a></li>
  83. <li><a href="../misc/npm-disputes.html">npm-disputes(7)</a></li>
  84. </ul>
  85. </div>
  86. <table border=0 cellspacing=0 cellpadding=0 id=npmlogo>
  87. <tr><td style="width:180px;height:10px;background:rgb(237,127,127)" colspan=18>&nbsp;</td></tr>
  88. <tr><td rowspan=4 style="width:10px;height:10px;background:rgb(237,127,127)">&nbsp;</td><td style="width:40px;height:10px;background:#fff" colspan=4>&nbsp;</td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=4>&nbsp;</td><td style="width:40px;height:10px;background:#fff" colspan=4>&nbsp;</td><td rowspan=4 style="width:10px;height:10px;background:rgb(237,127,127)">&nbsp;</td><td colspan=6 style="width:60px;height:10px;background:#fff">&nbsp;</td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=4>&nbsp;</td></tr>
  89. <tr><td colspan=2 style="width:20px;height:30px;background:#fff" rowspan=3>&nbsp;</td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=3>&nbsp;</td><td style="width:10px;height:10px;background:#fff" rowspan=3>&nbsp;</td><td style="width:20px;height:10px;background:#fff" rowspan=4 colspan=2>&nbsp;</td><td style="width:10px;height:20px;background:rgb(237,127,127)" rowspan=2>&nbsp;</td><td style="width:10px;height:10px;background:#fff" rowspan=3>&nbsp;</td><td style="width:20px;height:10px;background:#fff" rowspan=3 colspan=2>&nbsp;</td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=3>&nbsp;</td><td style="width:10px;height:10px;background:#fff" rowspan=3>&nbsp;</td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=3>&nbsp;</td></tr>
  90. <tr><td style="width:10px;height:10px;background:#fff" rowspan=2>&nbsp;</td></tr>
  91. <tr><td style="width:10px;height:10px;background:#fff">&nbsp;</td></tr>
  92. <tr><td style="width:60px;height:10px;background:rgb(237,127,127)" colspan=6>&nbsp;</td><td colspan=10 style="width:10px;height:10px;background:rgb(237,127,127)">&nbsp;</td></tr>
  93. <tr><td colspan=5 style="width:50px;height:10px;background:#fff">&nbsp;</td><td style="width:40px;height:10px;background:rgb(237,127,127)" colspan=4>&nbsp;</td><td style="width:90px;height:10px;background:#fff" colspan=9>&nbsp;</td></tr>
  94. </table>
  95. <p id="footer">npm-registry &mdash; npm@6.4.1</p>