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

hytescript.js

v4.0.0

Published

A package for programming anything you want with ease.

Downloads

7

Readme

Run the following command in your console/Shell:

npm i hytescript.js

Note that HyteScript.js needs Node.js v16.9.0 or later to work properly.

const hytescript = require("hytescript.js");

new hytescript.DiscordClient({
    token: "your bot token here",
    prefix: "your bot prefix here",
    intents: ["your intents here"]
}) // DiscordClient have support for chaining!
.addCommands({
    name: 'ping',
    code: `
🏓 Pong! #(ping)ms.    
`
})
.addEvents("messageCreate");

Text #(function parameter1 | parameter2...) more text

Note that using whitespaces between parameter separator and parameter doesn't matter, HyteScript will remove it for you.

Just like HyteScript removes whitespaces, it also removes \n (new-line, line break...). For using it, you must use %br% (it's case insensitive, so you can use %BR%, %Br%...).

HyteScript reads your code from top to bottom, left to right, just like you're reading this.

Functions names are also case insensitive, so you can use #(fuNCTion) or #(FUNCTION), it will work normally.

Text

The text is everything that doesn't have a special meaning. Anything outside a function or inside a function as a parameter is considered text.

#(

Start of a function. When the # is used without (, then it will be interpreted as text. The same happens when ( is used without #.

Functions always needs that to be used.

Function

The name of the function that you're going to use. Other functions can't be used inside it, unless you use eval.

Parameters

Parameters are the text that will be sent to the function. Parameters are separated by |, so if you're going to provide the value for the second parameter, you need to use it.

Functions accepts other functions or subfunctions inside it, e.g. #(function parameter | #(function parameter)).

)

Closing a function, which means that you'll not be providing parameters for that function anymore. When you close a function you go back to write text.

End

That's it, now you have the knowledge of how hytescript syntax works. Browse the documentation to find out more.

HyteScript is totally made by paebukoa 💖, using the package Discord.js. You can anyways contribute to HyteScript.js in it GitHub Repository.

Me and our Staff Team will always be available in our support for when you need help!