Comparing version 0.1.0 to 0.1.1
@@ -15,5 +15,5 @@ 'use strict'; | ||
var words; | ||
var codes; | ||
words = require('./data/iso-639-2.json'); | ||
codes = require('./data/iso-639-2.json'); | ||
@@ -24,2 +24,2 @@ /** | ||
module.exports = new Interface(words); | ||
module.exports = new Interface(codes); |
{ | ||
"name": "iso-639-2", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "ISO-639-2 codes in an accessible format", | ||
@@ -25,6 +25,7 @@ "license": "MIT", | ||
"devDependencies": { | ||
"eslint": "^0.8.0", | ||
"eslint": "^0.9.0", | ||
"istanbul": "^0.3.0", | ||
"jscs": "^1.5.0", | ||
"mocha": "^1.20.0", | ||
"jscs": "^1.0.0", | ||
"markdown-table": "^0.1.0", | ||
"mocha": "^2.0.0", | ||
"plain-text-data-to-json": "^0.1.1" | ||
@@ -35,13 +36,15 @@ }, | ||
"test-travis": "node_modules/.bin/istanbul cover node_modules/.bin/_mocha --report lcovonly -- --reporter spec --check-leaks -u exports test.js", | ||
"lint": "npm run lint-api && npm run lint-test && npm run lint-style", | ||
"lint-api": "node_modules/.bin/eslint index.js script/build-data.js script/build-support.js --env node --env browser --rule 'quotes: [2, single]'", | ||
"lint-test": "node_modules/.bin/eslint test.js --env node --env mocha --rule 'quotes: [2, single]'", | ||
"lint-style": "node_modules/.bin/jscs index.js script/build-data.js script/build-support.js test.js --reporter=inline", | ||
"coverage": "node_modules/.bin/istanbul cover node_modules/.bin/_mocha -- -- test.js", | ||
"lint-api": "node_modules/.bin/eslint index.js", | ||
"lint-test": "node_modules/.bin/eslint test.js --env mocha", | ||
"lint-script": "node_modules/.bin/eslint script/build-data.js script/build-support.js", | ||
"lint-style": "node_modules/.bin/jscs --reporter=inline index.js script/build-data.js script/build-support.js test.js", | ||
"lint": "npm run lint-api && npm run lint-test && npm run lint-script && npm run lint-style", | ||
"make": "npm run lint && npm run coverage", | ||
"scrape-data": "curl --connect-timeout 15 --max-time 20 -L http://www.loc.gov/standards/iso639-2/ISO-639-2_utf-8.txt -o data/iso-639-2.txt || exit 0", | ||
"build-data": "node script/build-data.js", | ||
"build-support": "node script/build-support.js", | ||
"coverage": "node_modules/.bin/istanbul cover node_modules/.bin/_mocha -- -- test.js", | ||
"prepublish": "npm run scrape-data && npm run build-data && npm run build-support", | ||
"make": "npm run lint && npm run coverage" | ||
"build": "npm run scrape-data && npm run build-data && npm run build-support", | ||
"prepublish": "npm run build" | ||
} | ||
} |
@@ -1,4 +0,4 @@ | ||
# iso-639-2 [![Build Status](https://travis-ci.org/wooorm/iso-639-2.svg?branch=master)](https://travis-ci.org/wooorm/iso-639-2) [![Coverage Status](https://img.shields.io/coveralls/wooorm/iso-639-2.svg)](https://coveralls.io/r/wooorm/iso-639-2?branch=master) | ||
# iso-639-2 [![Build Status](https://img.shields.io/travis/wooorm/iso-639-2.svg?style=flat)](https://travis-ci.org/wooorm/iso-639-2) [![Coverage Status](https://img.shields.io/coveralls/wooorm/iso-639-2.svg?style=flat)](https://coveralls.io/r/wooorm/iso-639-2?branch=master) | ||
ISO-639-2 codes in an accessible format, all 486 of 'em. | ||
[ISO-639-2](http://www.loc.gov/standards/iso639-2/php/code_list.php) codes in an accessible format, all 486 of 'em. | ||
@@ -37,5 +37,2 @@ ## Installation | ||
iso6392.remove('eng'); | ||
iso6392.get('eng'); // null | ||
iso6392.all(); // An array with 486 objects. | ||
@@ -48,3 +45,3 @@ ``` | ||
## Tags | ||
## iso-639-2 Codes | ||
@@ -55,2 +52,2 @@ See [Support.md](Support.md). | ||
MIT © Titus Wormer | ||
MIT © [Titus Wormer](http://wooorm.com) |
47785
6
51