maryam-cli
v0.3.2
Published
A cli tool for persian users.
Downloads
3
Readme
Maryam CLI
A simple cli tool for persian users. Easy as calling maryam!
Installation
npm install -g maryam-cli
Usage
maryam <module> [<args>]
Modules
translate
Translate persian text to english and also english text to persian with automatic input language detection.
maryam translate <string>
Examples
maryam translate Hello
# OK: سلام
maryam translate دوست
# OK: Friend
maryam translate "سلام حالت خوبه؟"
# OK: Hello are you feeling good?
fixsub
Fix persian subtitles encoding.
maryam fixsub <src> [<dst>]
Examples
maryam fixsub ./mr-robot-s01e01.srt ./mr-robot-s01e01.fixed.srt
# OK: File './mr-robot-s01e01.fixed.srt' saved!
maryam fixsub ./sherlock-s02e02.srt
# OK: File './sherlock-s02e02.srt' saved!
renamesubs
Sync subtitle file name with movie file name via levenshtein comparison.
maryam renamesubs <srcPath>
Examples
maryam renamesubs ./mr-robot/S01
# OK: Done!
# Before:
# mr-robot-s01-e01.mkv
# mr-robot-s01-e02.mkv
# mr-robot-s01-e03.mp4
# e01.srt
# E02.srt
# MrRobotS01E03.srt
# ...
#
# After:
# mr-robot-s01-e01.mkv
# mr-robot-s01-e01.srt
# mr-robot-s01-e02.mkv
# mr-robot-s01-e02.srt
# mr-robot-s01-e03.mp4
# mr-robot-s01-e03.srt
# ...