summaryrefslogtreecommitdiff
path: root/bin/wiki/ImportarDesdeURL/node_modules/iso-639-3/readme.md
blob: d76e59a465ef4bdeb821f370f6819a1a045304ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
# iso-639-3

[![Build][build-badge]][build]
[![Downloads][downloads-badge]][downloads]
[![Size][size-badge]][size]

[ISO 639-3][iso] codes in an accessible format, all of them.

## Installation

[npm][]:

```bash
npm install iso-639-3
```

## Usage

```javascript
var iso6393 = require('iso-639-3')

console.log(iso6393.slice(1822, 1827))
```

Yields:

```javascript
[ { name: 'Ende',
    type: 'living',
    scope: 'individual',
    iso6393: 'end',
    iso6392B: null,
    iso6392T: null,
    iso6391: null },
  { name: 'Forest Enets',
    type: 'living',
    scope: 'individual',
    iso6393: 'enf',
    iso6392B: null,
    iso6392T: null,
    iso6391: null },
  { name: 'English',
    type: 'living',
    scope: 'individual',
    iso6393: 'eng',
    iso6392B: 'eng',
    iso6392T: 'eng',
    iso6391: 'en' },
  { name: 'Tundra Enets',
    type: 'living',
    scope: 'individual',
    iso6393: 'enh',
    iso6392B: null,
    iso6392T: null,
    iso6391: null },
  { name: 'Enlhet',
    type: 'living',
    scope: 'individual',
    iso6393: 'enl',
    iso6392B: null,
    iso6392T: null,
    iso6391: null } ]
```

## API

### `iso6393`

`Array.<Language>` — List of languages.

### `Language`

`Object`:

###### `name`

Language name (`string`).

###### `type`

Language type ([`Type`][type]).

###### `type`

Language scope ([`Scope`][scope])

###### `iso6392B`

Bibliographic ISO 639-2 code, if available (`string?`).

###### `iso6392T`

Terminological ISO 639-2 code, if available (`string?`).

###### `iso6391`

ISO 639-1 code, if available (`string?`).

## `Type`

`string`, one of the following:

###### `'living'`

Still spoken languages (example: `nhi` for `Zacatlán-Ahuacatlán-Tepetzintla
Nahuatl`).

###### `'historical'`

Distinct from any modern languages that are descended from it (example: `ofs`
for `Old Frisian`).

###### `'extinct'`

Language that went extinct in recent time (example: `rbp` for `Barababaraba`).

###### `'ancient'`

Language that went extinct in ancient times (example: `got` for `Gothic`).

###### `'constructed'`

Artificial languages, but not programming languages (example: `epo` for
`Esperanto`).

###### `'special'`

Non-language codes (example: `und` for `Undetermined`).

## `Scope`

`string`, one of the following:

###### `'special'`

Non-language codes (example: `und` for `Undetermined`).

###### `'macrolanguage'`

One-to-many grouping of languages, because older ISO 639s included them
(example: `ara` for `Arabic`).

###### `'language'`

Normal, single language (example: `eng` for `English`).

## License

[MIT][license] © [Titus Wormer][author]

<!-- Definition -->

[build-badge]: https://img.shields.io/travis/wooorm/iso-639-3.svg

[build]: https://travis-ci.org/wooorm/iso-639-3

[downloads-badge]: https://img.shields.io/npm/dm/iso-639-3.svg

[downloads]: https://www.npmjs.com/package/iso-639-3

[size-badge]: https://img.shields.io/bundlephobia/minzip/iso-639-3.svg

[size]: https://bundlephobia.com/result?p=iso-639-3

[npm]: https://docs.npmjs.com/cli/install

[license]: license

[author]: https://wooorm.com

[iso]: https://iso639-3.sil.org

[type]: #type

[scope]: #scope