DEV Community

Codemaster_121482
Codemaster_121482

Posted on

Are you tired of verbose JavaScript code? Check NanoScript

What is NanoScript?

NanoScript is a modern, ultra-lightweight JavaScript library built specifically for edge environments. It provides seamless, fluent Document Object Model (DOM) manipulation, event handling, and CSS animations through a fast method-chaining API.

GitHub repo link: https://github.com/Hfs2024/NanoScript/

Example:

NS('.alert-box')
  .css({ color: "green" })
  .getText()[0] // You MUST add [0] if you want the first element text, because it returns an array.
Enter fullscreen mode Exit fullscreen mode

Cloning Steps

To set up NanoScript locally, follow these steps:

  1. Open your terminal application.
  2. Clone the repository directly using the command below:
   git clone https://github.com/Hfs2024/NanoScript/
Enter fullscreen mode Exit fullscreen mode
  1. Navigate into the project folder:
   cd NanoScript
Enter fullscreen mode Exit fullscreen mode

Contributions, bug reports, and repository stars are highly appreciated.

Top comments (0)