Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

stopword

Package Overview
Dependencies
Maintainers
2
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stopword - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

demo/stopword-demo.gif

2

demo/stopword-app.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc