Gathering detailed insights and metrics for @react-native-hero/fs
Gathering detailed insights and metrics for @react-native-hero/fs
Gathering detailed insights and metrics for @react-native-hero/fs
Gathering detailed insights and metrics for @react-native-hero/fs
npm install @react-native-hero/fs
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
10 Commits
2 Watching
1 Branches
1 Contributors
Updated on 21 Oct 2021
Kotlin (52.66%)
Objective-C (32.88%)
JavaScript (11.1%)
Ruby (3.36%)
Cumulative downloads
Total Downloads
Last day
0%
1
Compared to previous day
Last week
57.1%
11
Compared to previous week
Last month
0%
35
Compared to previous month
Last year
-17%
323
Compared to previous year
No dependencies detected.
Install the library using either Yarn:
yarn add @react-native-hero/fs
or npm:
npm install --save @react-native-hero/fs
For iOS, use cocoapods
to link the package.
run the following command:
$ cd ios && pod install
For android, the package will be linked automatically on build.
run the following command to link the package:
$ react-native link @react-native-hero/fs
1import { 2 CODE, 3 DIRECTORY, 4 exists, 5 unlink, 6 stat, 7 md5, 8 preview, 9} from '@react-native-hero/fs' 10 11exists(path) 12.then(data => { 13 if (data.exists) { 14 15 } 16}) 17 18stat(path) 19.then(data => { 20 data.name 21 data.size 22}) 23.catch(err => { 24 if (err.code === CODE.FILE_NOT_FOUND) { 25 console.log('file is not found') 26 } 27}) 28 29unlink(path) 30.then(data => { 31 if (data.success) { 32 33 } 34}) 35.catch(err => { 36 if (err.code === CODE.FILE_NOT_FOUND) { 37 console.log('file is not found') 38 } 39}) 40 41md5(path) 42.then(data => { 43 data.md5 44}) 45.catch(err => { 46 if (err.code === CODE.FILE_NOT_FOUND) { 47 console.log('file is not found') 48 } 49}) 50 51preview({ 52 path: '/xx/xx.pdf', 53 mimeType: 'application/pdf', 54}) 55.then(() => { 56 // success 57}) 58.catch(err => { 59 if (err.code === CODE.FILE_NOT_FOUND) { 60 console.log('file is not found') 61 } 62 else if (err.code === CODE.PREVIEW_APP_NOT_FOUND) { 63 console.log('preview app is not found') 64 } 65}) 66 67// android only 68scan({ 69 path: '/xx/xx.jpg', 70 mimeType: 'image/jpeg', 71}) 72.then(data => { 73 data.path 74}) 75.catch(err => { 76 if (err.code === CODE.SCANNER_NOT_CONNECTED) { 77 console.log('scanner is not connected.') 78 } 79})
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/10 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2024-11-18
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