Skip to content

Commit 6969491

Browse files
committed
docs: remove new keywords from readme #3
1 parent 92d8f37 commit 6969491

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Download the package and use the `dist/fakerator.js` or the `dist/fakerator.min.
4848
### NodeJS
4949
```js
5050
var Fakerator = require("fakerator");
51-
var fakerator = new Fakerator("de-DE");
51+
var fakerator = Fakerator("de-DE");
5252
var name = fakerator.names.name();
5353
// Result: 'Dr. Marcus Drechsler'
5454
```
@@ -99,21 +99,21 @@ The library supports localizations. You can set the locale code in constructor.
9999
### Usage
100100
```js
101101
// Use default (English) localization
102-
var fakerator = new Fakerator();
102+
var fakerator = Fakerator();
103103
console.log(fakerator.names.name());
104104
// Floyd Corkery
105105
```
106106

107107
```js
108108
// Use german
109-
var fakerator = new Fakerator("de-DE");
109+
var fakerator = Fakerator("de-DE");
110110
console.log(fakerator.names.name());
111111
// Hassan vom Kumbernuss
112112
```
113113

114114
```js
115115
// Use russia
116-
var fakerator = new Fakerator("ru-RU");
116+
var fakerator = Fakerator("ru-RU");
117117
console.log(fakerator.names.name());
118118
// Альберт Валентинович Архипов
119119
```
@@ -131,14 +131,14 @@ In production, you can load only a specific locale:
131131
### Available localizations:
132132
Code | Language/Country | Usage | Creator/Source
133133
--------- | --------------------- | ------------------------- | --------------
134-
default | English (default) | `new Fakerator();` | [faker.js](https://github.com/Marak/faker.js)
135-
de-DE | German | `new Fakerator("de-DE");` | [faker.js](https://github.com/Marak/faker.js)
136-
es-ES | Spanish | `new Fakerator("es-ES");` | [faker.js](https://github.com/Marak/faker.js)
137-
fr-FR | French | `new Fakerator("fr-FR");` | [faker.js](https://github.com/Marak/faker.js)
138-
hu-HU | Hungarian | `new Fakerator("hu-HU");` | [Icebob](https://github.com/icebob)
139-
it-IT | Italic | `new Fakerator("it-IT");` | [faker.js](https://github.com/Marak/faker.js)
140-
pl-PL | Polish | `new Fakerator("pl-PL");` | [faker.js](https://github.com/Marak/faker.js)
141-
ru-RU | Russia | `new Fakerator("ru-RU");` | [faker.js](https://github.com/Marak/faker.js)
134+
default | English (default) | `Fakerator();` | [faker.js](https://github.com/Marak/faker.js)
135+
de-DE | German | `Fakerator("de-DE");` | [faker.js](https://github.com/Marak/faker.js)
136+
es-ES | Spanish | `Fakerator("es-ES");` | [faker.js](https://github.com/Marak/faker.js)
137+
fr-FR | French | `Fakerator("fr-FR");` | [faker.js](https://github.com/Marak/faker.js)
138+
hu-HU | Hungarian | `Fakerator("hu-HU");` | [Icebob](https://github.com/icebob)
139+
it-IT | Italic | `Fakerator("it-IT");` | [faker.js](https://github.com/Marak/faker.js)
140+
pl-PL | Polish | `Fakerator("pl-PL");` | [faker.js](https://github.com/Marak/faker.js)
141+
ru-RU | Russia | `Fakerator("ru-RU");` | [faker.js](https://github.com/Marak/faker.js)
142142

143143
### Custom locale
144144
Please read this [how to add a new locale](LOCALES.md)

0 commit comments

Comments
 (0)