el-cli-environment

A tiny package to return environment object that includes all app settings (variables) used in any cli-based angular2 project

Usage no npm install needed!

<script type="module">
  import elCliEnvironment from 'https://cdn.skypack.dev/el-cli-environment';
</script>

README

Worksignal Element: el-cli-environment

What is Worksignal

Worksignal is a business platform which accepts adding components from npm website. Worksignal form elements will be open source plus those created by third parties.

What is this package?

This package contains CliEnvironment class to return the application settings/variables usually defined within a file called environment.ts, compatible with all projects using angular-cli. The class is used in Worksignal project but can be used in any other cli-based project as well. Please check our repository for the full source code of ws-elements project.

How to import it

use this command to import el-cli-environment into your project

npm instal el-cli-environment

To use it in your project import the component like this:

import { CliEnvironment } from 'el-cli-environment';

Then you can call a method to get the environment object with all variables inside it:

let environment = cliEnvironment.getEnvironmentVariables();