Skip to content

Phusion is a TypeScript library designed to help with building Javascript/TypeScript applications. As well as providing pre-built modules to handle making HTTP requests, caching responses, accessing browser storage and more, it can also act as a dependency injection container if you want to extend it and add your own modules.

License

Notifications You must be signed in to change notification settings

ieatstickers/phusion

Repository files navigation

Phusion

Phusion is a TypeScript library designed to help with building Javascript/TypeScript applications. It provides a number of utility classes to handle making HTTP requests, caching responses, accessing browser storage and more.

JavaScript

<body>

  <h1>Phusion Example</h1>	
  
  <!-- Pull in Phusion library (includes all classes) -->
  <script src="node_modules/phusion/dist/core/phusion.js"></script>
  <!-- Or pull in just the classes you need -->
  <script src="node_modules/phusion/dist/core/Config.js"></script>
  <script src="node_modules/phusion/dist/core/Http.js"></script>
  <script src="node_modules/phusion/dist/core/LocalStorage.js"></script>
  
  <script>
    // Start using Phusion classes
    var storageItem = LocalStorage.get('myKey');
  </script>
</body>

TypeScript

If you're using TypeScript, just import the classes you want to use

import {LocalStorage} from 'phusion/src/Core/Storage/LocalStorage';

let storageItem = LocalStorage.get('myKey');

Documentation:

Core Library

Tasks

About

Phusion is a TypeScript library designed to help with building Javascript/TypeScript applications. As well as providing pre-built modules to handle making HTTP requests, caching responses, accessing browser storage and more, it can also act as a dependency injection container if you want to extend it and add your own modules.

Resources

License

Stars

Watchers

Forks

Packages

No packages published