npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

mining-utils

v1.0.2

Published

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/Oracy/mining-utils/blob/master/LICENSE) [![version](https://badge.fury.io/js/mining-utils.svg)](https://badge.fury.io/js/mining-utils) [![Coverage Status](https://co

Downloads

43

Readme

Data Mining

License: MIT version Coverage Status Build Status All Contributors NPM downloads


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

String Manipulation

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.']

Twitter

removeRT('RT @sports: ¿ #QuestionOfTheDay ? @footbal 4-4-2 Shout ‘Em out #Footbal Fans!  Who’s Your #Tram?  I’m ALL #Saints!!! #W124ãHODAT #WHODATNATION ⚜️… https://t.co/ITy7ESKfuB')
// output: ¿ #QuestionOfTheDay ? @footbal 4-4-2 Shout ‘Em out #Footbal Fans!  Who’s Your #Tram?  I’m ALL #Saints!!! #W124ãHODAT #WHODATNATION ⚜️… https://t.co/ITy7ESKfuB'
removeHashtag('RT @sports: ¿ #QuestionOfTheDay ? @footbal 4-4-2 Shout ‘Em out #Footbal Fans!  Who’s Your #Tram?  I’m ALL #Saints!!! #W124ãHODAT #WHODATNATION ⚜️… https://t.co/ITy7ESKfuB')
// output: RT @sports: ¿  ? @footbal 4-4-2 Shout ‘Em out  Fans!  Who’s Your   I’m ALL    ⚜️… https://t.co/ITy7ESKfuB'
removeTag('RT @sports: ¿ #QuestionOfTheDay ? @footbal 4-4-2 Shout ‘Em out #Footbal Fans!  Who’s Your #Tram?  I’m ALL #Saints!!! #W124ãHODAT #WHODATNATION ⚜️… https://t.co/ITy7ESKfuB')
// output: RT ¿ #QuestionOfTheDay ? 4-4-2 Shout ‘Em out #Footbal Fans!  Who’s Your #Tram?  I’m ALL #Saints!!! #W124ãHODAT #WHODATNATION ⚜️… https://t.co/ITy7ESKfuB'
removeNumber('RT @sports: ¿ #QuestionOfTheDay ? @footbal 4-4-2 Shout ‘Em out #Footbal Fans!  Who’s Your #Tram?  I’m ALL #Saints!!! #W124ãHODAT #WHODATNATION ⚜️… https://t.co/ITy7ESKfuB')
// output: RT @sports: ¿ #QuestionOfTheDay ? @footbal -- Shout ‘Em out #Footbal Fans!  Who’s Your #Tram?  I’m ALL #Saints!!! #WãHODAT #WHODATNATION ⚜️… https://t.co/ITyESKfuB'
clearTweets('RT @sports: ¿ #QuestionOfTheDay ? @footbal 4-4-2 Shout ‘Em out #Footbal Fans!  Who’s Your #Tram?  I’m ALL #Saints!!! #W124ãHODAT #WHODATNATION ⚜️… https://t.co/ITy7ESKfuB')
// output: Shout Em out Fans Whos Your Im ALL'

License

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

FOSSA Status

Contributors ✨

Thanks goes to these wonderful people (emoji key):