rename tool to converttt
This commit is contained in:
parent
3697ba39ae
commit
2dc740a73c
|
@ -629,7 +629,7 @@ to attach them to the start of each source file to most effectively
|
|||
state the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
Convert-itt: Converts iTunes Timed Text (.itt) into other subtitle formats.
|
||||
converttt: Converts iTunes Timed Text (.itt) into other subtitle formats.
|
||||
Copyright (C) 2018 Nils Norman Haukås
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
|
|
14
README.md
14
README.md
|
@ -1,6 +1,6 @@
|
|||
# ITT to SRT converter
|
||||
|
||||
[![Build Status](https://travis-ci.org/nilsnh/convert-itt.svg?branch=master)](https://travis-ci.org/nilsnh/convert-itt)
|
||||
[![Build Status](https://travis-ci.org/nilsnh/converttt.svg?branch=master)](https://travis-ci.org/nilsnh/converttt)
|
||||
|
||||
A command line utility that converts [iTunes Timed Text (.itt)](https://www.w3.org/TR/ttml1/) into [SubRip Subtitle files (.srt)](https://matroska.org/technical/specs/subtitles/srt.html).
|
||||
|
||||
|
@ -8,21 +8,21 @@ A command line utility that converts [iTunes Timed Text (.itt)](https://www.w3.o
|
|||
|
||||
Make sure you have at least [Node.js version 8](https://nodejs.org/en/) installed.
|
||||
|
||||
Run `npm install -g convert-itt` in your terminal to install the tool.
|
||||
Run `npm install -g converttt` in your terminal to install the tool.
|
||||
|
||||
## Usage
|
||||
|
||||
Point newly installed Terminal command at one or more files or folders. It will create .srt files next to the .itt files.
|
||||
|
||||
To convert a folder call: `convert-itt some-folder/`.
|
||||
To convert a folder call: `converttt some-folder/`.
|
||||
|
||||
You can also convert files by calling:
|
||||
|
||||
- `convert-itt *` or
|
||||
- `convert-itt ./` or
|
||||
- `convert-itt some-subtitle.itt`.
|
||||
- `converttt *` or
|
||||
- `converttt ./` or
|
||||
- `converttt some-subtitle.itt`.
|
||||
|
||||
Get help by running: `convert-itt --help`
|
||||
Get help by running: `converttt --help`
|
||||
|
||||
## License
|
||||
|
||||
|
|
2
index.js
2
index.js
|
@ -18,7 +18,7 @@ program
|
|||
const filesOrFolders = process.argv.splice(2);
|
||||
|
||||
if (filesOrFolders.length === 0) {
|
||||
return console.log("For instructions call convert-itt --help");
|
||||
return console.log("For instructions call converttt --help");
|
||||
}
|
||||
|
||||
const files = findITTFiles(filesOrFolders);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"name": "convert-itt",
|
||||
"name": "converttt",
|
||||
"version": "1.0.0",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "convert-itt",
|
||||
"name": "converttt",
|
||||
"version": "1.0.0",
|
||||
"description": "Parse iTunes Timed Text (.itt) into SubRip Subtitle files (.srt).",
|
||||
"description": "Convert iTunes Timed Text (.itt) into SubRip Subtitle files (.srt).",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "ava"
|
||||
|
@ -20,10 +20,10 @@
|
|||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git@github.com:nilsnh/convert-itt.git"
|
||||
"url": "git@github.com:nilsnh/converttt.git"
|
||||
},
|
||||
"bin": {
|
||||
"convert-itt": "./index.js"
|
||||
"converttt": "./index.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"commander": "^2.19.0",
|
||||
|
|
Loading…
Reference in New Issue