Skip to content

Latest commit

 

History

History
26 lines (16 loc) · 783 Bytes

README.md

File metadata and controls

26 lines (16 loc) · 783 Bytes

Platform

npm (scoped) Build Status Coverage Status

Platform dependency injection

Potential Targets

  • browser - clients and karma testing
  • node.js - server
  • nativescript - mobile apps

Usage

  • npm install @told/platform --save

  • In Typescript File:

    import * as P from 'platform'; import { SOMETHING } from 'platform';

  • Before calling any code:

    BrowserPlatformProvider.Setup(); // Or NodePlatformProvider.Setup() etc.