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

terminal.xr

v1.2.3

Published

Quick and simple javascript terminal logger module!

Downloads

32

Readme

terminal.xr

About

terminal.xr best logging system for terminal with txt file recording feature with terminal txt colors

Installation

PC or VDS: npm install terminal.xr --save Glitch: pnpm install terminal.xr --save

Example usage with Express

const ExpressApp = require("express")()
const xariona = require("terminal.xr")
const logger = new xariona({ saveFile: false, autoAdapterLoader: false, design: { timeStyle: "({time}) =", filename: "output", adapterDir: `./adapters` } })

ExpressApp.listen(process.env.PORT, function () {
    logger.info("ExpressApp Succesfully started!")
})

ExpressApp.get("/", function (req, res) {
    logger.info("Someone entered ExpressApp")
})

with Any control

const xariona = require("terminal.xr")
const logger = new xariona({ saveFile: false, autoAdapterLoader: false, design: { timeStyle: "({time}) =", filename: "output", adapterDir: `./adapters` } })

logger.info("Hello world")
logger.json({ profile: { name: "Xariona", age: "19", job: "hobby coder" } }, false)
logger.debug("Debug level")
logger.log("Log level")
logger.status("Module online!")
logger.success("Code worked!")

How to use tick and cross?

using this terminal.xr function here example code!

const xariona = require("terminal.xr")
const logger = new xariona({ saveFile: false, autoAdapterLoader: false, design: { timeStyle: "({time}) =", filename: "output", adapterDir: `./adapters` } })

logger.info(`Tick ${logger.tick}`)
logger.info(`Cross ${logger.cross}`)
logger.info(`Danger ${logger.danger}`)

Make your own Custom Loggers!

1.2.0 new update! " Easiest custom logger control! and new syntax "

make your own terminal.xr logger! example code!

How create Custom Logger?

const Adapter = require("terminal.xr/addons/adapter") //Adapter schema in terminal.xr

module.exports = class Test extends Adapter {
    constructor() {
        super()

        this.name = "test" //Your Custom Logger name.
        this.hexColor = "#00ffff" //Your hex color code Ex: #*code*
    }    
}

How to use My custom logger

using your own terminal.xr logger example code! this function not working if you opened autoAdapterLoader!

logger.importAdapter(require("../<mydir>/test.js"))

logger.create("Hey this is custom!!", { type: "<Your Adapter name Ex. test>" })

Links