diff --git a/README.md b/README.md index baf42fb..23981a0 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ const gpuid = generator.gpuid({ name: 'Paris, Île-de-France, France', latitude: 49.00443, longitude: 2.51703, - country_code: 'fr', + countryCode: 'fr', type: 'cluster', }); @@ -40,7 +40,7 @@ Output: [ { id: 'c|FRparis___@u09yc', - country_code: 'fr', + countryCode: 'fr', latitude: 49.00443, longitude: 2.51703, name: 'Paris, Île-de-France, France', diff --git a/__tests__/unit/index.ts b/__tests__/unit/index.ts index 3317902..032560b 100644 --- a/__tests__/unit/index.ts +++ b/__tests__/unit/index.ts @@ -1,8 +1,8 @@ -import { Generator } from "../../src"; +import { Generator } from '../../src'; -describe("Ground place unique id generation", () => { +describe('Ground place unique id generation', () => { - describe("Default configuration", () => { + describe('Default configuration', () => { const generator: Generator = new Generator(); it('should return Paris gpuid', () => { @@ -10,18 +10,18 @@ describe("Ground place unique id generation", () => { name: 'Paris, Île-de-France, France', latitude: 49.00443, longitude: 2.51703, - country_code: 'fr', + countryCode: 'fr', type: 'cluster', }); expect(gpuid).toEqual({ - country_code: 'fr', - id: 'c|FRparis___@u09yc', - latitude: 49.00443, - longitude: 2.51703, - name: 'Paris, Île-de-France, France', - type: 'cluster', - }); + countryCode: 'fr', + id: 'c|FRparis___@u09yc', + latitude: 49.00443, + longitude: 2.51703, + name: 'Paris, Île-de-France, France', + type: 'cluster', + }); }); it('should return Paris gpuid', () => { @@ -29,12 +29,12 @@ describe("Ground place unique id generation", () => { name: 'Paris - Gare De Lyon', latitude: 48.845784, longitude: 2.373606, - country_code: 'fr', + countryCode: 'fr', type: 'group', }); expect(gpuid).toEqual({ - country_code: 'fr', + countryCode: 'fr', id: 'g|FRpargarly@u09tyh', latitude: 48.845784, longitude: 2.373606, @@ -49,119 +49,119 @@ describe("Ground place unique id generation", () => { name: 'Coimbra, Centro, Portugal', latitude: 40.2162879, longitude: -8.4368065, - country_code: 'pt', + countryCode: 'pt', type: 'cluster', }, { name: 'Troyes, Grand Est, France', latitude: 48.32633, longitude: 4.11027, - country_code: 'fr', + countryCode: 'fr', type: 'cluster', }, { name: 'Bakersfield, CA, California, United States of America', latitude: 35.3732921, longitude: -119.0187125, - country_code: 'us', + countryCode: 'us', type: 'cluster', }, { name: 'Bannemin, Mecklenburg-Vorpommern, Deutschland', latitude: 54.0660299, longitude: 13.8531323, - country_code: 'de', + countryCode: 'de', type: 'cluster', }, { name: 'Bardolino, Veneto, Italia', latitude: 45.5453076, longitude: 10.6914197, - country_code: 'it', + countryCode: 'it', type: 'cluster', }, { name: 'Barstow, CA, California, United States of America', latitude: 34.8957957, longitude: -117.0172826, - country_code: 'us', + countryCode: 'us', type: 'cluster', }, { name: 'Bassano del Grappa, Veneto, Italia', latitude: 45.7657286, longitude: 11.7272747, - country_code: 'it', + countryCode: 'it', type: 'cluster', }, { name: 'Bellaria-Igea Marina, Emilia-Romagna, Italia', latitude: 44.1343597, longitude: 12.4667204, - country_code: 'it', + countryCode: 'it', type: 'cluster', }, { name: 'Bitburg, Rheinland-Pfalz, Deutschland', latitude: 49.9664145, longitude: 6.5298603, - country_code: 'de', + countryCode: 'de', type: 'cluster', }, { name: 'Blythe, CA, California, United States of America', latitude: 33.6177725, longitude: -114.5882607, - country_code: 'us', + countryCode: 'us', type: 'cluster', }, { name: 'Borgo Valsugana, Trentino-Alto Adige, Italia', latitude: 46.0528053, longitude: 11.4626055, - country_code: 'it', + countryCode: 'it', type: 'cluster', }, { name: 'Brenzone sul Garda, Veneto, Italia', latitude: 45.7084285, longitude: 10.7675388, - country_code: 'it', + countryCode: 'it', type: 'cluster', }, { name: 'Bullhead City, AZ, Arizona, United States of America', latitude: 35.1359386, longitude: -114.5285981, - country_code: 'us', + countryCode: 'us', type: 'cluster', }, { name: 'Burbank, CA, California, United States of America', latitude: 34.1808392, longitude: -118.3089661, - country_code: 'us', + countryCode: 'us', type: 'cluster', }, { name: 'B\\u00fcsum, Schleswig-Holstein, Deutschland', latitude: 54.1346218, longitude: 8.8585913, - country_code: 'de', + countryCode: 'de', type: 'cluster', }, { name: 'Castelfranco Veneto, Veneto, Italia', latitude: 45.6716942, longitude: 11.9282388, - country_code: 'it', + countryCode: 'it', type: 'cluster', }, { name: 'Cavallino-Treporti, Veneto, Italia', latitude: 45.4581725, longitude: 12.4616076, - country_code: 'it', + countryCode: 'it', type: 'cluster', }, { @@ -169,35 +169,35 @@ describe("Ground place unique id generation", () => { 'Cerik, Br\\u010dko distrikt Bosne i Hercegovine, Bosna i Hercegovina \\u0411\\u043e\\u0441\\u043d\\u0430 \\u0438 \\u0425\\u0435\\u0440\\u0446\\u0435\\u0433\\u043e\\u0432\\u0438\\u043d\\u0430', latitude: 44.816249, longitude: 18.530346, - country_code: 'ba', + countryCode: 'ba', type: 'cluster', }, { name: 'Cesenatico', latitude: 44.200847, longitude: 12.4052023, - country_code: 'it', + countryCode: 'it', type: 'group', }, { name: 'Cisano', latitude: 45.528962, longitude: 10.7272055, - country_code: 'it', + countryCode: 'it', type: 'group', }, { name: 'João Pessoa, Portugal', latitude: -7.157990, longitude: -34.880901, - country_code: 'pt', + countryCode: 'pt', type: 'cluster', }, { name: 'Bisschopsstraat 14, 1000 Brussel', latitude: 50.850346, longitude: 4.351721, - country_code: 'be', + countryCode: 'be', type: 'cluster', }, { @@ -205,7 +205,7 @@ describe("Ground place unique id generation", () => { name: '73 Rue Victor Hugo, Pontault-Combault, 77340', latitude: 48.784780, longitude: 2.611250, - country_code: 'fr', + countryCode: 'fr', type: 'cluster', }, ]; @@ -216,7 +216,7 @@ describe("Ground place unique id generation", () => { name: 'Coimbra, Centro, Portugal', latitude: 40.2162879, longitude: -8.4368065, - country_code: 'pt', + countryCode: 'pt', type: 'cluster', id: 'c|PTcoimbra_@ez1uz', }, @@ -224,7 +224,7 @@ describe("Ground place unique id generation", () => { name: 'Troyes, Grand Est, France', latitude: 48.32633, longitude: 4.11027, - country_code: 'fr', + countryCode: 'fr', type: 'cluster', id: 'c|FRtroyes__@u0dfv', }, @@ -232,7 +232,7 @@ describe("Ground place unique id generation", () => { name: 'Bakersfield, CA, California, United States of America', latitude: 35.3732921, longitude: -119.0187125, - country_code: 'us', + countryCode: 'us', type: 'cluster', id: 'c|USbakersfi@9q735', }, @@ -240,7 +240,7 @@ describe("Ground place unique id generation", () => { name: 'Bannemin, Mecklenburg-Vorpommern, Deutschland', latitude: 54.0660299, longitude: 13.8531323, - country_code: 'de', + countryCode: 'de', type: 'cluster', id: 'c|DEbannemin@u39ge', }, @@ -248,7 +248,7 @@ describe("Ground place unique id generation", () => { name: 'Bardolino, Veneto, Italia', latitude: 45.5453076, longitude: 10.6914197, - country_code: 'it', + countryCode: 'it', type: 'cluster', id: 'c|ITbardolin@u0pe5', }, @@ -256,7 +256,7 @@ describe("Ground place unique id generation", () => { name: 'Barstow, CA, California, United States of America', latitude: 34.8957957, longitude: -117.0172826, - country_code: 'us', + countryCode: 'us', type: 'cluster', id: 'c|USbarstow_@9qhy9', }, @@ -264,7 +264,7 @@ describe("Ground place unique id generation", () => { name: 'Bassano del Grappa, Veneto, Italia', latitude: 45.7657286, longitude: 11.7272747, - country_code: 'it', + countryCode: 'it', type: 'cluster', id: 'c|ITbassgrap@u20k6', }, @@ -272,7 +272,7 @@ describe("Ground place unique id generation", () => { name: 'Bellaria-Igea Marina, Emilia-Romagna, Italia', latitude: 44.1343597, longitude: 12.4667204, - country_code: 'it', + countryCode: 'it', type: 'cluster', id: 'c|ITbeligema@srbg5', }, @@ -280,7 +280,7 @@ describe("Ground place unique id generation", () => { name: 'Bitburg, Rheinland-Pfalz, Deutschland', latitude: 49.9664145, longitude: 6.5298603, - country_code: 'de', + countryCode: 'de', type: 'cluster', id: 'c|DEbitburg_@u0usk', }, @@ -288,7 +288,7 @@ describe("Ground place unique id generation", () => { name: 'Blythe, CA, California, United States of America', latitude: 33.6177725, longitude: -114.5882607, - country_code: 'us', + countryCode: 'us', type: 'cluster', id: 'c|USblythe__@9myx2', }, @@ -296,7 +296,7 @@ describe("Ground place unique id generation", () => { name: 'Borgo Valsugana, Trentino-Alto Adige, Italia', latitude: 46.0528053, longitude: 11.4626055, - country_code: 'it', + countryCode: 'it', type: 'cluster', id: 'c|ITborgvals@u20ju', }, @@ -304,7 +304,7 @@ describe("Ground place unique id generation", () => { name: 'Brenzone sul Garda, Veneto, Italia', latitude: 45.7084285, longitude: 10.7675388, - country_code: 'it', + countryCode: 'it', type: 'cluster', id: 'c|ITbrengard@u0psj', }, @@ -312,7 +312,7 @@ describe("Ground place unique id generation", () => { name: 'Bullhead City, AZ, Arizona, United States of America', latitude: 35.1359386, longitude: -114.5285981, - country_code: 'us', + countryCode: 'us', type: 'cluster', id: 'c|USbullcity@9qnxc', }, @@ -320,7 +320,7 @@ describe("Ground place unique id generation", () => { name: 'Burbank, CA, California, United States of America', latitude: 34.1808392, longitude: -118.3089661, - country_code: 'us', + countryCode: 'us', type: 'cluster', id: 'c|USburbank_@9q5f7', }, @@ -328,7 +328,7 @@ describe("Ground place unique id generation", () => { name: 'B\\u00fcsum, Schleswig-Holstein, Deutschland', latitude: 54.1346218, longitude: 8.8585913, - country_code: 'de', + countryCode: 'de', type: 'cluster', id: 'c|DEb\\u00fcs@u1w7c', }, @@ -336,7 +336,7 @@ describe("Ground place unique id generation", () => { name: 'Castelfranco Veneto, Veneto, Italia', latitude: 45.6716942, longitude: 11.9282388, - country_code: 'it', + countryCode: 'it', type: 'cluster', id: 'c|ITcastvene@u207z', }, @@ -344,7 +344,7 @@ describe("Ground place unique id generation", () => { name: 'Cavallino-Treporti, Veneto, Italia', latitude: 45.4581725, longitude: 12.4616076, - country_code: 'it', + countryCode: 'it', type: 'cluster', id: 'c|ITcavatrep@u20fe', }, @@ -353,7 +353,7 @@ describe("Ground place unique id generation", () => { 'Cerik, Br\\u010dko distrikt Bosne i Hercegovine, Bosna i Hercegovina \\u0411\\u043e\\u0441\\u043d\\u0430 \\u0438 \\u0425\\u0435\\u0440\\u0446\\u0435\\u0433\\u043e\\u0432\\u0438\\u043d\\u0430', latitude: 44.816249, longitude: 18.530346, - country_code: 'ba', + countryCode: 'ba', type: 'cluster', id: 'c|BAcerik___@srvnv', }, @@ -361,7 +361,7 @@ describe("Ground place unique id generation", () => { name: 'Cesenatico', latitude: 44.200847, longitude: 12.4052023, - country_code: 'it', + countryCode: 'it', type: 'group', id: 'g|ITcesenati@srbg6q', }, @@ -369,34 +369,34 @@ describe("Ground place unique id generation", () => { name: 'Cisano', latitude: 45.528962, longitude: 10.7272055, - country_code: 'it', + countryCode: 'it', type: 'group', id: 'g|ITcisano__@u0peh0', }, { - country_code: "pt", - id: "c|PTjoaopess@7nxpq", + countryCode: 'pt', + id: 'c|PTjoaopess@7nxpq', latitude: -7.15799, longitude: -34.880901, - name: "João Pessoa, Portugal", - type: "cluster", + name: 'João Pessoa, Portugal', + type: 'cluster', }, { - country_code: "be", - id: "c|BEbiss14__@u1516", + countryCode: 'be', + id: 'c|BEbiss14__@u1516', latitude: 50.850346, longitude: 4.351721, - name: "Bisschopsstraat 14, 1000 Brussel", - type: "cluster", + name: 'Bisschopsstraat 14, 1000 Brussel', + type: 'cluster', }, { - ancestor_id: "fakeId", - country_code: "fr", - id: "c|FR73ruvihu@u09ve", + ancestorId: 'fakeId', + countryCode: 'fr', + id: 'c|FR73ruvihu@u09ve', latitude: 48.78478, longitude: 2.61125, - name: "73 Rue Victor Hugo, Pontault-Combault, 77340", - type: "cluster", + name: '73 Rue Victor Hugo, Pontault-Combault, 77340', + type: 'cluster', }, ]); }); diff --git a/src/config.ts b/src/config.ts index 1338b4d..bd9ac7a 100644 --- a/src/config.ts +++ b/src/config.ts @@ -27,7 +27,7 @@ const configuration: IConfiguration = { hash_precision: 6, name_length: 8, }, - require_field: ['name', 'type', 'latitude', 'longitude', 'country_code'], + require_field: ['name', 'type', 'latitude', 'longitude', 'countryCode'], }; export { diff --git a/src/generator.ts b/src/generator.ts index 1162ce6..8c9e6c1 100644 --- a/src/generator.ts +++ b/src/generator.ts @@ -2,13 +2,13 @@ import * as geohash from 'ngeohash'; import * as sw from 'stopword'; import { configuration } from './config'; -interface IPlace { +export interface IPlace { id?: string; - ancestor_id?: string; + ancestorId?: string; name: string; latitude: number; longitude: number; - country_code: string; + countryCode: string; type: string; // tslint:disable-line: no-reserved-keywords } @@ -138,7 +138,7 @@ export class Generator { * @return {string} */ private getId(place: IPlace): string { - const hashname: string = this.hash(place.name, place.type, place.country_code); + const hashname: string = this.hash(place.name, place.type, place.countryCode); const roundedLat: string = this.roundCoord(place.latitude, place.type); const roundLng: string = this.roundCoord(place.longitude, place.type); @@ -160,7 +160,7 @@ export class Generator { const results = places.map((place: IPlace) => { let placeTmp = place; if(place.id !== undefined) { - placeTmp = { ancestor_id: place.id, ...place}; + placeTmp = { ancestorId: place.id, ...place}; } placeTmp.id = this.getId(place); @@ -181,25 +181,25 @@ export class Generator { */ private replaceChar(str: string): string { const specialChars = { - "Á":"A","Ă":"A","Ắ":"A","Ặ":"A","Ằ":"A", - "Ẳ":"A","Ẵ":"A","Ǎ":"A","Â":"A","Ấ":"A", - "Ậ":"A","Ầ":"A","Ẩ":"A","Ẫ":"A","Ä":"A", - "Ǟ":"A","Ȧ":"A","Ǡ":"A","Ạ":"A","Ȁ":"A", - "À":"A","Ả":"A","Ȃ":"A","Ā":"A","Ą":"A", - "Å":"A","Ǻ":"A","Ḁ":"A","Ⱥ":"A","Ã":"A", - "Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE", - "Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY", - "Ḃ":"B","Ḅ":"B","Ɓ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B", - "Ć":"C","Č":"C","Ç":"C","Ḉ":"C","Ĉ":"C","Ċ":"C", - "Ƈ":"C","Ȼ":"C","Ď":"D","Ḑ":"D","Ḓ":"D","Ḋ":"D", - "Ḍ":"D","Ɗ":"D","Ḏ":"D","Dz":"D","Dž":"D","Đ":"D", - "Ƌ":"D","DZ":"DZ","DŽ":"DZ","É":"E","Ĕ":"E","Ě":"E", - "Ȩ":"E","Ḝ":"E","Ê":"E","Ế":"E","Ệ":"E","Ề":"E", - "Ể":"E","Ễ":"E","Ḙ":"E","Ë":"E","Ė":"E","Ẹ":"E", - "Ȅ":"E","È":"E","Ẻ":"E","Ȇ":"E","Ē":"E","Ḗ":"E", - "Ḕ":"E","Ę":"E","Ɇ":"E","Ẽ":"E","Ḛ":"E","Ꝫ":"ET" - ,"Ḟ":"F","Ƒ":"F","Ǵ":"G","Ğ":"G","Ǧ":"G","Ģ":"G", - "Ĝ":"G","Ġ":"G","Ɠ":"G","Ḡ":"G","Ǥ":"G","Ḫ":"H","Ȟ":"H","Ḩ":"H","Ĥ":"H","Ⱨ":"H","Ḧ":"H","Ḣ":"H","Ḥ":"H","Ħ":"H","Í":"I","Ĭ":"I","Ǐ":"I","Î":"I","Ï":"I","Ḯ":"I","İ":"I","Ị":"I","Ȉ":"I","Ì":"I","Ỉ":"I","Ȋ":"I","Ī":"I","Į":"I","Ɨ":"I","Ĩ":"I","Ḭ":"I","Ꝺ":"D","Ꝼ":"F","Ᵹ":"G","Ꞃ":"R","Ꞅ":"S","Ꞇ":"T","Ꝭ":"IS","Ĵ":"J","Ɉ":"J","Ḱ":"K","Ǩ":"K","Ķ":"K","Ⱪ":"K","Ꝃ":"K","Ḳ":"K","Ƙ":"K","Ḵ":"K","Ꝁ":"K","Ꝅ":"K","Ĺ":"L","Ƚ":"L","Ľ":"L","Ļ":"L","Ḽ":"L","Ḷ":"L","Ḹ":"L","Ⱡ":"L","Ꝉ":"L","Ḻ":"L","Ŀ":"L","Ɫ":"L","Lj":"L","Ł":"L","LJ":"LJ","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ń":"N","Ň":"N","Ņ":"N","Ṋ":"N","Ṅ":"N","Ṇ":"N","Ǹ":"N","Ɲ":"N","Ṉ":"N","Ƞ":"N","Nj":"N","Ñ":"N","NJ":"NJ","Ó":"O","Ŏ":"O","Ǒ":"O","Ô":"O","Ố":"O","Ộ":"O","Ồ":"O","Ổ":"O","Ỗ":"O","Ö":"O","Ȫ":"O","Ȯ":"O","Ȱ":"O","Ọ":"O","Ő":"O","Ȍ":"O","Ò":"O","Ỏ":"O","Ơ":"O","Ớ":"O","Ợ":"O","Ờ":"O","Ở":"O","Ỡ":"O","Ȏ":"O","Ꝋ":"O","Ꝍ":"O","Ō":"O","Ṓ":"O","Ṑ":"O","Ɵ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Õ":"O","Ṍ":"O","Ṏ":"O","Ȭ":"O","Ƣ":"OI","Ꝏ":"OO","Ɛ":"E","Ɔ":"O","Ȣ":"OU","Ṕ":"P","Ṗ":"P","Ꝓ":"P","Ƥ":"P","Ꝕ":"P","Ᵽ":"P","Ꝑ":"P","Ꝙ":"Q","Ꝗ":"Q","Ŕ":"R","Ř":"R","Ŗ":"R","Ṙ":"R","Ṛ":"R","Ṝ":"R","Ȑ":"R","Ȓ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꜿ":"C","Ǝ":"E","Ś":"S","Ṥ":"S","Š":"S","Ṧ":"S","Ş":"S","Ŝ":"S","Ș":"S","Ṡ":"S","Ṣ":"S","Ṩ":"S","Ť":"T","Ţ":"T","Ṱ":"T","Ț":"T","Ⱦ":"T","Ṫ":"T","Ṭ":"T","Ƭ":"T","Ṯ":"T","Ʈ":"T","Ŧ":"T","Ɐ":"A","Ꞁ":"L","Ɯ":"M","Ʌ":"V","Ꜩ":"TZ","Ú":"U","Ŭ":"U","Ǔ":"U","Û":"U","Ṷ":"U","Ü":"U","Ǘ":"U","Ǚ":"U","Ǜ":"U","Ǖ":"U","Ṳ":"U","Ụ":"U","Ű":"U","Ȕ":"U","Ù":"U","Ủ":"U","Ư":"U","Ứ":"U","Ự":"U","Ừ":"U","Ử":"U","Ữ":"U","Ȗ":"U","Ū":"U","Ṻ":"U","Ų":"U","Ů":"U","Ũ":"U","Ṹ":"U","Ṵ":"U","Ꝟ":"V","Ṿ":"V","Ʋ":"V","Ṽ":"V","Ꝡ":"VY","Ẃ":"W","Ŵ":"W","Ẅ":"W","Ẇ":"W","Ẉ":"W","Ẁ":"W","Ⱳ":"W","Ẍ":"X","Ẋ":"X","Ý":"Y","Ŷ":"Y","Ÿ":"Y","Ẏ":"Y","Ỵ":"Y","Ỳ":"Y","Ƴ":"Y","Ỷ":"Y","Ỿ":"Y","Ȳ":"Y","Ɏ":"Y","Ỹ":"Y","Ź":"Z","Ž":"Z","Ẑ":"Z","Ⱬ":"Z","Ż":"Z","Ẓ":"Z","Ȥ":"Z","Ẕ":"Z","Ƶ":"Z","IJ":"IJ","Œ":"OE","ᴀ":"A","ᴁ":"AE","ʙ":"B","ᴃ":"B","ᴄ":"C","ᴅ":"D","ᴇ":"E","ꜰ":"F","ɢ":"G","ʛ":"G","ʜ":"H","ɪ":"I","ʁ":"R","ᴊ":"J","ᴋ":"K","ʟ":"L","ᴌ":"L","ᴍ":"M","ɴ":"N","ᴏ":"O","ɶ":"OE","ᴐ":"O","ᴕ":"OU","ᴘ":"P","ʀ":"R","ᴎ":"N","ᴙ":"R","ꜱ":"S","ᴛ":"T","ⱻ":"E","ᴚ":"R","ᴜ":"U","ᴠ":"V","ᴡ":"W","ʏ":"Y","ᴢ":"Z","á":"a","ă":"a","ắ":"a","ặ":"a","ằ":"a","ẳ":"a","ẵ":"a","ǎ":"a","â":"a","ấ":"a","ậ":"a","ầ":"a","ẩ":"a","ẫ":"a","ä":"a","ǟ":"a","ȧ":"a","ǡ":"a","ạ":"a","ȁ":"a","à":"a","ả":"a","ȃ":"a","ā":"a","ą":"a","ᶏ":"a","ẚ":"a","å":"a","ǻ":"a","ḁ":"a","ⱥ":"a","ã":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ḃ":"b","ḅ":"b","ɓ":"b","ḇ":"b","ᵬ":"b","ᶀ":"b","ƀ":"b","ƃ":"b","ɵ":"o","ć":"c","č":"c","ç":"c","ḉ":"c","ĉ":"c","ɕ":"c","ċ":"c","ƈ":"c","ȼ":"c","ď":"d","ḑ":"d","ḓ":"d","ȡ":"d","ḋ":"d","ḍ":"d","ɗ":"d","ᶑ":"d","ḏ":"d","ᵭ":"d","ᶁ":"d","đ":"d","ɖ":"d","ƌ":"d","ı":"i","ȷ":"j","ɟ":"j","ʄ":"j","dz":"dz","dž":"dz","é":"e","ĕ":"e","ě":"e","ȩ":"e","ḝ":"e","ê":"e","ế":"e","ệ":"e","ề":"e","ể":"e","ễ":"e","ḙ":"e","ë":"e","ė":"e","ẹ":"e","ȅ":"e","è":"e","ẻ":"e","ȇ":"e","ē":"e","ḗ":"e","ḕ":"e","ⱸ":"e","ę":"e","ᶒ":"e","ɇ":"e","ẽ":"e","ḛ":"e","ꝫ":"et","ḟ":"f","ƒ":"f","ᵮ":"f","ᶂ":"f","ǵ":"g","ğ":"g","ǧ":"g","ģ":"g","ĝ":"g","ġ":"g","ɠ":"g","ḡ":"g","ᶃ":"g","ǥ":"g","ḫ":"h","ȟ":"h","ḩ":"h","ĥ":"h","ⱨ":"h","ḧ":"h","ḣ":"h","ḥ":"h","ɦ":"h","ẖ":"h","ħ":"h","ƕ":"hv","í":"i","ĭ":"i","ǐ":"i","î":"i","ï":"i","ḯ":"i","ị":"i","ȉ":"i","ì":"i","ỉ":"i","ȋ":"i","ī":"i","į":"i","ᶖ":"i","ɨ":"i","ĩ":"i","ḭ":"i","ꝺ":"d","ꝼ":"f","ᵹ":"g","ꞃ":"r","ꞅ":"s","ꞇ":"t","ꝭ":"is","ǰ":"j","ĵ":"j","ʝ":"j","ɉ":"j","ḱ":"k","ǩ":"k","ķ":"k","ⱪ":"k","ꝃ":"k","ḳ":"k","ƙ":"k","ḵ":"k","ᶄ":"k","ꝁ":"k","ꝅ":"k","ĺ":"l","ƚ":"l","ɬ":"l","ľ":"l","ļ":"l","ḽ":"l","ȴ":"l","ḷ":"l","ḹ":"l","ⱡ":"l","ꝉ":"l","ḻ":"l","ŀ":"l","ɫ":"l","ᶅ":"l","ɭ":"l","ł":"l","lj":"lj","ſ":"s","ẜ":"s","ẛ":"s","ẝ":"s","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ᵯ":"m","ᶆ":"m","ń":"n","ň":"n","ņ":"n","ṋ":"n","ȵ":"n","ṅ":"n","ṇ":"n","ǹ":"n","ɲ":"n","ṉ":"n","ƞ":"n","ᵰ":"n","ᶇ":"n","ɳ":"n","ñ":"n","nj":"nj","ó":"o","ŏ":"o","ǒ":"o","ô":"o","ố":"o","ộ":"o","ồ":"o","ổ":"o","ỗ":"o","ö":"o","ȫ":"o","ȯ":"o","ȱ":"o","ọ":"o","ő":"o","ȍ":"o","ò":"o","ỏ":"o","ơ":"o","ớ":"o","ợ":"o","ờ":"o","ở":"o","ỡ":"o","ȏ":"o","ꝋ":"o","ꝍ":"o","ⱺ":"o","ō":"o","ṓ":"o","ṑ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","õ":"o","ṍ":"o","ṏ":"o","ȭ":"o","ƣ":"oi","ꝏ":"oo","ɛ":"e","ᶓ":"e","ɔ":"o","ᶗ":"o","ȣ":"ou","ṕ":"p","ṗ":"p","ꝓ":"p","ƥ":"p","ᵱ":"p","ᶈ":"p","ꝕ":"p","ᵽ":"p","ꝑ":"p","ꝙ":"q","ʠ":"q","ɋ":"q","ꝗ":"q","ŕ":"r","ř":"r","ŗ":"r","ṙ":"r","ṛ":"r","ṝ":"r","ȑ":"r","ɾ":"r","ᵳ":"r","ȓ":"r","ṟ":"r","ɼ":"r","ᵲ":"r","ᶉ":"r","ɍ":"r","ɽ":"r","ↄ":"c","ꜿ":"c","ɘ":"e","ɿ":"r","ś":"s","ṥ":"s","š":"s","ṧ":"s","ş":"s","ŝ":"s","ș":"s","ṡ":"s","ṣ":"s","ṩ":"s","ʂ":"s","ᵴ":"s","ᶊ":"s","ȿ":"s","ɡ":"g","ᴑ":"o","ᴓ":"o","ᴝ":"u","ť":"t","ţ":"t","ṱ":"t","ț":"t","ȶ":"t","ẗ":"t","ⱦ":"t","ṫ":"t","ṭ":"t","ƭ":"t","ṯ":"t","ᵵ":"t","ƫ":"t","ʈ":"t","ŧ":"t","ᵺ":"th","ɐ":"a","ᴂ":"ae","ǝ":"e","ᵷ":"g","ɥ":"h","ʮ":"h","ʯ":"h","ᴉ":"i","ʞ":"k","ꞁ":"l","ɯ":"m","ɰ":"m","ᴔ":"oe","ɹ":"r","ɻ":"r","ɺ":"r","ⱹ":"r","ʇ":"t","ʌ":"v","ʍ":"w","ʎ":"y","ꜩ":"tz","ú":"u","ŭ":"u","ǔ":"u","û":"u","ṷ":"u","ü":"u","ǘ":"u","ǚ":"u","ǜ":"u","ǖ":"u","ṳ":"u","ụ":"u","ű":"u","ȕ":"u","ù":"u","ủ":"u","ư":"u","ứ":"u","ự":"u","ừ":"u","ử":"u","ữ":"u","ȗ":"u","ū":"u","ṻ":"u","ų":"u","ᶙ":"u","ů":"u","ũ":"u","ṹ":"u","ṵ":"u","ᵫ":"ue","ꝸ":"um","ⱴ":"v","ꝟ":"v","ṿ":"v","ʋ":"v","ᶌ":"v","ⱱ":"v","ṽ":"v","ꝡ":"vy","ẃ":"w","ŵ":"w","ẅ":"w","ẇ":"w","ẉ":"w","ẁ":"w","ⱳ":"w","ẘ":"w","ẍ":"x","ẋ":"x","ᶍ":"x","ý":"y","ŷ":"y","ÿ":"y","ẏ":"y","ỵ":"y","ỳ":"y","ƴ":"y","ỷ":"y","ỿ":"y","ȳ":"y","ẙ":"y","ɏ":"y","ỹ":"y","ź":"z","ž":"z","ẑ":"z","ʑ":"z","ⱬ":"z","ż":"z","ẓ":"z","ȥ":"z","ẕ":"z","ᵶ":"z","ᶎ":"z","ʐ":"z","ƶ":"z","ɀ":"z","ff":"ff","ffi":"ffi","ffl":"ffl","fi":"fi","fl":"fl","ij":"ij","œ":"oe","st":"st","ₐ":"a","ₑ":"e","ᵢ":"i","ⱼ":"j","ₒ":"o","ᵣ":"r","ᵤ":"u","ᵥ":"v","ₓ":"x" + 'Á':'A','Ă':'A','Ắ':'A','Ặ':'A','Ằ':'A', + 'Ẳ':'A','Ẵ':'A','Ǎ':'A','Â':'A','Ấ':'A', + 'Ậ':'A','Ầ':'A','Ẩ':'A','Ẫ':'A','Ä':'A', + 'Ǟ':'A','Ȧ':'A','Ǡ':'A','Ạ':'A','Ȁ':'A', + 'À':'A','Ả':'A','Ȃ':'A','Ā':'A','Ą':'A', + 'Å':'A','Ǻ':'A','Ḁ':'A','Ⱥ':'A','Ã':'A', + 'Ꜳ':'AA','Æ':'AE','Ǽ':'AE','Ǣ':'AE', + 'Ꜵ':'AO','Ꜷ':'AU','Ꜹ':'AV','Ꜻ':'AV','Ꜽ':'AY', + 'Ḃ':'B','Ḅ':'B','Ɓ':'B','Ḇ':'B','Ƀ':'B','Ƃ':'B', + 'Ć':'C','Č':'C','Ç':'C','Ḉ':'C','Ĉ':'C','Ċ':'C', + 'Ƈ':'C','Ȼ':'C','Ď':'D','Ḑ':'D','Ḓ':'D','Ḋ':'D', + 'Ḍ':'D','Ɗ':'D','Ḏ':'D','Dz':'D','Dž':'D','Đ':'D', + 'Ƌ':'D','DZ':'DZ','DŽ':'DZ','É':'E','Ĕ':'E','Ě':'E', + 'Ȩ':'E','Ḝ':'E','Ê':'E','Ế':'E','Ệ':'E','Ề':'E', + 'Ể':'E','Ễ':'E','Ḙ':'E','Ë':'E','Ė':'E','Ẹ':'E', + 'Ȅ':'E','È':'E','Ẻ':'E','Ȇ':'E','Ē':'E','Ḗ':'E', + 'Ḕ':'E','Ę':'E','Ɇ':'E','Ẽ':'E','Ḛ':'E','Ꝫ':'ET' + ,'Ḟ':'F','Ƒ':'F','Ǵ':'G','Ğ':'G','Ǧ':'G','Ģ':'G', + 'Ĝ':'G','Ġ':'G','Ɠ':'G','Ḡ':'G','Ǥ':'G','Ḫ':'H','Ȟ':'H','Ḩ':'H','Ĥ':'H','Ⱨ':'H','Ḧ':'H','Ḣ':'H','Ḥ':'H','Ħ':'H','Í':'I','Ĭ':'I','Ǐ':'I','Î':'I','Ï':'I','Ḯ':'I','İ':'I','Ị':'I','Ȉ':'I','Ì':'I','Ỉ':'I','Ȋ':'I','Ī':'I','Į':'I','Ɨ':'I','Ĩ':'I','Ḭ':'I','Ꝺ':'D','Ꝼ':'F','Ᵹ':'G','Ꞃ':'R','Ꞅ':'S','Ꞇ':'T','Ꝭ':'IS','Ĵ':'J','Ɉ':'J','Ḱ':'K','Ǩ':'K','Ķ':'K','Ⱪ':'K','Ꝃ':'K','Ḳ':'K','Ƙ':'K','Ḵ':'K','Ꝁ':'K','Ꝅ':'K','Ĺ':'L','Ƚ':'L','Ľ':'L','Ļ':'L','Ḽ':'L','Ḷ':'L','Ḹ':'L','Ⱡ':'L','Ꝉ':'L','Ḻ':'L','Ŀ':'L','Ɫ':'L','Lj':'L','Ł':'L','LJ':'LJ','Ḿ':'M','Ṁ':'M','Ṃ':'M','Ɱ':'M','Ń':'N','Ň':'N','Ņ':'N','Ṋ':'N','Ṅ':'N','Ṇ':'N','Ǹ':'N','Ɲ':'N','Ṉ':'N','Ƞ':'N','Nj':'N','Ñ':'N','NJ':'NJ','Ó':'O','Ŏ':'O','Ǒ':'O','Ô':'O','Ố':'O','Ộ':'O','Ồ':'O','Ổ':'O','Ỗ':'O','Ö':'O','Ȫ':'O','Ȯ':'O','Ȱ':'O','Ọ':'O','Ő':'O','Ȍ':'O','Ò':'O','Ỏ':'O','Ơ':'O','Ớ':'O','Ợ':'O','Ờ':'O','Ở':'O','Ỡ':'O','Ȏ':'O','Ꝋ':'O','Ꝍ':'O','Ō':'O','Ṓ':'O','Ṑ':'O','Ɵ':'O','Ǫ':'O','Ǭ':'O','Ø':'O','Ǿ':'O','Õ':'O','Ṍ':'O','Ṏ':'O','Ȭ':'O','Ƣ':'OI','Ꝏ':'OO','Ɛ':'E','Ɔ':'O','Ȣ':'OU','Ṕ':'P','Ṗ':'P','Ꝓ':'P','Ƥ':'P','Ꝕ':'P','Ᵽ':'P','Ꝑ':'P','Ꝙ':'Q','Ꝗ':'Q','Ŕ':'R','Ř':'R','Ŗ':'R','Ṙ':'R','Ṛ':'R','Ṝ':'R','Ȑ':'R','Ȓ':'R','Ṟ':'R','Ɍ':'R','Ɽ':'R','Ꜿ':'C','Ǝ':'E','Ś':'S','Ṥ':'S','Š':'S','Ṧ':'S','Ş':'S','Ŝ':'S','Ș':'S','Ṡ':'S','Ṣ':'S','Ṩ':'S','Ť':'T','Ţ':'T','Ṱ':'T','Ț':'T','Ⱦ':'T','Ṫ':'T','Ṭ':'T','Ƭ':'T','Ṯ':'T','Ʈ':'T','Ŧ':'T','Ɐ':'A','Ꞁ':'L','Ɯ':'M','Ʌ':'V','Ꜩ':'TZ','Ú':'U','Ŭ':'U','Ǔ':'U','Û':'U','Ṷ':'U','Ü':'U','Ǘ':'U','Ǚ':'U','Ǜ':'U','Ǖ':'U','Ṳ':'U','Ụ':'U','Ű':'U','Ȕ':'U','Ù':'U','Ủ':'U','Ư':'U','Ứ':'U','Ự':'U','Ừ':'U','Ử':'U','Ữ':'U','Ȗ':'U','Ū':'U','Ṻ':'U','Ų':'U','Ů':'U','Ũ':'U','Ṹ':'U','Ṵ':'U','Ꝟ':'V','Ṿ':'V','Ʋ':'V','Ṽ':'V','Ꝡ':'VY','Ẃ':'W','Ŵ':'W','Ẅ':'W','Ẇ':'W','Ẉ':'W','Ẁ':'W','Ⱳ':'W','Ẍ':'X','Ẋ':'X','Ý':'Y','Ŷ':'Y','Ÿ':'Y','Ẏ':'Y','Ỵ':'Y','Ỳ':'Y','Ƴ':'Y','Ỷ':'Y','Ỿ':'Y','Ȳ':'Y','Ɏ':'Y','Ỹ':'Y','Ź':'Z','Ž':'Z','Ẑ':'Z','Ⱬ':'Z','Ż':'Z','Ẓ':'Z','Ȥ':'Z','Ẕ':'Z','Ƶ':'Z','IJ':'IJ','Œ':'OE','ᴀ':'A','ᴁ':'AE','ʙ':'B','ᴃ':'B','ᴄ':'C','ᴅ':'D','ᴇ':'E','ꜰ':'F','ɢ':'G','ʛ':'G','ʜ':'H','ɪ':'I','ʁ':'R','ᴊ':'J','ᴋ':'K','ʟ':'L','ᴌ':'L','ᴍ':'M','ɴ':'N','ᴏ':'O','ɶ':'OE','ᴐ':'O','ᴕ':'OU','ᴘ':'P','ʀ':'R','ᴎ':'N','ᴙ':'R','ꜱ':'S','ᴛ':'T','ⱻ':'E','ᴚ':'R','ᴜ':'U','ᴠ':'V','ᴡ':'W','ʏ':'Y','ᴢ':'Z','á':'a','ă':'a','ắ':'a','ặ':'a','ằ':'a','ẳ':'a','ẵ':'a','ǎ':'a','â':'a','ấ':'a','ậ':'a','ầ':'a','ẩ':'a','ẫ':'a','ä':'a','ǟ':'a','ȧ':'a','ǡ':'a','ạ':'a','ȁ':'a','à':'a','ả':'a','ȃ':'a','ā':'a','ą':'a','ᶏ':'a','ẚ':'a','å':'a','ǻ':'a','ḁ':'a','ⱥ':'a','ã':'a','ꜳ':'aa','æ':'ae','ǽ':'ae','ǣ':'ae','ꜵ':'ao','ꜷ':'au','ꜹ':'av','ꜻ':'av','ꜽ':'ay','ḃ':'b','ḅ':'b','ɓ':'b','ḇ':'b','ᵬ':'b','ᶀ':'b','ƀ':'b','ƃ':'b','ɵ':'o','ć':'c','č':'c','ç':'c','ḉ':'c','ĉ':'c','ɕ':'c','ċ':'c','ƈ':'c','ȼ':'c','ď':'d','ḑ':'d','ḓ':'d','ȡ':'d','ḋ':'d','ḍ':'d','ɗ':'d','ᶑ':'d','ḏ':'d','ᵭ':'d','ᶁ':'d','đ':'d','ɖ':'d','ƌ':'d','ı':'i','ȷ':'j','ɟ':'j','ʄ':'j','dz':'dz','dž':'dz','é':'e','ĕ':'e','ě':'e','ȩ':'e','ḝ':'e','ê':'e','ế':'e','ệ':'e','ề':'e','ể':'e','ễ':'e','ḙ':'e','ë':'e','ė':'e','ẹ':'e','ȅ':'e','è':'e','ẻ':'e','ȇ':'e','ē':'e','ḗ':'e','ḕ':'e','ⱸ':'e','ę':'e','ᶒ':'e','ɇ':'e','ẽ':'e','ḛ':'e','ꝫ':'et','ḟ':'f','ƒ':'f','ᵮ':'f','ᶂ':'f','ǵ':'g','ğ':'g','ǧ':'g','ģ':'g','ĝ':'g','ġ':'g','ɠ':'g','ḡ':'g','ᶃ':'g','ǥ':'g','ḫ':'h','ȟ':'h','ḩ':'h','ĥ':'h','ⱨ':'h','ḧ':'h','ḣ':'h','ḥ':'h','ɦ':'h','ẖ':'h','ħ':'h','ƕ':'hv','í':'i','ĭ':'i','ǐ':'i','î':'i','ï':'i','ḯ':'i','ị':'i','ȉ':'i','ì':'i','ỉ':'i','ȋ':'i','ī':'i','į':'i','ᶖ':'i','ɨ':'i','ĩ':'i','ḭ':'i','ꝺ':'d','ꝼ':'f','ᵹ':'g','ꞃ':'r','ꞅ':'s','ꞇ':'t','ꝭ':'is','ǰ':'j','ĵ':'j','ʝ':'j','ɉ':'j','ḱ':'k','ǩ':'k','ķ':'k','ⱪ':'k','ꝃ':'k','ḳ':'k','ƙ':'k','ḵ':'k','ᶄ':'k','ꝁ':'k','ꝅ':'k','ĺ':'l','ƚ':'l','ɬ':'l','ľ':'l','ļ':'l','ḽ':'l','ȴ':'l','ḷ':'l','ḹ':'l','ⱡ':'l','ꝉ':'l','ḻ':'l','ŀ':'l','ɫ':'l','ᶅ':'l','ɭ':'l','ł':'l','lj':'lj','ſ':'s','ẜ':'s','ẛ':'s','ẝ':'s','ḿ':'m','ṁ':'m','ṃ':'m','ɱ':'m','ᵯ':'m','ᶆ':'m','ń':'n','ň':'n','ņ':'n','ṋ':'n','ȵ':'n','ṅ':'n','ṇ':'n','ǹ':'n','ɲ':'n','ṉ':'n','ƞ':'n','ᵰ':'n','ᶇ':'n','ɳ':'n','ñ':'n','nj':'nj','ó':'o','ŏ':'o','ǒ':'o','ô':'o','ố':'o','ộ':'o','ồ':'o','ổ':'o','ỗ':'o','ö':'o','ȫ':'o','ȯ':'o','ȱ':'o','ọ':'o','ő':'o','ȍ':'o','ò':'o','ỏ':'o','ơ':'o','ớ':'o','ợ':'o','ờ':'o','ở':'o','ỡ':'o','ȏ':'o','ꝋ':'o','ꝍ':'o','ⱺ':'o','ō':'o','ṓ':'o','ṑ':'o','ǫ':'o','ǭ':'o','ø':'o','ǿ':'o','õ':'o','ṍ':'o','ṏ':'o','ȭ':'o','ƣ':'oi','ꝏ':'oo','ɛ':'e','ᶓ':'e','ɔ':'o','ᶗ':'o','ȣ':'ou','ṕ':'p','ṗ':'p','ꝓ':'p','ƥ':'p','ᵱ':'p','ᶈ':'p','ꝕ':'p','ᵽ':'p','ꝑ':'p','ꝙ':'q','ʠ':'q','ɋ':'q','ꝗ':'q','ŕ':'r','ř':'r','ŗ':'r','ṙ':'r','ṛ':'r','ṝ':'r','ȑ':'r','ɾ':'r','ᵳ':'r','ȓ':'r','ṟ':'r','ɼ':'r','ᵲ':'r','ᶉ':'r','ɍ':'r','ɽ':'r','ↄ':'c','ꜿ':'c','ɘ':'e','ɿ':'r','ś':'s','ṥ':'s','š':'s','ṧ':'s','ş':'s','ŝ':'s','ș':'s','ṡ':'s','ṣ':'s','ṩ':'s','ʂ':'s','ᵴ':'s','ᶊ':'s','ȿ':'s','ɡ':'g','ᴑ':'o','ᴓ':'o','ᴝ':'u','ť':'t','ţ':'t','ṱ':'t','ț':'t','ȶ':'t','ẗ':'t','ⱦ':'t','ṫ':'t','ṭ':'t','ƭ':'t','ṯ':'t','ᵵ':'t','ƫ':'t','ʈ':'t','ŧ':'t','ᵺ':'th','ɐ':'a','ᴂ':'ae','ǝ':'e','ᵷ':'g','ɥ':'h','ʮ':'h','ʯ':'h','ᴉ':'i','ʞ':'k','ꞁ':'l','ɯ':'m','ɰ':'m','ᴔ':'oe','ɹ':'r','ɻ':'r','ɺ':'r','ⱹ':'r','ʇ':'t','ʌ':'v','ʍ':'w','ʎ':'y','ꜩ':'tz','ú':'u','ŭ':'u','ǔ':'u','û':'u','ṷ':'u','ü':'u','ǘ':'u','ǚ':'u','ǜ':'u','ǖ':'u','ṳ':'u','ụ':'u','ű':'u','ȕ':'u','ù':'u','ủ':'u','ư':'u','ứ':'u','ự':'u','ừ':'u','ử':'u','ữ':'u','ȗ':'u','ū':'u','ṻ':'u','ų':'u','ᶙ':'u','ů':'u','ũ':'u','ṹ':'u','ṵ':'u','ᵫ':'ue','ꝸ':'um','ⱴ':'v','ꝟ':'v','ṿ':'v','ʋ':'v','ᶌ':'v','ⱱ':'v','ṽ':'v','ꝡ':'vy','ẃ':'w','ŵ':'w','ẅ':'w','ẇ':'w','ẉ':'w','ẁ':'w','ⱳ':'w','ẘ':'w','ẍ':'x','ẋ':'x','ᶍ':'x','ý':'y','ŷ':'y','ÿ':'y','ẏ':'y','ỵ':'y','ỳ':'y','ƴ':'y','ỷ':'y','ỿ':'y','ȳ':'y','ẙ':'y','ɏ':'y','ỹ':'y','ź':'z','ž':'z','ẑ':'z','ʑ':'z','ⱬ':'z','ż':'z','ẓ':'z','ȥ':'z','ẕ':'z','ᵶ':'z','ᶎ':'z','ʐ':'z','ƶ':'z','ɀ':'z','ff':'ff','ffi':'ffi','ffl':'ffl','fi':'fi','fl':'fl','ij':'ij','œ':'oe','st':'st','ₐ':'a','ₑ':'e','ᵢ':'i','ⱼ':'j','ₒ':'o','ᵣ':'r','ᵤ':'u','ᵥ':'v','ₓ':'x' }; const output = str.split('') @@ -217,7 +217,7 @@ export class Generator { * @return {string} */ private sanitize(str: string, countryCode:string): string { - const latinWord: string = this.replaceChar(str).toLowerCase().replace(/\(|\)|\.|"|\//gi, '').replace(/ +|-|'/gi, ' '); + const latinWord: string = this.replaceChar(str).toLowerCase().replace(/\(|\)|\.|'|\//gi, '').replace(/ +|-|'/gi, ' '); const cc: string = countryCode.toLowerCase() === 'be' ? 'fr' : countryCode.toLowerCase(); const stopWords = sw[cc] || sw.en; // tslint:disable-line no-unsafe-any diff --git a/src/index.ts b/src/index.ts index cb6867e..3940a96 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,5 +1,8 @@ -import { Generator } from "./generator"; +import { Generator, IPlace } from './generator'; +import { IConfiguration } from './config'; export { Generator, + IPlace, + IConfiguration, };