@zwa73/utils 1.0.70 → 1.0.71

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zwa73/utils",
3
- "version": "1.0.70",
3
+ "version": "1.0.71",
4
4
  "description": "my utils",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,7 +0,0 @@
1
- import { FfprobeData } from 'fluent-ffmpeg';
2
- declare class SFfmpegTool {
3
- static setFfmpegPath(ffmpegPath: string): void;
4
- static getAudioData(inputWavPath: string): Promise<FfprobeData | null>;
5
- }
6
- export default SFfmpegTool;
7
- export { SFfmpegTool };
@@ -1,26 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SFfmpegTool = void 0;
4
- const fluentFfmpeg = require("fluent-ffmpeg");
5
- class SFfmpegTool {
6
- static setFfmpegPath(ffmpegPath) {
7
- fluentFfmpeg.setFfmpegPath(ffmpegPath);
8
- }
9
- static async getAudioData(inputWavPath) {
10
- return new Promise((resolve, reject) => {
11
- fluentFfmpeg.ffprobe(inputWavPath, function (err, metadata) {
12
- if (err) {
13
- console.log(err);
14
- resolve(null);
15
- }
16
- else {
17
- //console.log(inputWavPath+" metadata:");
18
- //console.log(metadata);
19
- resolve(metadata);
20
- }
21
- });
22
- });
23
- }
24
- }
25
- exports.SFfmpegTool = SFfmpegTool;
26
- exports.default = SFfmpegTool;