Skip to content

Commit

Permalink
0.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Oct 1, 2014
0 parents commit 3483df8
Show file tree
Hide file tree
Showing 17 changed files with 3,576 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
node_modules
bower_components
components
.DS_Store
coverage
*.log
136 changes: 136 additions & 0 deletions .jscs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
{
"requireCurlyBraces": [
"if",
"else",
"for",
"while",
"do",
"try",
"catch"
],
"requireSpaceAfterKeywords": [
"if",
"else",
"for",
"while",
"do",
"switch",
"return",
"try",
"catch"
],
"requireSpaceBeforeBlockStatements": true,
"requireParenthesesAroundIIFE": true,
"requireSpacesInConditionalExpression": true,
"requireSpacesInFunctionExpression": {
"beforeOpeningCurlyBrace": true
},
"requireSpacesInAnonymousFunctionExpression": {
"beforeOpeningRoundBrace": true,
"beforeOpeningCurlyBrace": true
},
"requireSpacesInNamedFunctionExpression": {
"beforeOpeningRoundBrace": true,
"beforeOpeningCurlyBrace": true
},
"requireSpacesInFunctionExpression": {
"beforeOpeningCurlyBrace": true
},
"requireMultipleVarDecl": true,
"requireBlocksOnNewline": true,
"disallowPaddingNewlinesInBlocks": true,
"disallowEmptyBlocks": true,
"disallowSpacesInsideObjectBrackets": true,
"disallowSpacesInsideArrayBrackets": true,
"disallowSpacesInsideParentheses": true,
"requireSpacesInsideObjectBrackets": "all",
"disallowDanglingUnderscores": true,
"requireSpaceAfterObjectKeys": true,
"requireCommaBeforeLineBreak": true,
"requireOperatorBeforeLineBreak": [
"?",
"+",
"-",
"/",
"*",
"=",
"==",
"===",
"!=",
"!==",
">",
">=",
"<",
"<="
],
"requireSpaceBeforeBinaryOperators": [
"=",
",",
"+",
"-",
"/",
"*",
"==",
"===",
"!=",
"!=="
],
"requireSpaceAfterBinaryOperators": [
"=",
",",
"+",
"-",
"/",
"*",
"==",
"===",
"!=",
"!=="
],
"disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~", "!"],
"disallowSpaceBeforePostfixUnaryOperators": ["++", "--"],
"requireSpaceBeforeBinaryOperators": [
"+",
"-",
"/",
"*",
"=",
"==",
"===",
"!=",
"!=="
],
"requireSpaceAfterBinaryOperators": [
"+",
"-",
"/",
"*",
"=",
"==",
"===",
"!=",
"!=="
],
"disallowImplicitTypeConversion": ["numeric", "boolean", "binary", "string"],
"requireCamelCaseOrUpperCaseIdentifiers": true,
"disallowKeywords": ["with"],
"disallowMultipleLineStrings": true,
"disallowMultipleLineBreaks": true,
"validateLineBreaks": "LF",
"validateQuoteMarks": "'",
"disallowMixedSpacesAndTabs": true,
"disallowTrailingWhitespace": true,
"disallowTrailingComma": true,
"disallowKeywordsOnNewLine": ["else"],
"requireLineFeedAtFileEnd": true,
"maximumLineLength": 78,
"requireCapitalizedConstructors": true,
"safeContextKeyword": "self",
"requireDotNotation": true,
"disallowYodaConditions": true,
"validateJSDoc": {
"checkParamNames": true,
"checkRedundantParams": true,
"requireParamTypes": true
}
}
8 changes: 8 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
node_modules
bower_components
components
.DS_Store
coverage
*.log
data/speakers.txt
.travis.yml
13 changes: 13 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
language: node_js
script: npm run-script test-travis
node_js:
- '0.10'
- '0.11'
after_script: npm install coveralls@2.10.0 && cat ./coverage/lcov.info | coveralls
deploy:
provider: npm
email: tituswormer@gmail.com
api_key:
secure: ZDxsbcnNItIupAtMoOk5vuRmBB/FAkKFoxMpy/lAjFnzwNikOUpKQxf6J3jPYd9Tb7XbPdygWDmPgn7W/pWHlnURTTOM15vXjLW8TbpTRG7loA7AKoqIvHbP8hXZcx5+GBLWlN28OpGCbnCAnXbCfO7eWBIOPwNZvG10xOkulvQ=
on:
repo: wooorm/speakers
Empty file added History.md
Empty file.
22 changes: 22 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
(The MIT License)

Copyright (c) 2014 Titus Wormer <tituswormer@gmail.com>

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
67 changes: 67 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# speakers [![Build Status](https://travis-ci.org/wooorm/speakers.svg?branch=master)](https://travis-ci.org/wooorm/speakers) [![Coverage Status](https://img.shields.io/coveralls/wooorm/speakers.svg)](https://coveralls.io/r/wooorm/speakers?branch=master)

Speaker count for 370 languages.

Painstakingly crawled by hand from [OHCHR](http://www.ohchr.org), the numbers are (in some cases, very) rough estimates or out-of-date.

## Installation

npm:
```sh
$ npm install speakers
```

Component:
```sh
$ component install wooorm/speakers
```

Bower:
```sh
$ bower install speakers
```

## Usage

```js
var speakers = require('speakers');

speakers.get('eng');
/**
* {
* speakers: 322000000,
* iso6391: 'en',
* iso6392: 'eng',
* name: 'English'
* }
*/

speakers.get('dut');
/**
* {
* speakers: 21000000,
* iso6391: 'nl',
* iso6392: 'nld',
* name: 'Dutch'
* }
*/

speakers.has('unicorn'); // false

speakers.remove('eng');
speakers.get('eng'); // null

speakers.all(); // An array with 370 objects.
```

## API

See [the **datamap-interface** API](https://github.com/wooorm/datamap-interface).

## Supported Languages

See [Supported-languages.md](Supported-languages.md).

## License

MIT © Titus Wormer
Loading

0 comments on commit 3483df8

Please sign in to comment.