chancets2 1.1.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (165) hide show
  1. package/.bowerrc +4 -0
  2. package/.eslintignore +4 -0
  3. package/.eslintrc.js +280 -0
  4. package/.github/workflows/coverage.yml +24 -0
  5. package/.github/workflows/docs.yml +34 -0
  6. package/.github/workflows/lint.yml +18 -0
  7. package/.github/workflows/publish.yml +53 -0
  8. package/.github/workflows/tests.yml +23 -0
  9. package/LICENSE +21 -0
  10. package/README.md +59 -0
  11. package/bower.json +22 -0
  12. package/chance.js +16167 -0
  13. package/dist/chance.min.js +2 -0
  14. package/dist/chance.min.js.map +1 -0
  15. package/docs/CNAME +1 -0
  16. package/docs/README.md +127 -0
  17. package/docs/analytics.js +3 -0
  18. package/docs/basics/bool.md +24 -0
  19. package/docs/basics/character.md +65 -0
  20. package/docs/basics/falsy.md +22 -0
  21. package/docs/basics/floating.md +44 -0
  22. package/docs/basics/integer.md +42 -0
  23. package/docs/basics/letter.md +25 -0
  24. package/docs/basics/natural.md +47 -0
  25. package/docs/basics/prime.md +41 -0
  26. package/docs/basics/string.md +77 -0
  27. package/docs/basics/template.md +27 -0
  28. package/docs/chance.css +108 -0
  29. package/docs/chance.js +7493 -0
  30. package/docs/chance.min.js +5 -0
  31. package/docs/chance.min.js.map +1 -0
  32. package/docs/finance/cc.md +37 -0
  33. package/docs/finance/cc_type.md +42 -0
  34. package/docs/finance/currency.md +13 -0
  35. package/docs/finance/currency_pair.md +13 -0
  36. package/docs/finance/dollar.md +30 -0
  37. package/docs/finance/euro.md +28 -0
  38. package/docs/finance/exp.md +21 -0
  39. package/docs/finance/exp_month.md +28 -0
  40. package/docs/finance/exp_year.md +15 -0
  41. package/docs/helpers/capitalize.md +13 -0
  42. package/docs/helpers/mixin.md +90 -0
  43. package/docs/helpers/pad.md +40 -0
  44. package/docs/helpers/pick.md +9 -0
  45. package/docs/helpers/pickone.md +13 -0
  46. package/docs/helpers/pickset.md +20 -0
  47. package/docs/helpers/set.md +23 -0
  48. package/docs/helpers/shuffle.md +13 -0
  49. package/docs/inspector.png +0 -0
  50. package/docs/intro.md +56 -0
  51. package/docs/location/address.md +21 -0
  52. package/docs/location/altitude.md +29 -0
  53. package/docs/location/areacode.md +16 -0
  54. package/docs/location/city.md +13 -0
  55. package/docs/location/coordinates.md +34 -0
  56. package/docs/location/country.md +23 -0
  57. package/docs/location/depth.md +29 -0
  58. package/docs/location/geohash.md +21 -0
  59. package/docs/location/latitude.md +43 -0
  60. package/docs/location/locale.md +25 -0
  61. package/docs/location/longitude.md +43 -0
  62. package/docs/location/phone.md +48 -0
  63. package/docs/location/postal.md +13 -0
  64. package/docs/location/postcode.md +13 -0
  65. package/docs/location/province.md +33 -0
  66. package/docs/location/state.md +62 -0
  67. package/docs/location/street.md +37 -0
  68. package/docs/location/zip.md +23 -0
  69. package/docs/logo.png +0 -0
  70. package/docs/miscellaneous/coin.md +16 -0
  71. package/docs/miscellaneous/dice.md +29 -0
  72. package/docs/miscellaneous/fileWithContent.md +36 -0
  73. package/docs/miscellaneous/guid.md +16 -0
  74. package/docs/miscellaneous/hash.md +35 -0
  75. package/docs/miscellaneous/hidden.md +59 -0
  76. package/docs/miscellaneous/n.md +35 -0
  77. package/docs/miscellaneous/normal.md +35 -0
  78. package/docs/miscellaneous/radio.md +27 -0
  79. package/docs/miscellaneous/rpg.md +25 -0
  80. package/docs/miscellaneous/tv.md +25 -0
  81. package/docs/miscellaneous/unique.md +47 -0
  82. package/docs/miscellaneous/weighted.md +55 -0
  83. package/docs/mobile/android_id.md +13 -0
  84. package/docs/mobile/apple_token.md +13 -0
  85. package/docs/mobile/bb_pin.md +13 -0
  86. package/docs/mobile/wp7_anid.md +13 -0
  87. package/docs/mobile/wp8_anid2.md +13 -0
  88. package/docs/music/music_genre.md +43 -0
  89. package/docs/music/note.md +33 -0
  90. package/docs/music/tempo.md +24 -0
  91. package/docs/person/aadhar.md +31 -0
  92. package/docs/person/age.md +25 -0
  93. package/docs/person/birthday.md +63 -0
  94. package/docs/person/cf.md +23 -0
  95. package/docs/person/cpf.md +20 -0
  96. package/docs/person/first.md +31 -0
  97. package/docs/person/gender.md +21 -0
  98. package/docs/person/last.md +23 -0
  99. package/docs/person/name.md +63 -0
  100. package/docs/person/prefix.md +35 -0
  101. package/docs/person/ssn.md +29 -0
  102. package/docs/person/suffix.md +25 -0
  103. package/docs/person/zodiac.md +12 -0
  104. package/docs/text/paragraph.md +39 -0
  105. package/docs/text/sentence.md +28 -0
  106. package/docs/text/syllable.md +18 -0
  107. package/docs/text/word.md +54 -0
  108. package/docs/thing/animal.md +25 -0
  109. package/docs/time/ampm.md +13 -0
  110. package/docs/time/date.md +66 -0
  111. package/docs/time/hammertime.md +25 -0
  112. package/docs/time/hour.md +27 -0
  113. package/docs/time/millisecond.md +15 -0
  114. package/docs/time/minute.md +15 -0
  115. package/docs/time/month.md +23 -0
  116. package/docs/time/second.md +15 -0
  117. package/docs/time/timestamp.md +14 -0
  118. package/docs/time/timezone.md +20 -0
  119. package/docs/time/weekday.md +16 -0
  120. package/docs/time/year.md +31 -0
  121. package/docs/usage/bower.md +19 -0
  122. package/docs/usage/browser.md +58 -0
  123. package/docs/usage/cli.md +19 -0
  124. package/docs/usage/function.md +22 -0
  125. package/docs/usage/node.md +50 -0
  126. package/docs/usage/requirejs.md +13 -0
  127. package/docs/usage/seed.md +49 -0
  128. package/docs/web/avatar.md +42 -0
  129. package/docs/web/color.md +54 -0
  130. package/docs/web/company.md +13 -0
  131. package/docs/web/domain.md +22 -0
  132. package/docs/web/email.md +21 -0
  133. package/docs/web/fbid.md +13 -0
  134. package/docs/web/google_analytics.md +13 -0
  135. package/docs/web/hashtag.md +13 -0
  136. package/docs/web/ip.md +14 -0
  137. package/docs/web/ipv6.md +14 -0
  138. package/docs/web/klout.md +13 -0
  139. package/docs/web/mac.md +22 -0
  140. package/docs/web/profession.md +21 -0
  141. package/docs/web/tld.md +16 -0
  142. package/docs/web/twitter.md +13 -0
  143. package/docs/web/url.md +53 -0
  144. package/gulpfile.js +49 -0
  145. package/index.d.ts +339 -0
  146. package/package.json +85 -0
  147. package/test/helpers/phoneNumber.min.js +6 -0
  148. package/test/test.address.js +756 -0
  149. package/test/test.animal.js +40 -0
  150. package/test/test.basic.js +564 -0
  151. package/test/test.buffer.js +31 -0
  152. package/test/test.company.js +15 -0
  153. package/test/test.file.js +116 -0
  154. package/test/test.fileWithContent.js +54 -0
  155. package/test/test.finance.js +220 -0
  156. package/test/test.helpers.js +433 -0
  157. package/test/test.misc.js +298 -0
  158. package/test/test.mobile.js +29 -0
  159. package/test/test.music.js +100 -0
  160. package/test/test.normal.js +114 -0
  161. package/test/test.person.js +507 -0
  162. package/test/test.regional.js +116 -0
  163. package/test/test.text.js +123 -0
  164. package/test/test.time.js +300 -0
  165. package/test/test.web.js +618 -0
package/.bowerrc ADDED
@@ -0,0 +1,4 @@
1
+
2
+ {
3
+ "directory": "test/lib"
4
+ }
package/.eslintignore ADDED
@@ -0,0 +1,4 @@
1
+ node_modules/
2
+ docs/
3
+ test/
4
+ dist/
package/.eslintrc.js ADDED
@@ -0,0 +1,280 @@
1
+ module.exports = {
2
+ "env": {
3
+ "browser": true,
4
+ "es6": true,
5
+ "node": true
6
+ },
7
+ "extends": "eslint:recommended",
8
+ "globals": {
9
+ "Atomics": "readonly",
10
+ "SharedArrayBuffer": "readonly",
11
+ "define": "writable",
12
+ "chance": "writable"
13
+ },
14
+ "parserOptions": {
15
+ "ecmaVersion": 2018
16
+ },
17
+ "rules": {
18
+ "accessor-pairs": "error",
19
+ "array-bracket-newline": "off",
20
+ "array-bracket-spacing": "off",
21
+ "array-callback-return": "error",
22
+ "array-element-newline": "off",
23
+ "arrow-body-style": "error",
24
+ "arrow-parens": "error",
25
+ "arrow-spacing": "error",
26
+ "block-scoped-var": "off",
27
+ "block-spacing": "off",
28
+ "brace-style": "off",
29
+ "callback-return": "error",
30
+ "camelcase": "off",
31
+ "capitalized-comments": "off",
32
+ "class-methods-use-this": "error",
33
+ "comma-dangle": "off",
34
+ "comma-spacing": "off",
35
+ "comma-style": [
36
+ "error",
37
+ "last"
38
+ ],
39
+ "complexity": "off",
40
+ "computed-property-spacing": [
41
+ "error",
42
+ "never"
43
+ ],
44
+ "consistent-return": "off",
45
+ "consistent-this": "off",
46
+ "curly": "error",
47
+ "default-case": "off",
48
+ "dot-location": [
49
+ "error",
50
+ "property"
51
+ ],
52
+ "dot-notation": "error",
53
+ "eol-last": "error",
54
+ "eqeqeq": "error",
55
+ "func-call-spacing": "off",
56
+ "func-name-matching": "error",
57
+ "func-names": "off",
58
+ "func-style": "off",
59
+ "function-call-argument-newline": [
60
+ "error",
61
+ "consistent"
62
+ ],
63
+ "function-paren-newline": "error",
64
+ "generator-star-spacing": "error",
65
+ "global-require": "error",
66
+ "guard-for-in": "off",
67
+ "handle-callback-err": "error",
68
+ "id-blacklist": "error",
69
+ "id-length": "off",
70
+ "id-match": "error",
71
+ "implicit-arrow-linebreak": "error",
72
+ "indent": "off",
73
+ "indent-legacy": "off",
74
+ "init-declarations": "off",
75
+ "jsx-quotes": "error",
76
+ "key-spacing": "off",
77
+ "keyword-spacing": "off",
78
+ "line-comment-position": "off",
79
+ "linebreak-style": [
80
+ "error",
81
+ "unix"
82
+ ],
83
+ "lines-around-comment": "off",
84
+ "lines-around-directive": "error",
85
+ "lines-between-class-members": "error",
86
+ "max-classes-per-file": "error",
87
+ "max-depth": "error",
88
+ "max-len": "off",
89
+ "max-lines": "off",
90
+ "max-lines-per-function": "off",
91
+ "max-nested-callbacks": "error",
92
+ "max-params": "off",
93
+ "max-statements": "off",
94
+ "max-statements-per-line": "off",
95
+ "multiline-comment-style": "off",
96
+ "multiline-ternary": [
97
+ "error",
98
+ "always-multiline"
99
+ ],
100
+ "new-cap": "error",
101
+ "new-parens": "error",
102
+ "newline-after-var": "off",
103
+ "newline-before-return": "off",
104
+ "newline-per-chained-call": "off",
105
+ "no-alert": "error",
106
+ "no-array-constructor": "off",
107
+ "no-await-in-loop": "error",
108
+ "no-bitwise": "off",
109
+ "no-buffer-constructor": "off",
110
+ "no-caller": "error",
111
+ "no-catch-shadow": "error",
112
+ "no-confusing-arrow": "error",
113
+ "no-console": "error",
114
+ "no-continue": "error",
115
+ "no-div-regex": "error",
116
+ "no-duplicate-imports": "error",
117
+ "no-else-return": "off",
118
+ "no-empty-function": "off",
119
+ "no-eq-null": "error",
120
+ "no-eval": "error",
121
+ "no-extend-native": "error",
122
+ "no-extra-bind": "error",
123
+ "no-extra-boolean-cast": "off",
124
+ "no-extra-label": "error",
125
+ "no-extra-parens": "off",
126
+ "no-floating-decimal": "error",
127
+ "no-implicit-coercion": [
128
+ "error",
129
+ {
130
+ "boolean": false,
131
+ "number": false,
132
+ "string": false
133
+ }
134
+ ],
135
+ "no-implicit-globals": "off",
136
+ "no-implied-eval": "error",
137
+ "no-inline-comments": "off",
138
+ "no-inner-declarations": [
139
+ "error",
140
+ "functions"
141
+ ],
142
+ "no-invalid-this": "error",
143
+ "no-iterator": "error",
144
+ "no-label-var": "error",
145
+ "no-labels": "error",
146
+ "no-lone-blocks": "error",
147
+ "no-lonely-if": "off",
148
+ "no-loop-func": "error",
149
+ "no-magic-numbers": "off",
150
+ "no-mixed-operators": "off",
151
+ "no-mixed-requires": "error",
152
+ "no-multi-assign": "off",
153
+ "no-multi-spaces": "off",
154
+ "no-multi-str": "error",
155
+ "no-multiple-empty-lines": "error",
156
+ "no-native-reassign": "error",
157
+ "no-negated-condition": "off",
158
+ "no-negated-in-lhs": "error",
159
+ "no-nested-ternary": "off",
160
+ "no-new": "error",
161
+ "no-new-func": "error",
162
+ "no-new-object": "error",
163
+ "no-new-require": "error",
164
+ "no-new-wrappers": "error",
165
+ "no-octal-escape": "error",
166
+ "no-param-reassign": "off",
167
+ "no-path-concat": "error",
168
+ "no-plusplus": "off",
169
+ "no-process-env": "error",
170
+ "no-process-exit": "error",
171
+ "no-proto": "error",
172
+ "no-restricted-globals": "error",
173
+ "no-restricted-imports": "error",
174
+ "no-restricted-modules": "error",
175
+ "no-restricted-properties": "error",
176
+ "no-restricted-syntax": "error",
177
+ "no-return-assign": "error",
178
+ "no-return-await": "error",
179
+ "no-script-url": "error",
180
+ "no-self-compare": "error",
181
+ "no-sequences": "error",
182
+ "no-shadow": "off",
183
+ "no-spaced-func": "off",
184
+ "no-sync": "error",
185
+ "no-tabs": [
186
+ "error",
187
+ {
188
+ "allowIndentationTabs": true
189
+ }
190
+ ],
191
+ "no-template-curly-in-string": "error",
192
+ "no-ternary": "off",
193
+ "no-throw-literal": "error",
194
+ "no-trailing-spaces": "error",
195
+ "no-undef-init": "error",
196
+ "no-undefined": "off",
197
+ "no-underscore-dangle": "off",
198
+ "no-unmodified-loop-condition": "error",
199
+ "no-unneeded-ternary": "error",
200
+ "no-unused-expressions": "error",
201
+ "no-use-before-define": "off",
202
+ "no-useless-call": "error",
203
+ "no-useless-computed-key": "error",
204
+ "no-useless-concat": "error",
205
+ "no-useless-constructor": "error",
206
+ "no-useless-rename": "error",
207
+ "no-useless-return": "error",
208
+ "no-var": "off",
209
+ "no-void": "error",
210
+ "no-warning-comments": "off",
211
+ "no-whitespace-before-property": "error",
212
+ "nonblock-statement-body-position": "error",
213
+ "object-curly-newline": "error",
214
+ "object-curly-spacing": "off",
215
+ "object-shorthand": "off",
216
+ "one-var": "off",
217
+ "one-var-declaration-per-line": "off",
218
+ "operator-assignment": "off",
219
+ "operator-linebreak": [
220
+ "error",
221
+ "after"
222
+ ],
223
+ "padded-blocks": "off",
224
+ "padding-line-between-statements": "error",
225
+ "prefer-arrow-callback": "off",
226
+ "prefer-const": "error",
227
+ "prefer-destructuring": "off",
228
+ "prefer-named-capture-group": "error",
229
+ "prefer-numeric-literals": "error",
230
+ "prefer-object-spread": "error",
231
+ "prefer-promise-reject-errors": "error",
232
+ "prefer-reflect": "off",
233
+ "prefer-rest-params": "off",
234
+ "prefer-spread": "off",
235
+ "prefer-template": "off",
236
+ "quote-props": "off",
237
+ "quotes": "off",
238
+ "radix": "off",
239
+ "require-await": "error",
240
+ "require-jsdoc": "off",
241
+ "require-unicode-regexp": "off",
242
+ "rest-spread-spacing": "error",
243
+ "semi": "off",
244
+ "semi-spacing": "off",
245
+ "semi-style": "off",
246
+ "sort-imports": "error",
247
+ "sort-keys": "off",
248
+ "sort-vars": "off",
249
+ "space-before-blocks": "off",
250
+ "space-before-function-paren": "off",
251
+ "space-in-parens": "off",
252
+ "space-infix-ops": "off",
253
+ "space-unary-ops": "error",
254
+ "spaced-comment": "off",
255
+ "strict": [
256
+ "error",
257
+ "never"
258
+ ],
259
+ "switch-colon-spacing": "error",
260
+ "symbol-description": "error",
261
+ "template-curly-spacing": "error",
262
+ "template-tag-spacing": "error",
263
+ "unicode-bom": [
264
+ "error",
265
+ "never"
266
+ ],
267
+ "valid-jsdoc": "off",
268
+ "vars-on-top": "off",
269
+ "wrap-iife": [
270
+ "error",
271
+ "any"
272
+ ],
273
+ "wrap-regex": "off",
274
+ "yield-star-spacing": "error",
275
+ "yoda": [
276
+ "error",
277
+ "never"
278
+ ]
279
+ }
280
+ };
@@ -0,0 +1,24 @@
1
+ name: Code Coverage
2
+
3
+ on: [push, pull_request]
4
+
5
+ jobs:
6
+ build:
7
+ runs-on: ubuntu-latest
8
+ steps:
9
+ - uses: actions/checkout@v1
10
+ - name: Use Node.js 10.x
11
+ uses: actions/setup-node@v1
12
+ with:
13
+ node-version: 10.x
14
+ - name: install and coverage
15
+ run: |
16
+ yarn
17
+ yarn coverage
18
+ env:
19
+ CI: true
20
+
21
+ - name: Coveralls
22
+ uses: coverallsapp/github-action@master
23
+ with:
24
+ github-token: ${{ secrets.github_token }}
@@ -0,0 +1,34 @@
1
+ name: Documentation
2
+
3
+ on:
4
+ pull_request:
5
+ branches:
6
+ - master
7
+ paths:
8
+ - 'docs/**/*'
9
+ push:
10
+ branches:
11
+ - master
12
+ paths:
13
+ - 'docs/**/*'
14
+
15
+ jobs:
16
+ build:
17
+ runs-on: ubuntu-latest
18
+ steps:
19
+ - uses: actions/checkout@v1
20
+ - uses: actions/setup-node@v1
21
+ with:
22
+ node-version: 12
23
+ - name: build and deploy
24
+ if: github.event_name == 'pull_request' && github.event.pull_request.merged == 'true'
25
+ run: |
26
+ yarn
27
+ yarn docs
28
+ yarn docs:publish
29
+ env:
30
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31
+ GITHUB_REPO: chancejs/chancejs
32
+ GIT_NAME: Travis CI
33
+ GIT_EMAIL: mail@victorquinn.ocm
34
+ GIT_SOURCE: _docpress
@@ -0,0 +1,18 @@
1
+ name: Lint
2
+
3
+ on: [push, pull_request]
4
+
5
+ jobs:
6
+ eslint:
7
+ runs-on: ubuntu-latest
8
+ steps:
9
+ - uses: actions/checkout@v1
10
+ with:
11
+ fetch-depth: 1
12
+ - uses: actions/setup-node@v1
13
+ with:
14
+ node-version: 12
15
+ - name: eslint
16
+ uses: reviewdog/action-eslint@v1
17
+ with:
18
+ reporter: github-pr-review
@@ -0,0 +1,53 @@
1
+ name: NPM Publish Package
2
+
3
+ on:
4
+ pull_request:
5
+ branches:
6
+ - master
7
+ push:
8
+ branches:
9
+ - master
10
+
11
+ jobs:
12
+ build:
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - uses: actions/checkout@v1
16
+ - uses: actions/setup-node@v1
17
+ with:
18
+ node-version: 12
19
+ - name: install and test
20
+ run: |
21
+ yarn
22
+ yarn run test
23
+
24
+ publish-npm:
25
+ needs: build
26
+ runs-on: ubuntu-latest
27
+ steps:
28
+ - uses: actions/checkout@v1
29
+ - uses: actions/setup-node@v1
30
+ with:
31
+ node-version: 12
32
+ registry-url: https://registry.npmjs.org/
33
+ - name: Publish to NPM
34
+ if: github.event_name == 'pull_request' && github.event.pull_request.merged == 'true'
35
+ run: npm publish
36
+ env:
37
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
38
+
39
+ # Commented out until we have access to the Github Package Registry
40
+ #
41
+ # publish-gpr:
42
+ # needs: build
43
+ # runs-on: ubuntu-latest
44
+ # steps:
45
+ # - uses: actions/checkout@v1
46
+ # - uses: actions/setup-node@v1
47
+ # with:
48
+ # node-version: 12
49
+ # registry-url: https://npm.pkg.github.com/
50
+ # scope: '@victorquinn'
51
+ # - run: npm publish
52
+ # env:
53
+ # NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -0,0 +1,23 @@
1
+ name: Unit Tests
2
+
3
+ on: [push, pull_request]
4
+
5
+ jobs:
6
+ build:
7
+ runs-on: ubuntu-latest
8
+ strategy:
9
+ matrix:
10
+ node-version: [8.x, 10.x, 12.x]
11
+
12
+ steps:
13
+ - uses: actions/checkout@v1
14
+ - name: Use Node.js ${{ matrix.node-version }}
15
+ uses: actions/setup-node@v1
16
+ with:
17
+ node-version: ${{ matrix.node-version }}
18
+ - name: yarn install and test
19
+ run: |
20
+ yarn
21
+ yarn run test
22
+ env:
23
+ CI: true
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 Victor Quinn
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,59 @@
1
+ # Chance
2
+
3
+ [![Chance Logo](http://chancejs.com/logo.png)](http://chancejs.com)
4
+
5
+ [![Build Status](https://travis-ci.org/chancejs/chancejs.svg?branch=develop)](https://travis-ci.org/chancejs/chancejs) [![GitHub license](https://img.shields.io/github/license/chancejs/chancejs.svg)](https://github.com/chancejs/chancejs) [![GitHub stars](https://img.shields.io/github/stars/chancejs/chancejs.svg)](https://github.com/chancejs/chancejs) [![npm](https://img.shields.io/npm/dm/chance.svg)](https://npmjs.com/package/chance) [![jsDelivr Hits](https://data.jsdelivr.com/v1/package/npm/chance/badge?style=rounded)](https://www.jsdelivr.com/package/npm/chance) [![npm](https://img.shields.io/npm/v/chance.svg)](https://npmjs.com/package/chance) [![Coverage Status](https://coveralls.io/repos/chancejs/chancejs/badge.svg?branch=master)](https://coveralls.io/r/chancejs/chancejs?branch=master) [![awesomeness](https://img.shields.io/badge/awesomeness-maximum-red.svg)](https://github.com/chancejs/chancejs)
6
+
7
+ Chance - Random generator helper for JavaScript
8
+
9
+ Homepage: [http://chancejs.com](http://chancejs.com)
10
+
11
+ Many more details on [http://chancejs.com](http://chancejs.com) but this single
12
+ library can generate random numbers, characters, strings, names, addresses,
13
+ dice, and pretty much anything else.
14
+
15
+ It includes the basic building blocks for all these items and is built on top
16
+ of a Mersenne Twister so it can generate these things with repeatability, if
17
+ desired.
18
+
19
+ ## Usage
20
+
21
+ See the [full docs](https://chancejs.com) for details on installation and usage.
22
+
23
+ ## Dependent tools
24
+
25
+ * [Chance CLI](https://github.com/chancejs/chance-cli) - Use Chance on the command line.
26
+ * [Chance Token Replacer](https://github.com/drewbrokke/chance-token-replacer) - Replace tokens in a string with Chance generated items.
27
+ * [Dream.js](https://github.com/adleroliveira/dreamjs) - Lightweight json data generator
28
+ * [Fake JSON Schema](https://github.com/pateketrueke/json-schema-faker/) - Use chance generators to populate JSON Schema samples.
29
+ * [Mocker Data Generator](https://github.com/danibram/mocker-data-generator/) - Minimal JSON data generator.
30
+ * [swagger-mock-api](https://github.com/dzdrazil/swagger-mock-api/) - Generate API mocks from a Swagger spec file enriched with Chance types and constraints
31
+ * [fony](https://github.com/captainsafia/fony) - A simple command line tool for generating fake data from a template string
32
+
33
+ Or [view all of the dependents on npm](https://www.npmjs.com/package/chance)
34
+
35
+ *Know a library that uses Chance that isn't here? Update the README and submit a PR!*
36
+
37
+ ## Author
38
+ ### Victor Quinn
39
+ [https://www.victorquinn.com](https://www.victorquinn.com)
40
+ [@victorquinn](https://twitter.com/victorquinn)
41
+
42
+ Please feel free to reach out to me if you have any questions or suggestions.
43
+
44
+ ### Contributors
45
+
46
+ THANK YOU!
47
+
48
+ ### Contribute!
49
+
50
+ Be a part of this project! You can run the test using the following.
51
+
52
+ 1. Install dependencies from package.json by running `npm install`
53
+ 2. Run the test via `npm test`
54
+ 3. Make some fun new modules!
55
+
56
+ This project is licensed under the [MIT License](http://en.wikipedia.org/wiki/MIT_License) so feel free to hack away :)
57
+
58
+ Proudly written in Washington, D.C.
59
+
package/bower.json ADDED
@@ -0,0 +1,22 @@
1
+ {
2
+ "name": "chance",
3
+ "version": "1.1.11",
4
+ "main": "chance.js",
5
+ "ignore": [
6
+ "node_modules"
7
+ ],
8
+ "description": "Chance - Utility library to generate anything random",
9
+ "homepage": "http://chancejs.com",
10
+ "keywords": [
11
+ "chance",
12
+ "random",
13
+ "generator"
14
+ ],
15
+ "author": {
16
+ "name": "Victor Quinn",
17
+ "web": "https://www.victorquinn.com"
18
+ },
19
+ "devDependencies": {
20
+ "phone_number_js": "~1.0.0"
21
+ }
22
+ }