@musicube/audio-file-service
v1.3.0
Published
client for converting, tagging and meta data retrieval of audio files
Downloads
1
Readme
@musicube/audio-file-service
JS/TS client for converting, tagging and meta data retrieval of audio files with musicubes Audio File Service
automatically generated from Audio File Service Docs using oazapfts.
Installation
npm install @musicube/audio-file-service
# or
# yarn add @musicube/audio-file-service
Usage
import {
defaults,
getCover,
// Introspect package for all the other methods
} from '@musicube/audio-file-service';
/* OR cjs/node
const {
defaults,
getCover
} = require('@musicube/audio-file-service')
*/
// see https://www.npmjs.com/package/oazapfts#user-content-overriding-the-defaults
defaults.headers.authorization = `Bearer ${process.env.MUSICUBE_API_TOKEN}`;
const { image } = await getCover('https://example.org/my-audio-file.mp3');
console.log(image);
License
The client code itself is generated by oazapfts (MIT License), bundled with microbundle (MIT License) and also published under MIT License
The MIT License
Copyright (C) 2022 Musicube GmbH
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Usage of the client (thereby usage of Audio File Service) and data retrieved from the Service is only allowed according to the musicube terms of service.