Skip to content

Library of commonly used boilerplate code for all things vanilla JS

License

Notifications You must be signed in to change notification settings

kosperera/vanilla-js-snippets

Repository files navigation

Vanilla JavaScript { snippets }

JavaScript

I'm a huge nerd 🤓 of vanilla javascript (JS). This repository serves as a library of helper functions and boilerplate code written with native javascript and browser APIs instead of major frameworks and libraries.

Read the journal notes to learn more..

On this repo

  • boilerplate-* are code templates to get started with various patterns and practices.
  • helper-* are nano-libraries written for various needs and wants which I typically either copy & paste as and when needed.
  • examples/try-* are partials mixed and matched in order to demonstrate a bit more complexed implementations.

Getting Started

For minimum requirements, you will need the followings:

Run from Source

With VS Code:

  • Run command: Open with Live Server, or
  • Click Go Live on the status bar

Spin up your favorite browser to visit localhost:5505/examples/

Read the journal notes to learn more..

Feedback

If you were wondering, ask questions and problems on GitHub. It is as easy as creating a new discussion. If not, here are the ways you can provide feedback.

Learning Resources

Nowadays, vanilla javascript already cover most of it anyways. And, polyfills are there whenever some random feature doesn't support on the browser.

Contributing

If you were wondering, I'd be happy to have more code snippets here. Have a suggestion or a bug fix? Just open a pull request or an issue. Include the code snippet with a clear file name and the simplest HTML possible.

License

Licensed under MIT