New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

infrontjs

Package Overview
Dependencies
Maintainers
0
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

infrontjs

A plain javascript frontend framework

  • 1.0.0-rc2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8
increased by14.29%
Maintainers
0
Weekly downloads
 
Created
Source

InfrontJS logo

InfrontJS

The anti framework for real javascript developers.

pure. simple. stable.

Homepage · Guides · ApiDocs · Examples · Twitter

Installation

CDN

<script src="https://unpkg.com/infrontjs/dist/IF.js"></script>

npm

npm install infrontjs

Example

class GreetingState extends IF.State
{
    async enter()
    {
        this.app.view.render( this.app.container, '<h1>Hello InfrontJS World</h1>' );
    }
}

const myApp = new IF.App();
myApp.stateManager.add( GreetingState );
myApp.run();

Build & Test

Feel free to fork and work with the library. After cloning it, make sure to

npm install

in order to install all dependencies.

Build library

Run the following command. The library will be generated and saved in the ./dist folder.

npm run build

Generate api docs

To generate the api docs, run the following command. The generated api docs are in the folder ./apidocs.

npm run generate-docs

Run unit tests

Unit tests can be executed by the following command

npm run test

Resources

  • Find general information and interesting news on our website.
  • Guides to certain aspects of the framework. guides.
  • Like reading api documentation. Have a look at the api docs.
  • Do you prefer to learn by example? Check out the official examples.
  • Get the latest development updates on twitter.

Credits

This framework is build upon some great other open source projects...

  • View class encapsulates EJS
  • Re-conception of L18N/dictionary logic by antag0n1st
  • Observables from the Helper class are supported by ObservableSlim
  • UrlPattern used by the Router class relies on UrlPattern
  • PathObject implementation heavily relies on some Lodash methods
  • The background fx of our Shameless plug DefaultScene is based on this shader

Contributing

By contributing or commenting on issues in this repository, whether you've read them or not, you're agreeing to the Contributor Code of Conduct. Much like traffic laws, ignorance doesn't grant you immunity.

License

This content is released under the (http://opensource.org/licenses/MIT) MIT License.

Keywords

FAQs

Package last updated on 23 Jan 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc