Skip to content

Commit 4259be4

Browse files
author
Van-Duyet Le
committed
Add index and package
1 parent 8fd0804 commit 4259be4

File tree

2 files changed

+82
-0
lines changed

2 files changed

+82
-0
lines changed

index.js

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
'use strict';
2+
3+
;(function() {
4+
5+
/** Used as a safe reference for `undefined` in pre-ES5 environments. */
6+
var undefined;
7+
8+
/** Detect free variable `exports`. */
9+
var freeExports = (objectTypes[typeof exports] && exports && !exports.nodeType) ? exports : null;
10+
11+
/** Detect free variable `module`. */
12+
var freeModule = (objectTypes[typeof module] && module && !module.nodeType) ? module : null;
13+
14+
/** Detect free variable `global` from Node.js. */
15+
var freeGlobal = checkGlobal(freeExports && freeModule && typeof global == 'object' && global);
16+
17+
/** Detect free variable `self`. */
18+
var freeSelf = checkGlobal(objectTypes[typeof self] && self);
19+
20+
/** Detect free variable `window`. */
21+
var freeWindow = checkGlobal(objectTypes[typeof window] && window);
22+
23+
/** Detect the popular CommonJS extension `module.exports`. */
24+
var moduleExports = (freeModule && freeModule.exports === freeExports) ? freeExports : null;
25+
26+
/** Detect `this` as the global object. */
27+
var thisGlobal = checkGlobal(objectTypes[typeof this] && this);
28+
29+
/**
30+
* Used as a reference to the global object.
31+
*
32+
* The `this` value is used if it's the global object to avoid Greasemonkey's
33+
* restricted `window` object, otherwise the `window` object is used.
34+
*/
35+
var root = freeGlobal || ((freeWindow !== (thisGlobal && thisGlobal.window)) && freeWindow) || freeSelf || thisGlobal || Function('return this')();
36+
37+
var StopwordFilter = function(options) {
38+
39+
}
40+
41+
StopwordFilter.prototype.setStopwords = function(data) {
42+
this.stopwords = data;
43+
}
44+
45+
// Export
46+
(freeWindow || freeSelf || {}).ddSF = StopwordFilter;
47+
48+
// Export for Node.js.
49+
if (moduleExports) {
50+
freeModule.exports = StopwordFilter;
51+
}
52+
53+
// Export for a browser or Rhino.
54+
root.StopwordFilter = StopwordFilter;
55+
}.call(this));

package.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"name": "node-stopwords-filter",
3+
"version": "0.0.1",
4+
"description": "Stopwords filter for Nodejs, Javascript",
5+
"main": "index.js",
6+
"scripts": {
7+
"test": "node test/test.js"
8+
},
9+
"repository": {
10+
"type": "git",
11+
"url": "git+ssh://[email protected]/duyetdev/node-stopwords-filter.git"
12+
},
13+
"keywords": [
14+
"stopwords",
15+
"tokenzier",
16+
"vietnamese",
17+
"nlp",
18+
"duyetdev",
19+
"filter"
20+
],
21+
"author": "Van-Duyet Le",
22+
"license": "MIT",
23+
"bugs": {
24+
"url": "https://github.com/duyetdev/node-stopwords-filter/issues"
25+
},
26+
"homepage": "https://github.com/duyetdev/node-stopwords-filter#readme"
27+
}

0 commit comments

Comments
 (0)