# metaflac-js2

> A pure JavaScript implementation of the metaflac (official FLAC tool)

Latest version **1.0.8** (published 2021-09-22) · ISC license · 0 weekly downloads

## Install

```sh
npm install metaflac-js2
pnpm add metaflac-js2
yarn add metaflac-js2
bun add metaflac-js2
```

Provides the command `metaflac-js`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.8 |
| Published | 2021-09-22 |
| First published | 2019-09-16 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 20.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Sayem Chowdhury |
| Maintainers | sayem314 |
| Keywords | metaflac, flac, metadata, writer |

## Links

- npm: https://www.npmjs.com/package/metaflac-js2
- Repository: https://github.com/d-fi/metaflac-js2
- Homepage: https://github.com/d-fi/metaflac-js2#readme
- Issues: https://github.com/d-fi/metaflac-js2/issues
- npm.io page: https://npm.io/package/metaflac-js2

## Dependencies (2)

- [commander](https://npm.io/package/commander.md) ^8.2.0
- [probe-image-size](https://npm.io/package/probe-image-size.md) ^7.2.1

## Recent versions

- 1.0.8 (latest) — 2021-09-22
- 1.0.7 — 2019-09-16

## README

# metaflac-js2

A pure JavaScript implementation of the metaflac (the official FLAC tool written in C++)

> This is a tool that has just been completed, I hope to help you, and I hope we can optimize it together.

Use as module:

```
npm i metaflac-js2 --save
```

```
const Metaflac = require('metaflac-js2');
const flac = new Metaflac('/path/to/flac.flac or buffer');
flac.setTag('TITLE=My Music');
flac.save();
```

Use as cli:

Usage is basically consistent with official tools.

```
npm i metaflac-js2 -g
metaflac-js -h
```

Note: here is the official FLAC tools [doc](https://xiph.org/flac/documentation_tools_metaflac.html)

- This is a fork of [metaflac-js](https://github.com/ishowshao/metaflac-js) with minor improvements for detecting image dimensions and mime type.

#### Changelog:

- Removed `importPictureFrom`and `importPictureFromBuffer`
- Added `importPicture`


    importPicture takes either path or buffer

---
_Source: https://npm.io/package/metaflac-js2 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
