Skip to content

Commit 5909c55

Browse files
authored
Merge pull request #28 from Fdawgs/chore/cjs
Remove leftover commonjs directives; update example
2 parents aba012d + 852afc3 commit 5909c55

File tree

4 files changed

+1
-7
lines changed

4 files changed

+1
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ See the [language-subtag-registry](https://github.com/mattcg/language-subtag-reg
1414
## API ##
1515

1616
```js
17-
var tags = require('language-tags')
17+
import tags from 'language-tags'
1818
```
1919

2020
Note that all lookups and checks for tags and subtags are case insensitive. For formatting according to common conventions, see `tag.format`.

lib/Subtag.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
* @copyright Copyright (c) 2013, Matthew Caruana Galizia
55
*/
66

7-
'use strict';
8-
97
import index from 'language-subtag-registry/data/json/index.json' with { type: 'json' };
108
import registry from 'language-subtag-registry/data/json/registry.json' with { type: 'json' };
119

lib/Tag.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
* @copyright Copyright (c) 2013, Matthew Caruana Galizia
55
*/
66

7-
'use strict';
8-
97
import index from 'language-subtag-registry/data/json/index.json' with { type: 'json' };
108
import registry from 'language-subtag-registry/data/json/registry.json' with { type: 'json' };
119

lib/index.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
* @copyright Copyright (c) 2013, Matthew Caruana Galizia
55
*/
66

7-
'use strict';
8-
97
import Tag from './Tag.js';
108
import Subtag from './Subtag.js';
119

0 commit comments

Comments
 (0)