Skip to content

Splits utf8 encoded file into smaller files of fixed size

License

Notifications You must be signed in to change notification settings

medikoo/split-utf8-file

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

split-utf8-file

Splits utf8 encoded file into smaller files of fixed size

Use case: Cut minified JS file into smaller files, so they can be analyzed within code editors.
That cannot be addressed reliably by Linux's split as it doesn't respect UTF8 encoding.

Installation

$ npm install -g split-utf8-file

Usage

split-utf8-file filename.js

Options

  • pieceSize - Size of file piece (default: 100k)
  • destPath - Destination directory path (default: same as of input file)

Tests Build Status

$ npm test

About

Splits utf8 encoded file into smaller files of fixed size

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published