mediasnacks 0.33.0 → 0.33.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -32,7 +32,7 @@ mediasnacks <command> <args>
32
32
  - `ssim` Computes similarity of two images
33
33
  - `gif`: Video to GIF
34
34
  - `info`: Prints video attributes
35
- - `tag`: Adds color tag for Finder
35
+ - `tag`: Sets color tag for Finder
36
36
 
37
37
 
38
38
  - `detectdups` Detects sequentially duplicate frames in a video
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mediasnacks",
3
- "version": "0.33.0",
3
+ "version": "0.33.1",
4
4
  "description": "Utilities for optimizing and preparing videos and images",
5
5
  "license": "MIT",
6
6
  "author": "Eric Fortis",
package/src/cli.js CHANGED
@@ -19,7 +19,7 @@ const COMMANDS = {
19
19
  ssim: ['./ssim.js', 'Computes SSIM between two images'],
20
20
  gif: ['./gif.js', 'Video to GIF'],
21
21
  info: ['./info.js', 'Prints video stream attributes'],
22
- tag: ['./tag.osascript', 'Adds color tag for Finder\n'],
22
+ tag: ['./tag.osascript', 'Sets color tag for Finder\n'],
23
23
 
24
24
  detectdups: ['./detectdups.js', 'Detects duplicate frames in a video'],
25
25
  dropdups: ['./dropdups.js', 'Removes duplicate frames in a video'],
package/src/play.js CHANGED
@@ -15,7 +15,6 @@ EXAMPLE
15
15
  mediasnacks play artistX artistY
16
16
  `
17
17
 
18
-
19
18
  export default async function main() {
20
19
  const { values, positionals, usage } = await parseOptions(HELP, {
21
20
  recursive: { short: 'r', type: 'boolean', default: true },
package/src/seqcheck.js CHANGED
@@ -13,8 +13,8 @@ DESCRIPTION
13
13
  Find missing numbered files in a sequence.
14
14
 
15
15
  OPTIONS
16
- -ld, --left-delimiter <str> Delimiter before the number (default: "${LEFT_DELIM}")
17
- -rd, --right-delimiter <str> Delimiter after the number (default: "${RIGHT_DELIM}")
16
+ --left-delimiter <str> Char before the number (default: "${LEFT_DELIM}")
17
+ --right-delimiter <str> Char after the number (default: "${RIGHT_DELIM}")
18
18
  `
19
19
 
20
20
  export default async function main() {
@@ -1,8 +1,8 @@
1
1
  import { formatSeconds } from './formatSeconds.js'
2
2
 
3
- const HIDE_CURSOR = '\x1b[?25l'
4
- const SHOW_CURSOR = '\x1b[?25h'
5
- const ERASE_TO_END = '\x1b[K'
3
+ export const HIDE_CURSOR = '\x1b[?25l'
4
+ export const SHOW_CURSOR = '\x1b[?25h'
5
+ export const ERASE_TO_END = '\x1b[K'
6
6
 
7
7
  export const showCursor = () => process.stdout.write(SHOW_CURSOR)
8
8
 
@@ -30,5 +30,5 @@ function progressBar(progress, width = 44) {
30
30
 
31
31
  const partials = ' ▏▎▍▌▋▊▉'
32
32
  const partial = partials.at(partials.length * fPartial)
33
- return '█'.repeat(nFull) + partial + ''.repeat(nRemaining)
33
+ return '█'.repeat(nFull) + partial + ''.repeat(nRemaining)
34
34
  }