86 lines
3.0 KiB
JSON
Executable File
86 lines
3.0 KiB
JSON
Executable File
{
|
|
"name": "wordpos",
|
|
"version": "2.0.0-beta.2",
|
|
"description": "wordpos is a set of part-of-speech utilities for Node.js & browser using the WordNet database.",
|
|
"author": "Moos <mooster@42at.com>",
|
|
"keywords": [
|
|
"natural",
|
|
"language",
|
|
"wordnet",
|
|
"adjectives",
|
|
"nouns",
|
|
"adverbs",
|
|
"verbs"
|
|
],
|
|
"homepage": "https://github.com/moos/wordpos",
|
|
"engines": {
|
|
"node": ">=6"
|
|
},
|
|
"files": [
|
|
"bench",
|
|
"bin",
|
|
"dict",
|
|
"dist",
|
|
"lib",
|
|
"src",
|
|
"scripts",
|
|
"test",
|
|
"!test/dict",
|
|
"tools"
|
|
],
|
|
"bin": "./bin/wordpos-cli.js",
|
|
"dependencies": {
|
|
"commander": "^2.0.0",
|
|
"symlink-dir": "1.1.3",
|
|
"underscore": ">=1.3.1",
|
|
"wordnet-db": "^3.1.11"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "^7.0.0",
|
|
"@babel/plugin-proposal-class-properties": "^7.0.0",
|
|
"@babel/plugin-proposal-decorators": "^7.0.0",
|
|
"@babel/plugin-proposal-do-expressions": "^7.0.0",
|
|
"@babel/plugin-proposal-export-default-from": "^7.0.0",
|
|
"@babel/plugin-proposal-export-namespace-from": "^7.0.0",
|
|
"@babel/plugin-proposal-function-sent": "^7.0.0",
|
|
"@babel/plugin-proposal-json-strings": "^7.0.0",
|
|
"@babel/plugin-proposal-logical-assignment-operators": "^7.0.0",
|
|
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.0.0",
|
|
"@babel/plugin-proposal-numeric-separator": "^7.0.0",
|
|
"@babel/plugin-proposal-optional-chaining": "^7.0.0",
|
|
"@babel/plugin-proposal-pipeline-operator": "^7.0.0",
|
|
"@babel/plugin-proposal-throw-expressions": "^7.0.0",
|
|
"@babel/plugin-syntax-dynamic-import": "^7.0.0",
|
|
"@babel/plugin-syntax-import-meta": "^7.0.0",
|
|
"@babel/preset-env": "^7.0.0",
|
|
"@babel/register": "^7.0.0",
|
|
"babel-plugin-dynamic-import-node": "^2.2.0",
|
|
"chai": "^4.0.2",
|
|
"mini-bench": "^1.0.0",
|
|
"mocha": "^5.2.0"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git://github.com/moos/wordpos.git"
|
|
},
|
|
"main": "./src/node/index.js",
|
|
"browser": "./src/browser/index.js",
|
|
"scripts": {
|
|
"postinstall": "npm run postinstall-web && npm run postinstall-node",
|
|
"postinstall-node": "node tools/stat.js --no-stats index.adv index.adj index.verb index.noun",
|
|
"postinstall-web": "node scripts/makeJsonDict.js index data",
|
|
"build": "parcel build --detailed-report -d dist -o wordpos.min.js --global WordPOS -t browser src/browser/index.js",
|
|
"postbuild": "sed -i 's/ES6_IMPORT/import/' dist/wordpos.min.js",
|
|
"test": "npm run test-node && npm run test-browser",
|
|
"test-node": "mocha test",
|
|
"test-browser": "mocha test/wordpos_test --require @babel/register",
|
|
"prestart": "symlink-dir dict samples/self-hosted/dict",
|
|
"start": "npm run build && http-server",
|
|
"prestart-dev": "rm -rf build && mkdir build && symlink-dir dict build/dict && cp samples/main.js build/main.txt",
|
|
"start-dev": "npm run start-self -- -d build",
|
|
"start-self": "parcel samples/self-hosted/index.html",
|
|
"start-cdn": "parcel samples/cdn/index.html"
|
|
},
|
|
"license": "MIT"
|
|
}
|