Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/louiszawadzki/react-native-tested-base64
https://github.com/louiszawadzki/react-native-tested-base64
Last synced: 10 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/louiszawadzki/react-native-tested-base64
- Owner: louiszawadzki
- License: mit
- Created: 2024-03-15T16:45:59.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-03-19T16:39:05.000Z (10 months ago)
- Last Synced: 2024-11-09T00:31:39.799Z (2 months ago)
- Language: Kotlin
- Size: 1.49 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# react-native-tested-base64
A base64 library with android and iOS native tests.
## Testing resources
- [ktlint-gradle](https://github.com/JLLeitschuh/ktlint-gradle)
- [mockito-kotlin](https://github.com/mockito/mockito-kotlin)## Running tests
First, setup the package:
```sh
yarn
(cd example && yarn)
```### Android
To run all tests:
```sh
(cd android && ./gradlew clean build)
```To run only the linter:
```sh
(cd android && ./gradlew ktlintCheck)
```To fix the linter:
```sh
(cd android && ./gradlew ktlintFormat)
```To run only the tests:
```sh
(cd android && ./gradlew testDebugUnitTest)
```### iOS
Open the example project in Xcode `xed example/ios` and run the tests from Test explorer.
## Installation
```sh
npm install react-native-tested-base64
```## Usage
```js
import { encode } from 'react-native-tested-base64';// ...
const result = await encode('my string');
const decoded = await decode(result);
```## Contributing
See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.
## License
MIT
---
Made with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)