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 🙏

© 2025 – Pkg Stats / Ryan Hefner

javastips

v1.0.2

Published

![alt text](https://raw.githubusercontent.com/svngoku/JavasTips/master/js.gif)

Downloads

2

Readme

alt text

JavasTips

1.What is JavasTips It's a library based on data stucture and problem solving algorithm in JavaScript .

2.Why javastips Javastips makes your developement in javaScript easier by taking the hassle out of working with different types allowed by ecmaScript versions.

3.The purpose of JavasTips The purpose is to understand the big black box of functional programming and how works different methods like map(..) , each(...), filter(...), reduce(...) , find(...), and some tips .

Installation

> npm i javastips --save

Using library

  • With nodeJs
   let javastips = require("javastips");
   let { reverse } = javastips

   let array = [1, 3, 4, 5];

   reverse(array); // [5, 4, 3, 1]
  • With es6 import
   import { each } from "javastips";

   var array = [3, 2, 14, 6];

   each(array, (value) => console.log(value)); /* 3 2 14 6 */

Options

Regular tips

  • each - implementation of the forEach function | take a callback .
  • map - return a new array ,work like map in es6| take a callback .
  • filter - filter an array | take a callback .
  • reduce - reduce an array by one value .
  • find - find an element and return true if finded or false .
  • reverse - reverse an array or string and return it.
  • sort - sort an array , object and return it .
  • by - complement of sort function | take a callback .
  • linearSearch - make a linear seach with an array .
  • ..... and more .

String tips

  • LowerCase() - Transform a string in LowerCase .
  • UpperCase() - Transform a string in Upper case .
  • CamelCase() - Transform a string in Camel case .
  • AccentToNoAccent() - Take a string with accent as a param and return it without accent .

Array tips

  • LengthOf() - Return the lenght of an element | take array | return number.
  • withoutDuplicate() - Return an array without duplicate number | return an array .
  • beginAndEndOf() - Return value at the begin and the end of the array passed in params

Standard

EcmaScript 6