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

@fabboy/fastfunc

v0.5.4

Published

A Npm package that allow users to easly code in Js

Downloads

2

Readme

What is FastFunc

FastFunc is a package written in Node.js which should make it easier and more efficient to code node.js. Read feature's for further information

Features

  1. Building a simple http webserver with just one line of code
  2. Finding out the date and time of different countries and regions
  3. A Wait () function which allows you to pause the code with just one line of code
  4. An effective new function for printing in the console. It allows you to write in different colors with different signs
  5. A function that allows you to use a line of code to check whether the variable is a string, int, float or bool

For more information, see "Documentation"

Installation

Our package is available on NPM just use

npm i @fabboy/fastfunc Import the package:

const FF = require("@fabboy/fastfunc")

Documentation

If you want to...


Create a simple Http webserver:

FF.WebServer(true, true, "index.html", "localhost",3000)

You can turn on of the debug with the second true/false
You can change the Main file from "Index.html" to what you want.
You can also change the Port

Find the date from a country

FF.GetTime("Germany", "Europe/Zurich", 1)

The output is Date + Time if you print it or used it somewhere else. There are 3 different modes:
1 = date + time
2 = date
3 = time

Create a pause in your code

FF.Wait(2000).then(r => {       
  //stuff                    
})                              

Print the effective ways

FF.Printer("Hello World", 1, true)           

The first arg is the Text.
The Seconde is the Type/Color:

1 = Alert in red
2 = Information in yellow
3 = Console comment in green
4 = Console comment in blue
5 = Console comment in magenta\

If you activated the sign with the last argument, you will always get a sign:
[!] {Text}
[?] {Text}
[#] {Text}
[~] {Text}
[*] {Text}\

Want to check if a variable is a string, int, float or bool

  1. Example
    In this example the output would be (if you print it) false.
const test = 2;           
FF.Check(test, "string")  
  1. Example
    In this example the output would be (if you print it) true.
const test = 2;           
FF.Check(test, "int")   

Changelog

0.5: Release of the Basic functions:

  1. Check
  2. Printer
  3. Time

0.5.1: Bug fixes

  1. Wait
  2. Bug Fixes

0.5.2: Added simple Webserver

  1. Webserver added
  2. Updated Readme

License

ISC License

Copyright (c) [2021] [Fabboy]

Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.