Socket
Socket
Sign inDemoInstall

mining-utils

Package Overview
Dependencies
308
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    mining-utils

[![All Contributors](https://img.shields.io/badge/all_contributors-1-orange.svg?style=flat-square)](#contributors) [![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2FOracy%2Fmining-utils.svg?type=shield)](https://app.fossa.io/projects/g


Version published
Weekly downloads
4
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Data Mining

All Contributors FOSSA Status

version NPM downloads License: MIT Build Status HitCount

mining-utils

Functions to help in js data mining.

Introduction

To install this module, just need to: npm install mining-utils

You can use as node or Typescript follow instructions below:

  • Node Js
const mining = require('mining-utils')

mining.removeAccents('')
  • Typescript
import * as mining from mining-utils
// or
import { removeAccents } from mining-utils

Implemented Functions

removeAccents('Em linguística, a noção de texto é ampla e ainda aberta a uma definição mais precisa. Grosso modo, pode ser entendido como manifestação linguística das ideias de um autor, que serão interpretadas pelo leitor de acordo com seus conhecimentos linguísticos e culturais. Seu tamanho é variável.')
// output: 'Em linguistica, a nocao de texto e ampla e ainda aberta a uma definicao mais precisa. Grosso modo, pode ser entendido como manifestacao linguistica das ideias de um autor, que serao interpretadas pelo leitor de acordo com seus conhecimentos linguisticos e culturais. Seu tamanho e variavel.
removeAccentsArray(['Em linguística, a noção de texto é ampla', 'definição mais precisa. Grosso modo, pode ser entendido como manifestação linguística'])
// output: ['Em linguistica, a nocao de texto e ampla', 'definicao mais precisa. Grosso modo, pode ser entendido como manifestacao linguistica']
removePunctuation('Hey there!!! How are you???')
// output: Hey there Hou are you
removePunctuationArray(['Hey there!!', 'How are you??', 'go, now'])
// output: ['Hey there', 'How are you', 'go now']
removeBlankSpace('Hey        ,       how are              you           ?')
// output: 'Hey , how are you ?'
removeBlankSpaceArray(['Hey        ,       how are              you           ?', 'I            am      good!!'])
// output: ['Hey , how are you ?', 'I am good!!']
removeLinks('This is an example to remove links from a single phrase, https://web.whatsapp.com/ and text after the link.')
// output: 'This is an example to remove links from a single phrase,  and text after the link.'
removeLinks('This is an example to remove links from a single phrase, mms://link.com/ and text after the link.', 'mms')
// you can pass on second parameter another links pattern for example: 'mms', 'm3u'
// output: 'This is an example to remove links from a single phrase,  and text after the link.'
removeLinksArray(['This is an example to remove links from a single phrase, https://web.whatsapp.com/ and text after the link.', 'This is an example to remove links from a single phrase, https://www.instagram.com/ and text after the link.', 'This is an example to remove links from a single phrase, https://www.google.com/ and text after the link.'])
// output: ['This is an example to remove links from a single phrase,  and text after the link.', 'This is an example to remove links from a single phrase,  and text after the link.', 'This is an example to remove links from a single phrase,  and text after the link.']

License

Mining-utils is freely distributable under the terms of the MIT license

FOSSA Status

Contributors ✨

Thanks goes to these wonderful people (emoji key):

lu002047
lu002047

🚧 💻 👀

Keywords

FAQs

Last updated on 28 Oct 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc