2.5.0 • Published 4 years ago
goodcodes-parser v2.5.0
goodcodes-parser
Description
This tools extracts GoodCodes from ROM names and returns a structured dataset.
Installation
npm install --save goodcodes-parseror
yarn add goodcodes-parserUsage
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.