Comparing version 0.5.1 to 0.6.0
{ | ||
"name": "vbb-util", | ||
"description": "JavaScript utilites for the VBB API client.", | ||
"version": "0.5.1", | ||
"version": "0.6.0", | ||
"main": "./src/index", | ||
@@ -6,0 +6,0 @@ "keywords": [ |
@@ -49,2 +49,14 @@ module.exports = { | ||
stopwords: [ | ||
'bahnhof', | ||
'strasse', | ||
'sbahn', | ||
'ubahn', | ||
'berlin', | ||
'polen', | ||
'hauptbahnhof' | ||
], | ||
stringifyId: function (id) { | ||
@@ -57,1 +69,11 @@ return id + ''; | ||
}; | ||
exports.stopwords.filter = function (word) { | ||
return 0 > stopwords.indexOf(word); | ||
}; | ||
exports.filterStopwords = function (words) { | ||
return words.filter(exports.stopwords.filter); | ||
}; |
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
13835
526