Effortlessly split your lengthy texts into manageable chunks with the kick of a button.
- Split by characters or words
- Adjustable chunk sizes
- User-friendly interface
- Instant results
Perfect for content creators, developers, and anyone working with large text blocks. Streamline your workflow and make text processing a breeze!
-
Clone the repository:
git clone https://github.com/yourusername/ai-chat-history.git cd ai-chat-history
-
Install dependencies:
npm install
-
Start the development server:
npm start
-
Open http://localhost:3000 in your browser.
-
Update the
homepage
field inpackage.json
:"homepage": "https://yourusername.github.io/ai-chat-history"
The scripts section should already be configured as so:
"scripts": { "predeploy": "npm run build", "deploy": "gh-pages -d build" }
-
Setup Github Pages: gh-pages is already installed as a dev dependency, but you need to configure it.
- In the github repo, navigate to
Settings
->Pages
- Under
Source
, select thegh-pages
branch as the publishing source - Click
Save
and the page will automatically refresh.
- In the github repo, navigate to
-
Deploy the application: In the terminal, run:
npm run deploy
-
Your application will be available at
https://yourusername.github.io/chunk-norris
- There is a limit that's imposed by the maximum length of an array in Javascript (2^32 - 1, or 4,294,967,295). If you need to split larger texts, you can use the split by Words option with a smaller chunk size. If you have ideas for handling larger texts, please open an issue or submit a PR!
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License. See the LICENSE
file for more details.