1.1.3-beta.3 • Published 2 years ago

shwi-js v1.1.3-beta.3

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

shwi-js @1.1.3-beta.3

All updates and documentation on the Wiki. Please refer to the wiki for latest updated docs. \ Release Notes \ Feel free to open an Issue if you find anything wrong in the module! Or open a new Discussion if you have any suggestions, or just want to give a feedback!

Installation

npm i shwi-js

What is shwi-js?

Shwi-js is an easy to use npm module that allows you to make your javascript code better! It makes many things easier, and has many new classes and functions that are usually very annoying to code!

Usage

const shwijs = require("shwi-js");

Just require the shwi js module, and get to coding!

Feature list

Latest feature update: 1.1.3-beta.2

Please refer to the Docs(wiki) for proper documentation and updates \ Main Class \ Random integer and items \ Err \ Stack \ Colors \ Parser \ Tank \ Random Integer Generators \ Kill Function \ Countdown \ Physics \ Clock

Main class

const shwijs = require("shwi-js");
class MyClass extends shwijs.Main {
  constructor() {
    super("MyClass");
    this.Log("Hello!");
  }
}
const myClassInstance = new MyClass();
// Logs [Node/your_project_name/MyClass]: Hello to the console

To change the project name, you can do shwijs.Main.APP_NAME = "whatever you want"! (By default, it takes the project name from your package.json file)

You can also pass in multiple names for the class super() function, if you're making class that is supposed to be part of another class:

const shwijs = require("shwi-js");
class MyClass extends shwijs.Main {
  constructor(name) {
    super("MyClass", name);
  }
}
const myClassInstance = new MyClass();
class MyClassSubset extends MyClass {
  constructor() {
    super("SubsetA");
    this.Log("Hello!");
  }
}
const myClassSubsetInstance = new MyClassSubset();
// Logs [Node/app_name/MyClass/SubsetA]: Hello! to the console

You can also manually change the app_name in the console logs using Main.SetAppName(name) method! \ NOTE: This is a static method.

1.1.3-beta.3

2 years ago

1.1.3-beta.2

2 years ago

1.1.3-beta.1

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago

0.0.5-alpha.1

3 years ago

0.0.5-alpha.2

3 years ago

0.0.5-alpha.3

3 years ago

0.0.5-beta.2

3 years ago

0.0.5-beta

3 years ago

0.0.4-alpha.5

3 years ago

0.0.4-alpha.6

3 years ago

0.0.4

3 years ago

0.0.4-alpha.2

3 years ago

0.0.4-alpha.3

3 years ago

0.0.4-alpha.4

3 years ago

0.0.4-alpha.1

3 years ago

0.0.3-beta.1

3 years ago

0.0.3

3 years ago

0.0.3-alpha.2

3 years ago

0.0.3-alpha.1

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago

0.0.1-alpha.2

3 years ago

0.0.1-alpha.1

3 years ago