Comparing version 1.1.4 to 2.0.0
{ | ||
"name": "afinn-111", | ||
"version": "1.1.4", | ||
"version": "2.0.0", | ||
"description": "AFINN 111 (list of English words rated for valence) in JSON", | ||
@@ -28,30 +28,38 @@ "license": "MIT", | ||
], | ||
"main": "index.json", | ||
"sideEffects": false, | ||
"type": "module", | ||
"main": "index.js", | ||
"types": "index.d.ts", | ||
"files": [ | ||
"index.json" | ||
"index.d.ts", | ||
"index.js" | ||
], | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"bail": "^1.0.0", | ||
"browserify": "^16.0.0", | ||
"csv-streamify": "^4.0.0", | ||
"join-stream": "0.0.0", | ||
"prettier": "^1.0.0", | ||
"readable-stream": "^3.0.0", | ||
"remark-cli": "^7.0.0", | ||
"remark-preset-wooorm": "^6.0.0", | ||
"tape": "^4.0.0", | ||
"tinyify": "^2.0.0", | ||
"wrap-stream": "^2.0.0", | ||
"xo": "^0.25.0", | ||
"@types/concat-stream": "^1.6.0", | ||
"@types/d3-dsv": "^2.0.1", | ||
"@types/node": "^14.14.37", | ||
"@types/tape": "^4.0.0", | ||
"@types/yauzl": "^2.9.1", | ||
"bail": "^2.0.0", | ||
"c8": "^7.0.0", | ||
"concat-stream": "^2.0.0", | ||
"d3-dsv": "^2.0.0", | ||
"prettier": "^2.0.0", | ||
"remark-cli": "^9.0.0", | ||
"remark-preset-wooorm": "^8.0.0", | ||
"rimraf": "^3.0.0", | ||
"tape": "^5.0.0", | ||
"type-coverage": "^2.0.0", | ||
"typescript": "^4.0.0", | ||
"xo": "^0.38.0", | ||
"yauzl": "^2.0.0" | ||
}, | ||
"scripts": { | ||
"prepack": "npm run build && npm run format", | ||
"build": "rimraf \"*.d.ts\" && tsc && type-coverage", | ||
"generate": "node build", | ||
"format": "remark . -qfo && prettier --write \"**/*.js\" && xo --fix", | ||
"build-bundle": "browserify index.json -s afinn111 -o afinn-111.js", | ||
"build-mangle": "browserify index.json -s afinn111 -p tinyify -o afinn-111.min.js", | ||
"build": "npm run build-bundle && npm run build-mangle", | ||
"test-api": "node test", | ||
"test": "npm run format && npm run build && npm run test-api" | ||
"format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix", | ||
"test-api": "node test.js", | ||
"test-coverage": "c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov node test.js", | ||
"test": "npm run build && npm run format && npm run test-coverage" | ||
}, | ||
@@ -68,6 +76,7 @@ "prettier": { | ||
"prettier": true, | ||
"esnext": false, | ||
"ignores": [ | ||
"afinn-111.js" | ||
] | ||
"rules": { | ||
"import/no-mutable-exports": "off", | ||
"no-var": "off", | ||
"prefer-arrow-callback": "off" | ||
} | ||
}, | ||
@@ -78,3 +87,8 @@ "remarkConfig": { | ||
] | ||
}, | ||
"typeCoverage": { | ||
"atLeast": 100, | ||
"detail": true, | ||
"strict": true | ||
} | ||
} |
# afinn-111 | ||
[![Build][build-badge]][build] | ||
[![Coverage][coverage-badge]][coverage] | ||
[![Downloads][downloads-badge]][downloads] | ||
@@ -11,2 +12,5 @@ [![Size][size-badge]][size] | ||
This package is ESM only: Node 12+ is needed to use it and it must be `import`ed | ||
instead of `require`d. | ||
[npm][]: | ||
@@ -21,6 +25,6 @@ | ||
```js | ||
var afinn = require('afinn-111') | ||
import {afinn111} from 'afinn-111' | ||
afinn.positive //=> 2 | ||
afinn['self-deluded'] //=> -2 | ||
afinn111.positive //=> 2 | ||
afinn111['self-deluded'] //=> -2 | ||
``` | ||
@@ -30,5 +34,8 @@ | ||
This package exports the following identifiers: `afinn111`. | ||
There is no default export. | ||
### `afinn111` | ||
`afinn-111` returns entries to valence ratings (`Object.<string, number>`). | ||
`afinn-111` maps entries to valence ratings (`Object.<string, number>`). | ||
@@ -73,6 +80,10 @@ > Note! | ||
[build-badge]: https://img.shields.io/travis/words/afinn-111.svg | ||
[build-badge]: https://github.com/words/afinn-111/workflows/main/badge.svg | ||
[build]: https://travis-ci.org/words/afinn-111 | ||
[build]: https://github.com/words/afinn-111/actions | ||
[coverage-badge]: https://img.shields.io/codecov/c/github/words/afinn-111.svg | ||
[coverage]: https://codecov.io/github/words/afinn-111 | ||
[downloads-badge]: https://img.shields.io/npm/dm/afinn-111.svg | ||
@@ -79,0 +90,0 @@ |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
90532
5
4958
100
Yes
18
1