Comparing version 0.1.0 to 0.1.1
@@ -29,5 +29,8 @@ { | ||
"*.md", | ||
"*.txt", | ||
"component.json", | ||
"package.json", | ||
"coverage", | ||
"components", | ||
"build", | ||
"node_modules", | ||
@@ -34,0 +37,0 @@ "spec" |
@@ -1,22 +0,53 @@ | ||
var fs = require('fs'), | ||
words = require('./'); | ||
'use strict'; | ||
fs.writeFileSync('Supported-words.md', | ||
'Supported Words:\n' + | ||
'=================\n' + | ||
'\n' + | ||
'| word | polarity | valence |\n' + | ||
'|:----:|:--------:|:-------:|\n' + | ||
/** | ||
* Dependencies. | ||
*/ | ||
var fs, | ||
table, | ||
words; | ||
fs = require('fs'); | ||
table = require('markdown-table'); | ||
words = require('./'); | ||
/** | ||
* Set up data. | ||
*/ | ||
var data; | ||
data = [ | ||
['Word', 'Polarity', 'Valence'] | ||
]; | ||
data = data.concat( | ||
Object.keys(words).map(function (word) { | ||
var valence = words[word]; | ||
var valence; | ||
return '| ' + [ | ||
valence = words[word]; | ||
return [ | ||
word, | ||
valence > 0 ? ':smile:' : ':frowning:', | ||
valence > 0 ? '+' + valence : valence | ||
].join(' | ') + ' |'; | ||
}).join('\n') + | ||
]; | ||
}) | ||
); | ||
/** | ||
* Write support. | ||
*/ | ||
fs.writeFileSync('Supported-words.md', | ||
'Supported Words:\n' + | ||
'=================\n' + | ||
'\n' + | ||
table(data, { | ||
'align' : ['c', 'c', 'c'] | ||
}) + | ||
'\n' | ||
); |
{ | ||
"name": "afinn-96", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "AFINN 96 (list of English words rated for valence) in JSON", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
{ | ||
"name": "afinn-96", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "AFINN 96 (list of English words rated for valence) in JSON", | ||
@@ -18,14 +18,15 @@ "license": "MIT", | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/wooorm/afinn-96.git" | ||
}, | ||
"author": "Titus Wormer <tituswormer@gmail.com>", | ||
"devDependencies": { | ||
"eslint": "^0.7.4", | ||
"eslint": "^0.8.0", | ||
"istanbul": "^0.3.0", | ||
"jscs": "^1.5.3", | ||
"mocha": "^1.20.4", | ||
"plain-text-data-to-json": "^0.1.0" | ||
"jscs": "^1.6.0", | ||
"markdown-table": "0.0.1", | ||
"mocha": "^1.20.0", | ||
"plain-text-data-to-json": "^0.1.1" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/wooorm/afinn-96.git" | ||
}, | ||
"scripts": { | ||
@@ -38,26 +39,8 @@ "test": "node_modules/.bin/_mocha --reporter spec --check-leaks -u exports spec/afinn-96.spec.js", | ||
"lint-style": "node_modules/.bin/jscs index.js build-data.js build-supported-words.js spec/afinn-96.spec.js --reporter=inline", | ||
"install-browser-test": "npm install browserify", | ||
"build-data": "node build-data.js", | ||
"build-supported-words": "node build-supported-words.js", | ||
"build-browser-test": "node_modules/.bin/browserify spec/afinn-96.spec.js -o spec/browser.spec.js", | ||
"coverage": "node_modules/.bin/istanbul cover node_modules/.bin/_mocha -- -- spec/afinn-96.spec.js", | ||
"prepublish": "npm run build-data && npm run build-supported-words", | ||
"make": "npm run lint && npm run coverage" | ||
}, | ||
"testling": { | ||
"files": "spec/afinn-96.spec.js", | ||
"harness": "mocha", | ||
"browsers": [ | ||
"iexplore/latest", | ||
"chrome/latest", | ||
"chrome/canary", | ||
"firefox/latest", | ||
"firefox/nightly", | ||
"opera/latest", | ||
"opera/next", | ||
"safari/latest", | ||
"iphone/latest", | ||
"android-browser/latest" | ||
] | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
98501
284
6
14