Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

sarc-extractor

FURI-J5MIT1.0.3

Extract file(s) from SARC file.

SARC, Nintendo

readme

sarc-extractor

sarc-extractor is an npm package that extracts file(s) from SARC file.

Installation

npm version

npm i sarc-extractor

Usage

The file(s) extracted from the SARC file will be output to to the same directory as the SARC file.

const sarcExtractor = require('sarc-extractor');
const extractedFileList = sarcExtractor.extract('<SARC file path>');

Example

const sarcExtractor = require('sarc-extractor');
const extractedFileList = sarcExtractor.extract('/home/foo/bar.sarc');
// --> output ["/home/foo/bar/baz.msbt", "/home/foo/bar/qux.msbt"]

npm run

npm run extract -- <SARC file path>