goodcodes-parser
TypeScript icon, indicating that this package has built-in type declarations

2.5.0 • Public • Published

goodcodes-parser

travis build Coverage Status node (tag)

Description

This tools extracts GoodCodes from ROM names and returns a structured dataset.

Installation

npm install --save goodcodes-parser

or

yarn add goodcodes-parser

Usage

import { parse } from 'goodcodes-parser';
const result = parse('Zoop (U) [!].gen');
console.log(result);
{
    "file": "Zoop (U) [!].gen",
    "cleaned": "Zoop.gen",
    "rom": "Zoop",
    "codes": {
        "countries": [
            { "code": "U", "name": "USA" }
        ],
        "good": true
    }
}

Have a look on the typing or on the tests to see the result keys.

/goodcodes-parser/

    Package Sidebar

    Install

    npm i goodcodes-parser

    Weekly Downloads

    8

    Version

    2.5.0

    License

    MIT

    Unpacked Size

    63.6 kB

    Total Files

    93

    Last publish

    Collaborators

    • jbdemonte