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.
$ npm install -g split-utf8-file
split-utf8-file filename.js
pieceSize
- Size of file piece (default: 100k)destPath
- Destination directory path (default: same as of input file)
$ npm test