react-native-split-file
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

react-native-split-file

A simple react-native library that can split a file into parts of an equal size, with the last part consisting of the remainder.

Designed to be used for multi-part uploads to S3.

Installation

npm install react-native-split-file
# or
yarn add react-native-split-file

Usage

import { splitFile } from 'react-native-split-file';

// ...

const result = await splitFile('/some/big/file.mov', 5000000);
// result is an array of paths to the split files

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


Made with create-react-native-library

Package Sidebar

Install

npm i react-native-split-file

Weekly Downloads

2

Version

0.2.0

License

MIT

Unpacked Size

47.4 kB

Total Files

32

Last publish

Collaborators

  • zeevl