{"name":"expo-random","version":"13.5.0","keywords":["react-native","expo","random","crypto","random-bytes","secure","generator","bytes"],"author":{"name":"650 Industries, Inc."},"license":"MIT","_id":"expo-random@13.5.0","homepage":"https://docs.expo.dev/versions/latest/sdk/random/","bugs":{"url":"https://github.com/expo/expo/issues"},"dist":{"shasum":"5c2f98b496e617ca70d30ebdbb06a43c638d3529","tarball":"http://registry-npm.ywwl.com/expo-random/download/expo-random-13.5.0.tgz","fileCount":28,"integrity":"sha512-0gN7wp/zzpl3Dv7H0dxsXVmDFa9rKP6K7iqrWDr8HlTeYyqnjcP1lsNo2mKulkSPhc8VIwoi6lW0AtcY/Swlrw==","signatures":[{"sig":"MEQCIGc/hTZ/wLxLnNt4Hh5EeA8S1ep8SN26jaQe/Gjb1FqjAiA+wEoJvruioIXLpWAyeX9r4DeWv32PmhsRFkBpPSFIug==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":31906,"size":8656,"noattachment":false,"key":"/expo-random/-/expo-random-13.5.0.tgz"},"jest":{"preset":"expo-module-scripts"},"main":"build/Random.js","types":"build/Random.d.ts","gitHead":"da25937e2a99661cbe5eb60ca1d8d6245fc96a50","scripts":{"lint":"expo-module lint","test":"expo-module test","build":"expo-module build","clean":"expo-module clean","prepare":"expo-module prepare","expo-module":"expo-module","prepublishOnly":"expo-module prepublishOnly"},"_npmUser":{"name":"wschurman","email":"wschurman@gmail.com"},"repository":{"url":"git+https://github.com/expo/expo.git","type":"git","directory":"packages/expo-random"},"_npmVersion":"8.19.4","description":"Expo universal module for random bytes","directories":{},"sideEffects":false,"_nodeVersion":"16.20.2","dependencies":{"base64-js":"^1.3.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"expo-module-scripts":"^3.0.0"},"peerDependencies":{"expo":"*"},"_npmOperationalInternal":{"tmp":"tmp/expo-random_13.5.0_1697574436770_0.11343194799798617","host":"s3://npm-registry-packages"},"readme":"# expo-random\n\n## ⚠️ Deprecated\n\nThis package is now deprecated in favor of `expo-crypto`, which provides the same functionality.\nTo migrate, replace all imports from `expo-random` with imports from `expo-crypto`.\n\nProvides a native interface for creating strong random bytes. With `Random` you can generate random values to address use cases that other APIs like the web's `crypto.getRandomValues` and Node's `crypto.randomBytes` might address.\n\n# Installation in managed Expo projects\n\nFor [managed](https://docs.expo.dev/archive/managed-vs-bare/) Expo projects, please follow the installation instructions in the [API documentation for the latest stable release](https://docs.expo.dev/versions/latest/sdk/random/).\n\nYou can add a polyfill for the web's `crypto.getRandomValues` by installing [expo-standard-web-crypto](https://github.com/expo/expo/tree/main/packages/expo-standard-web-crypto) and importing it in SDK 39 and higher:\n\n```js\nimport { polyfillWebCrypto } from 'expo-standard-web-crypto';\n\npolyfillWebCrypto();\n// crypto.getRandomValues is now globally defined\n```\n\nOther libraries like [react-native-get-random-values](https://github.com/LinusU/react-native-get-random-values) may work too.\n\n# Installation in bare React Native projects\n\nFor bare React Native projects, you must ensure that you have [installed and configured the `expo` package](https://docs.expo.dev/bare/installing-expo-modules/) before continuing.\n\n### Add the package to your npm dependencies\n\n```\nnpx expo install expo-random\n```\n\n### Configure for iOS\n\nRun `npx pod-install` after installing the npm package.\n\n### Configure for Android\n\nNo additional set up necessary.\n","publish_time":1697574436978,"maintainers":[{"email":"radoslaw.krzemien@swmansion.com","name":"radoslawkrzemien"},{"email":"piotrek.szeremeta@swmansion.com","name":"pkham"},{"email":"szymon.dziedzic@swmansion.com","name":"szdziedzic"},{"email":"npm@tsapeta.com","name":"tsapeta"},{"email":"ide+npm@jameside.com","name":"ide"},{"email":"kosmatylukasz@gmail.com","name":"lukmccall"},{"email":"beto@expo.io","name":"betoatexpo"},{"email":"phil@kitten.sh","name":"philpl"},{"email":"brent+expobotnpm@expo.io","name":"expo-bot"},{"email":"hughesno1@gmail.com","name":"alanhughes"},{"email":"hellokadi@gmail.com","name":"kadikraman"},{"email":"mikucki@gmail.com","name":"aleqsio"},{"email":"mwlawlor@gmail.com","name":"marklawlor"},{"email":"donadeldev@gmail.com","name":"gabrieldonadel"},{"email":"gosimek@gmail.com","name":"simek"},{"email":"keith@expo.io","name":"keith-kurak"},{"email":"chris@christopherwalter.com","name":"christopherwalter"},{"email":"datwheat@gmail.com","name":"fiber-god"},{"email":"brentvatne@gmail.com","name":"brentvatne"},{"email":"baconbrix@gmail.com","name":"evanbacon"},{"email":"quinlanjung@gmail.com","name":"quinlanj"},{"email":"support@expo.io","name":"expoadmin"},{"email":"exponent.team@gmail.com","name":"exponent"},{"email":"wschurman@gmail.com","name":"wschurman"},{"email":"me@bycedric.com","name":"bycedric"},{"email":"sampjon@gmail.com","name":"jonsamp"},{"email":"mhampton@hey.com","name":"princefleaswallow"},{"email":"ckchien@gmail.com","name":"kudochien"}],"deprecated":"This package is now deprecated in favor of expo-crypto, which provides the same functionality. To migrate, replace all imports from expo-random with imports from expo-crypto.","_cnpm_publish_time":1697574436978,"dist-tags":{"canary":"0.0.1-canary-20240418-8d74597","latest":"14.0.1","sdk-50":"13.6.0","sdk-51":"14.0.1"}}