Comparing version 0.3.0 to 0.3.1
@@ -6,3 +6,3 @@ // Populating div with only meaningful words | ||
const node = document.createElement('span') | ||
node.innerHTML = '<div>' + result + '</div>' | ||
node.innerHTML = result | ||
emptyElement('stopwordsRemoved') | ||
@@ -9,0 +9,0 @@ document.getElementById('stopwordsRemoved').appendChild(node) |
{ | ||
"name": "stopword", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "A module for node.js and the browser that takes in text and returns text that is stripped of stopwords. Has pre-defined stopword lists for 32 languages and also takes lists with custom stopwords as input.", | ||
@@ -9,3 +9,3 @@ "main": "lib/stopword.js", | ||
"empty-sandbox": "rm -rf test/sandbox && mkdir test/sandbox", | ||
"test": "npm run empty-sandbox && npm run compile-for-browser && tape ./test/test.js && cat test/sandbox/bundle.js | tape-run && npm run empty-sandbox" | ||
"test": "npm run empty-sandbox && npm run compile-for-browser && tape ./test/test.js && cat test/sandbox/bundle.js | tape-run && rm -rf test/sandbox" | ||
}, | ||
@@ -12,0 +12,0 @@ "repository": { |
@@ -8,3 +8,2 @@ # stopword | ||
[![NPM version][npm-version-image]][npm-url] | ||
@@ -15,5 +14,4 @@ [![NPM downloads][npm-downloads-image]][npm-url] | ||
![wonderful day stopword module](./demo/stopword-demo.gif) | ||
## Demo | ||
Live [stopword browser demo](http://fergiemcdowall.github.io/stopword/demo/). | ||
@@ -20,0 +18,0 @@ |
@@ -5,6 +5,5 @@ const path = require('path') | ||
module.exports = [ | ||
// Generating browser version of stopword | ||
module.exports = { | ||
{ | ||
mode: 'production', | ||
@@ -18,7 +17,6 @@ entry: './lib/stopword.js', | ||
devtool: "none", // prevent webpack from using eval() on my module | ||
} | ||
}, | ||
// Generating test script for the browser | ||
module.exports = { | ||
{ | ||
mode: 'production', | ||
@@ -33,2 +31,3 @@ entry: glob.sync('./test/test.js'), | ||
} | ||
} | ||
} | ||
] |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
581315
47
6526
139