Gathering detailed insights and metrics for expo-asset-utils
Gathering detailed insights and metrics for expo-asset-utils
Gathering detailed insights and metrics for expo-asset-utils
Gathering detailed insights and metrics for expo-asset-utils
npm install expo-asset-utils
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
43 Stars
65 Commits
7 Forks
23 Watching
23 Branches
18 Contributors
Updated on 05 Oct 2024
Minified
Minified + Gzipped
TypeScript (75.99%)
JavaScript (24.01%)
Cumulative downloads
Total Downloads
Last day
25.7%
967
Compared to previous day
Last week
12.7%
5,771
Compared to previous week
Last month
2%
25,040
Compared to previous month
Last year
68.9%
256,343
Compared to previous year
This package is no longer required for parsing assets, use
expo-asset
andexpo-file-system
instead.
1yarn add expo-asset-utils
Import the library into your JavaScript file:
1import * as AssetUtils from 'expo-asset-utils';
Given a reference to some asset, this will return a promise that resolves to an Expo.Asset that has been cached.
Expo.Asset.fromModule(require('./image.png'))
require('./image.png')
'https://upload.wikimedia.org/wikipedia/en/1/17/Batman-BenAffleck.jpg'
'file:///var/image.png'
'asset-library:///var/image.png'
{uri: 'https://upload.wikimedia.org/wikipedia/en/1/17/Batman-BenAffleck.jpg'}
Property | Type | Description |
---|---|---|
fileReference | Expo.Asset , number , string , {uri: string} | This will resolve into a downloaded Expo.Asset |
Given a image URI string
, this will return a base64 encoded string and the image size: { data: string, size: { width: number, height: number } }
Property | Type | Description |
---|---|---|
uri | string | This URI will be converted to base64 |
Deprecated: Use
(await resolveAsync()).localUri
Deprecated: Use
Asset.fromURI('...')
fromexpo-asset
Deprecated
Deprecated
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 1/3 approved changesets -- score normalized to 3
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
security policy file not detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
71 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More