New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

remote-environment

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

remote-environment

Get a fixed context per specific environment such as ES6.

latest
Source
npmnpm
Version
0.2.1
Version published
Weekly downloads
3
-40%
Maintainers
1
Weekly downloads
 
Created
Source

view on npm Build Status Dependency Status codecov npm license

Remote-environment

The complete context dictionary for given environment 💫.

This library contain a key-value map of the requested context, accessing the objects with their real paths such as "Object.getPrototypeOf". All the contexts include only a variables that are unique for this environment and can't recreate again manually. For Example, the PI number 3.141592653589793 is not a unique variable but the function Math.sin is unique and therefore will be available under the path "Math.sin".

Install

npm install remote-environment

Usage

// Load the requested environment 
const context = require('remote-environment/es6');

// Access the environment objects
context['Object']; // equals to `Object`
context['Math.sin']; // equals to `Math.sin`
context['Promise.resolve']; // equals to `Promise.resolve`
context['Function.prototype']; // equals to `Function.prototype`

Supported Environments

Remote-environment is currently supporting only limited number of environment contexts. To use an environment you should require it explicitly:

const context = require('remote-environment/ENV_NAME');

When ENV_NAME is the required environment name.

NameStatusDescription
es6UNSTABLEAn ES6 context. This environment consider unstable and may change over the versions.

API Reference

This module is a part of the remote-lib library.

Here is the relevant documentation for this module:

  • es6


© 2017 Moshe Simantov

Licensed under the Apache License, Version 2.0.

Keywords

remote

FAQs

Package last updated on 21 Nov 2017

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