Skip to content
Myr

Remove custom JSDoc template and svgo

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Andrey Sitnik · committed by Andrey Sitnik · parent 2fc354d · Browse files · 4 files+14 added−137 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

4 files+14 added−137 removed

  • other:+14 added−137 removed

4 files+14 added−137 removed

deleted:.jsdocrc-14 removed
1{2 "plugins": [3 "plugins/markdown"4 ],5 "opts": {6 "template": "node_modules/docdash",7 "destination": "docs/"8 },9 "templates": {10 "default": {11 "includeDate": false12 }13 }14}
modified:package.json+3 added-9 removed
modified:README.md+5 added-6 removed
48 unmodified lines
49The spread will not be even; there will be a lower chance for some symbols50to appear compared to others—so it will reduce the number of tries51when brute-forcing.5253Nano ID uses a [better algorithm] and is tested for uniformity:53Nano ID uses a [better algorithm] and is tested for uniformity.5455<img src="img/distribution.png" alt="Nano ID uniformity"56 width="340" height="135">57
45 unmodified lines
103Symbols `-,.()` are not encoded in the URL. If used at the end of a link104they could be identified as a punctuation symbol.105106If you want to reduce ID length (and increase collisions probability),107you can pass the length as an argument:107you can pass the length as an argument.108109```js110nanoid(10) //=> "IRFa~VaY2b"111```
11 unmodified lines
123Security is important in ID, when ID should be unpredictable. For instance,124in “access by URL” link generation.125126If you don’t need unpredictable IDs, but you need React Native127or Web Workers support, you can use non‑secure ID generator:127or Web Workers support, you can use non‑secure ID generator.128129```js130var nanoid = require('nanoid/non-secure')131model.id = nanoid() //=> "Uakgb_J5m9g~0JDMbcJqLJ"
11 unmodified lines
143```144145Check safety of your custom alphabet and ID length146in our [ID collision probability] calculator.147You can find popular alphabets in [`nanoid-dictionary`].148149Alphabet must contain 256 symbols or less.150Otherwise, the generator will not be secure.151151You can find popular alphabets in [`nanoid-dictionary`].152152[ID collision probability]: https://alex7kom.github.io/nano-nanoid-cc/153[`nanoid-dictionary`]: https://github.com/CyberAP/nanoid-dictionary154155
17 unmodified lines
173`random` callback must accept the array size and return an array174with random numbers.175176If you want to use the same URL-friendly symbols with `format`,178you can get the default alphabet from the `url` module:177you can get the default alphabet from the `url` file.178179```js180var url = require('nanoid/url')181format(random, url, 10) //=> "93ce_Ltuub"
33 unmodified lines
modified:yarn.lock+6 added-108 removed
680 unmodified lines
681 dns-txt "^2.0.2"682 multicast-dns "^6.0.1"683 multicast-dns-service-types "^1.1.0"684685boolbase@^1.0.0, boolbase@~1.0.0:685boolbase@~1.0.0:686 version "1.0.0"687 resolved "https://registry.yarnpkg.com/boolbase/-/boolbase-1.0.0.tgz#68dff5fbe60c51eb37725ea9e3ed310dcc1e776e"688689brace-expansion@^1.1.7:
384 unmodified lines
1074co@^4.6.0:1075 version "4.6.0"1076 resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184"10771078coa@~2.0.1:1079 version "2.0.1"1080 resolved "https://registry.yarnpkg.com/coa/-/coa-2.0.1.tgz#f3f8b0b15073e35d70263fb1042cb2c023db38af"1081 dependencies:1082 q "^1.1.2"10831078code-point-at@^1.0.0:1079 version "1.1.0"1080 resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77"1081
13 unmodified lines
1095color-name@1.1.1:1096 version "1.1.1"1097 resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.1.tgz#4b1415304cf50028ea81643643bd82ea05803689"10981105colors@~1.1.2:1106 version "1.1.2"1107 resolved "https://registry.yarnpkg.com/colors/-/colors-1.1.2.tgz#168a4701756b6a7f51a12ce0c97bfa28c084ed63"11081099combined-stream@1.0.6, combined-stream@~1.0.5:1100 version "1.0.6"1101 resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.6.tgz#723e7df6e801ac5613113a7e445a9b69cb632818"1102 dependencies:
211 unmodified lines
1314 postcss-modules-values "^1.3.0"1315 postcss-value-parser "^3.3.0"1316 source-list-map "^2.0.0"13171328css-select-base-adapter@~0.1.0:1329 version "0.1.0"1330 resolved "https://registry.yarnpkg.com/css-select-base-adapter/-/css-select-base-adapter-0.1.0.tgz#0102b3d14630df86c3eb9fa9f5456270106cf990"13311318css-select@^1.1.0:1319 version "1.2.0"1320 resolved "https://registry.yarnpkg.com/css-select/-/css-select-1.2.0.tgz#2b3a110539c5355f1cd8d314623e870b121ec858"1321 dependencies:
1 unmodified line
1323 css-what "2.1"1324 domutils "1.5.1"1325 nth-check "~1.0.1"13261341css-select@~1.3.0-rc0:1342 version "1.3.0-rc0"1343 resolved "https://registry.yarnpkg.com/css-select/-/css-select-1.3.0-rc0.tgz#6f93196aaae737666ea1036a8cb14a8fcb7a9231"1344 dependencies:1345 boolbase "^1.0.0"1346 css-what "2.1"1347 domutils "1.5.1"1348 nth-check "^1.0.1"13491327css-selector-tokenizer@^0.7.0:1328 version "0.7.0"1329 resolved "https://registry.yarnpkg.com/css-selector-tokenizer/-/css-selector-tokenizer-0.7.0.tgz#e6988474ae8c953477bf5e7efecfceccd9cf4c86"1330 dependencies:1331 cssesc "^0.1.0"1332 fastparse "^1.1.1"1333 regexpu-core "^1.0.0"13341358css-tree@1.0.0-alpha.29:1359 version "1.0.0-alpha.29"1360 resolved "https://registry.yarnpkg.com/css-tree/-/css-tree-1.0.0-alpha.29.tgz#3fa9d4ef3142cbd1c301e7664c1f352bd82f5a39"1361 dependencies:1362 mdn-data "~1.1.0"1363 source-map "^0.5.3"13641365css-tree@1.0.0-alpha25:1366 version "1.0.0-alpha25"1367 resolved "https://registry.yarnpkg.com/css-tree/-/css-tree-1.0.0-alpha25.tgz#1bbfabfbf6eeef4f01d9108ff2edd0be2fe35597"1368 dependencies:1369 mdn-data "^1.0.0"1370 source-map "^0.5.3"13711372css-url-regex@^1.1.0:1373 version "1.1.0"1374 resolved "https://registry.yarnpkg.com/css-url-regex/-/css-url-regex-1.1.0.tgz#83834230cc9f74c457de59eebd1543feeb83b7ec"13751335css-what@2.1:1336 version "2.1.0"1337 resolved "https://registry.yarnpkg.com/css-what/-/css-what-2.1.0.tgz#9467d032c38cfaefb9f2d79501253062f87fa1bd"13381339cssesc@^0.1.0:1340 version "0.1.0"1341 resolved "https://registry.yarnpkg.com/cssesc/-/cssesc-0.1.0.tgz#c814903e45623371a0477b40109aaafbeeaddbb4"13421384csso@^3.5.0:1385 version "3.5.1"1386 resolved "https://registry.yarnpkg.com/csso/-/csso-3.5.1.tgz#7b9eb8be61628973c1b261e169d2f024008e758b"1387 dependencies:1388 css-tree "1.0.0-alpha.29"13891343cssom@0.3.x, "cssom@>= 0.3.2 < 0.4.0":1344 version "0.3.4"1345 resolved "https://registry.yarnpkg.com/cssom/-/cssom-0.3.4.tgz#8cd52e8a3acfd68d3aed38ee0a640177d2f9d797"1346
224 unmodified lines
1571 resolved "https://registry.yarnpkg.com/dns-txt/-/dns-txt-2.0.2.tgz#b91d806f5d27188e4ab3e7d107d881a1cc4642b6"1572 dependencies:1573 buffer-indexof "^1.0.0"15741622docdash@^0.4.0:1623 version "0.4.0"1624 resolved "https://registry.yarnpkg.com/docdash/-/docdash-0.4.0.tgz#05c3a50d83189981699ee0c076d3a3950db7ec00"16251575doctrine@1.5.0:1576 version "1.5.0"1577 resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-1.5.0.tgz#379dce730f6166f76cefa4e6707a159b02c5a6fa"1578 dependencies:
136 unmodified lines
1715 resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.2.tgz#b4ac40648107fdcdcfae242f428bea8a14d4f1bf"1716 dependencies:1717 is-arrayish "^0.2.1"17181770es-abstract@^1.10.0, es-abstract@^1.5.1, es-abstract@^1.6.1, es-abstract@^1.7.0:1719es-abstract@^1.10.0, es-abstract@^1.5.1, es-abstract@^1.7.0:1720 version "1.12.0"1721 resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.12.0.tgz#9dbbdd27c6856f0001421ca18782d786bf8a6165"1722 dependencies:1723 es-to-primitive "^1.1.1"
681 unmodified lines
2405 dependencies:2406 nan "^2.9.2"2407 node-pre-gyp "^0.10.0"24082460function-bind@^1.1.0, function-bind@^1.1.1:2409function-bind@^1.1.1:2410 version "1.1.1"2411 resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d"24122413functional-red-black-tree@^1.0.1:
1153 unmodified lines
3567 dependencies:3568 argparse "^1.0.7"3569 esprima "^4.0.0"35703622js-yaml@~3.10.0:3623 version "3.10.0"3624 resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.10.0.tgz#2e78441646bd4682e963f22b6e92823c309c62dc"3625 dependencies:3626 argparse "^1.0.7"3627 esprima "^4.0.0"36283571js2xmlparser@~3.0.0:3572 version "3.0.0"3573 resolved "https://registry.yarnpkg.com/js2xmlparser/-/js2xmlparser-3.0.0.tgz#3fb60eaa089c5440f9319f51760ccd07e2499733"3574 dependencies:
423 unmodified lines
3998 dependencies:3999 hash-base "^3.0.0"4000 inherits "^2.0.1"40014060mdn-data@^1.0.0, mdn-data@~1.1.0:4061 version "1.1.4"4062 resolved "https://registry.yarnpkg.com/mdn-data/-/mdn-data-1.1.4.tgz#50b5d4ffc4575276573c4eedb8780812a8419f01"40634002media-typer@0.3.0:4003 version "0.3.0"4004 resolved "https://registry.yarnpkg.com/media-typer/-/media-typer-0.3.0.tgz#8710d7af0aa626f8fffa1ce00168545263255748"4005
414 unmodified lines
4420 console-control-strings "~1.1.0"4421 gauge "~2.7.3"4422 set-blocking "~2.0.0"44234486nth-check@^1.0.1, nth-check@~1.0.1:4424nth-check@~1.0.1:4425 version "1.0.1"4426 resolved "https://registry.yarnpkg.com/nth-check/-/nth-check-1.0.1.tgz#9929acdf628fc2c41098deab82ac580cf149aae4"4427 dependencies:4428 boolbase "~1.0.0"
60 unmodified lines
4489 resolved "https://registry.yarnpkg.com/object.pick/-/object.pick-1.3.0.tgz#87a10ac4c1694bd2e1cbf53591a66141fb5dd747"4490 dependencies:4491 isobject "^3.0.1"44924555object.values@^1.0.4:4556 version "1.0.4"4557 resolved "https://registry.yarnpkg.com/object.values/-/object.values-1.0.4.tgz#e524da09b4f66ff05df457546ec72ac99f13069a"4558 dependencies:4559 define-properties "^1.1.2"4560 es-abstract "^1.6.1"4561 function-bind "^1.1.0"4562 has "^1.0.1"45634493obuf@^1.0.0, obuf@^1.1.1:4494 version "1.1.2"4495 resolved "https://registry.yarnpkg.com/obuf/-/obuf-1.1.2.tgz#09bea3343d41859ebd446292d11c9d4db619084e"4496
509 unmodified lines
5006punycode@^2.1.0:5007 version "2.1.1"5008 resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.1.1.tgz#b58b010ac40c22c5657616c8d2c2c02c7bf479ec"50095081q@^1.1.2:5082 version "1.5.1"5083 resolved "https://registry.yarnpkg.com/q/-/q-1.5.1.tgz#7e32f75b41381291d04611f1bf14109ac00651d7"50845010qs@6.5.1:5011 version "6.5.1"5012 resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.1.tgz#349cdf6eef89ec45c12d7d5eb3fc0c870343a6d8"5013
414 unmodified lines
5428 watch "~0.18.0"5429 optionalDependencies:5430 fsevents "^1.2.3"54315507sax@>=0.6.0, sax@^1.2.4, sax@~1.2.4:5432sax@>=0.6.0, sax@^1.2.4:5433 version "1.2.4"5434 resolved "https://registry.yarnpkg.com/sax/-/sax-1.2.4.tgz#2816234e2378bddc4e5354fab5caa895df7100d9"54355436schema-utils@^0.4.4, schema-utils@^0.4.5:
362 unmodified lines
5799 resolved "https://registry.yarnpkg.com/ssri/-/ssri-5.3.0.tgz#ba3872c9c6d33a0704a7d71ff045e5ec48999d06"5800 dependencies:5801 safe-buffer "^5.1.1"58025878stable@~0.1.6:5879 version "0.1.8"5880 resolved "https://registry.yarnpkg.com/stable/-/stable-0.1.8.tgz#836eb3c8382fe2936feaf544631017ce7d47a3cf"58815803stack-utils@^1.0.1:5804 version "1.0.1"5805 resolved "https://registry.yarnpkg.com/stack-utils/-/stack-utils-1.0.1.tgz#d4f33ab54e8e38778b0ca5cfd3b3afb12db68620"5806
160 unmodified lines
5967 resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.4.0.tgz#1c6b337402c2137605efe19f10fec390f6faab54"5968 dependencies:5969 has-flag "^3.0.0"59706050svgo@^1.0.5:6051 version "1.0.5"6052 resolved "https://registry.yarnpkg.com/svgo/-/svgo-1.0.5.tgz#7040364c062a0538abacff4401cea6a26a7a389a"6053 dependencies:6054 coa "~2.0.1"6055 colors "~1.1.2"6056 css-select "~1.3.0-rc0"6057 css-select-base-adapter "~0.1.0"6058 css-tree "1.0.0-alpha25"6059 css-url-regex "^1.1.0"6060 csso "^3.5.0"6061 js-yaml "~3.10.0"6062 mkdirp "~0.5.1"6063 object.values "^1.0.4"6064 sax "~1.2.4"6065 stable "~0.1.6"6066 unquote "~1.1.1"6067 util.promisify "~1.0.0"60685971symbol-observable@1.0.1:5972 version "1.0.1"5973 resolved "https://registry.yarnpkg.com/symbol-observable/-/symbol-observable-1.0.1.tgz#8340fc4702c3122df5d22288f88283f513d3fdd4"5974
288 unmodified lines
6263unpipe@1.0.0, unpipe@~1.0.0:6264 version "1.0.0"6265 resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec"62666365unquote@~1.1.1:6366 version "1.1.1"6367 resolved "https://registry.yarnpkg.com/unquote/-/unquote-1.1.1.tgz#8fded7324ec6e88a0ff8b905e7c098cdc086d544"63686267unset-value@^1.0.0:6268 version "1.0.0"6269 resolved "https://registry.yarnpkg.com/unset-value/-/unset-value-1.0.0.tgz#8376873f7d2335179ffb1e6fc3a8ed0dfc8ab559"6270 dependencies:
43 unmodified lines
6314util-deprecate@~1.0.1:6315 version "1.0.2"6316 resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf"63176420util.promisify@1.0.0, util.promisify@^1.0.0, util.promisify@~1.0.0:6318util.promisify@1.0.0, util.promisify@^1.0.0:6319 version "1.0.0"6320 resolved "https://registry.yarnpkg.com/util.promisify/-/util.promisify-1.0.0.tgz#440f7165a459c9a16dc145eb8e72f35687097030"6321 dependencies:6322 define-properties "^1.1.2"
497 unmodified lines