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 🙏

© 2026 – Pkg Stats / Ryan Hefner

pajakio-lib

v0.1.0

Published

All in one function for all fintax's project

Readme

Ftx Global Function

All in one function for all fintax's project


N|Solissssssssd

Build Status

Features

  • Cookies Management
    • Set Cookie
    • Get Cookie
    • Remove Cookie
  • Converting Data
    • String to NPWP
    • NPWP to String
    • String to Integer
    • Integer to String
    • JSON to String
    • String to JSON
  • Validation

Cookies Management

Set Cookie

Menyimpan cookies

Cookies.set('name', 'value')
Read cookie:

Mendapatkan cookies berdasarkan key

Cookies.get('name') // => 'value'
Cookies.get('nothing') // => undefined
Delete cookie:

Menghapus cookies berdasarkan key

Cookies.remove('name')

Converting Data

String to NPWP

Merubah format string menjadi format NPWP

let npwp = '454655150528000'
Convert.stringToNpwp(npwp) // => '45.465.515.0-528.000'
NPWP to String

Merubah format NPWP menjadi format String

let npwp = '45.465.515.0-528.000'
Convert.npwpToString(npwp) // => '454655150528000'
String to Integer

Merubah format String menjadi Integer

let value = '1000'
Convert.stringToInt(value) // => 1000
Integer to String

Merubah format Integer menjadi String

let value = 1000
Convert.intToString(value) // => '1000'
JSON to String

Merubah format JSON menjadi String

let obj = {
    name: 'pajakio',
    type: 'PJAP'
}
Convert.jsonToString(obj) // => '{ name: 'pajakio', type: 'PJAP' }'
String to JSON

Merubah format String menjadi JSON

let str = '{ name: 'pajakio', type: 'PJAP' }'
Convert.intToString(str) // =>
{
    name: 'pajakio',
    type: 'PJAP'
}

Dates Module

Setiap fungsi pada module ini bisa menerima argumen date. Jika tidak mengirimkan argument date, maka data yang akan dikembalikan adalah tanggal hari ini.

Get Hours

Mendapatkan jam dalam format date

Dates.getHours() // => '06' Jam saat ini
Dates.getHours('2022-07-13 20:50') // => '20' Jam berdasarkan argument date
Get Minutes

Mendapatkan menit dalam format date

Dates.getMinutes() // => '45' Jam saat ini
Dates.getMinutes('2022-07-13 20:50') // => '50' Menit berdasarkan argument date
Get Day

Mendapatkan Hari dalam format date

Dates.getDay() // => 'Kami' Hari saat ini
Dates.getDay('2022-07-13 20:50') // => 'Rabu' Hari berdasarkan argument date
Get Date

Mendapatkan Tanggal dalam format date

Dates.getDate() // => '15' Tanggal saat ini
Dates.getDate('2022-07-13 20:50') // => '13' Tanggal berdasarkan argument date
Get Month

Mendapatkan Bulan dalam format date

Dates.getMonth() // => '08' Bulan saat ini
Dates.getMonth('2022-07-13 20:50') // => '07' Bulan berdasarkan argument date
Get Month Name

Mendapatkan Nama Bulan dalam format date

Dates.getMonthName() // => 'Agustus' Bulan saat ini
Dates.getMonthName('2022-07-13 20:50') // => 'Juli' Bulan berdasarkan argument date
Get Year

Mendapatkan Tahun dalam format date

Dates.getYear() // => '2021' Tahun saat ini
Dates.getYear('2022-07-13 20:50') // => '2022' Tahun berdasarkan argument date
formating Date

ada 2 argument yang bisa dikirim, yaitu: | Argument | Required | Default | | :---: | :---: | :---: | | format | false | dd/mm/yy | | date | false | new Date() |

Dates.formatingDate(format, date)
Dates.formatingDate('dd/mm/yyyy')       // => 13/06/2022
Dates.formatingDate('dd-mm-yyyy')       // => 13-06-2022
Dates.formatingDate('mm/dd/yyyy')       // => 06/13/2022
Dates.formatingDate('mm-dd-yyyy')       // => 06-13-2022
Dates.formatingDate('mm-yyyy')          // => 06-2022
Dates.formatingDate('mm/yyyy')          // => 06/2022
Dates.formatingDate('dd mm yyyy')       // => 13 06 2022
Dates.formatingDate('dd MM yyyy')       // => 13 Juni 2022
Dates.formatingDate('hh:mm')            // => 15:30
Dates.formatingDate('dd MM yyyy, hh:mm')// => 13 Juni 2022, 15:30