Skip to content

vntk/subsent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Subsent

Convert subtitles to sentences!

npm version

Installation In A Nutshell

  1. Install Node.js
  2. Run: $ npm install subsent -g

API Usage

Homepage: https://github.com/vntk/subsent

Support format: srt.

Convert a file

To text:

subsent text [filename.srt]

To json:

subsent json [filename.srt]

Convert a directory

To text:

subsent text [filename.srt] -d

To json:

subsent json [filename.srt] -d

Help: use command help

subsent help

  Usage: index [options] [command]


  Commands:

    version
    tojson|json [options] [text...]  Convert subtitle to json file
    totext|text [options] [text...]  Convert subtitle to text file

  Options:

    -h, --help     output usage information
    -v, --version  output the version number

Supported character sets

  • UTF-8
  • UTF-16

LICENSE

MIT.