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

undefined_package

v1.2.8

Published

Package De Utils

Downloads

73

Readme

GitHub repo size GitHub language count GitHub forks

Nome:

Undefined_Package

Instalação

Utilize em seu console

npm i undefined_package

Modo De Utilizar


// Insira: Segundo, Minuto, Hora, Dia, Semana, Mês Ou Ano!

const unde = require('undefined_package')

const tempo = unde.timestamp().add('Dia')
console.log(tempo)
//Console: (Retorna Sua Data Atual + 1 Dia Em MS)

const tempo2 = unde.timestamp().add('Semana', 2)
console.log(tempo2)
//Console: (Retorna Sua Data Atual + 2 Semanas Em MS)

const tempo3 = unde.timestamp().sub('Semana', 2)
console.log(tempo3)
//Console: (Retorna Sua Data Atual - 2 Semanas Em MS)

const tempo4 = unde.timestamp().now()
console.log(tempo4)
//Console: (Retorna Sua Data Atual Em MS)

//Retorna Tempos Em MS Para Facilitar A Criação De TimeStamps

const unde = require('undefined_package')

const keyGen = unde.keyGen()
console.log(keyGen)
//Console: XXXX-XXXX-XXXX-XXXX

const keyGen2 = unde.keyGen(2)
console.log(keyGen2)
//Console: XXXX-XXXX

//Retorna Uma Key Aleatória
const unde = require('undefined_package')

const random = unde.random(['Batata', 'Cenoura', 'X-Tudo'])
console.log(random)
//Console: Batata

//Retorna Uma Palavra Aleatória Do Array (Passe Um Array Para Randomizar)
const unde = require('undefined_package')

const keyVal = unde.keyVal(4, 'Ano', 2)
//const keyVal = unde.keyVal((Aqui Vai A Quantidade De Grupos), (Aqui Vai: Segundo, Minuto, Hora, Dia, Semana, Mês ou Ano), (Quantidade De Segundos, Minutos, Horas, Dias, Semanas, Meses ou Anos))
console.log(keyVal)
//Console: { key: XXXX-XXXX-XXXX-XXXX, createdAt: Horário Que Foi Criada, endAt: 2 Anos A Partir Da Data Atual}

//Retorna Um Objeto Com A Key, Data De Criação E Data Em Que Expira
const unde = require('undefined_package')

const locktime = unde.locktime('21:07', '22:00', 'Fechado', 'Aberto')
//const locktime = unde.locktime((Aqui Vai O Horário Que Fecha), (Aqui Vai O Horário Que Abre), (Texto Se Está Fechado), (Texto Se Está Aberto))
console.log(locktime)
//Console: { text: (Seu Texto), isLocked: (false ou true)}
//Lembre-se: Utilize A Versão Mais Atualizada Do Node Para Funcionar Corretamente
//Utilize Sempre Do Menor Horário Para O Maior Horário, Por Exemplo: unde.locktime('21:07', '22:00') E Não Utilize Deste Modo: unde.locktime('21:01', '07:01'), Caso Necessite Utilize Deste Modo: 

const lock1 = unde.locktime('21:01', '23:59')
const lock2 = unde.locktime('00:01', '07:01')
if(lock1.isLocked || lock2.isLocked) { console.log('Trancado') }