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

smartenv

Package Overview
Dependencies
Maintainers
3
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

smartenv - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

2

package.json
{
"name": "smartenv",
"version": "0.0.1",
"version": "0.0.2",
"description": "store things about your environment and let them travel across modules",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -1,2 +0,2 @@

# pushrocks
# smartenv
wrapper for all non-gulp npm plugins

@@ -6,2 +6,3 @@ /// <reference path="typings/tsd.d.ts" />

smartenv.info();
beautylog.info("Now testing the smartenv module");
smartenv.register({ key1: "Peter" }, "docit");

@@ -8,0 +9,0 @@ smartenv.info();

# How to compile.
Make sure gulp and gulp-taypescript from npm are available. Then run the gulpfile in this directory.
store things about your environment and let them travel across modules
## Status
[![Build Status](https://travis-ci.org/pushrocks/smartenv.svg?branch=release)](https://travis-ci.org/pushrocks/smartenv)
[![Dependency Status](https://david-dm.org/pushrocks/smartenv.svg)](https://david-dm.org/pushrocks/smartenv)
[![devDependency Status](https://david-dm.org/pushrocks/smartenv/dev-status.svg)](https://david-dm.org/pushrocks/smartenv#info=devDependencies)
[![bitHound Dependencies](https://www.bithound.io/github/pushrocks/smartenv/badges/dependencies.svg)](https://www.bithound.io/github/pushrocks/smartenv/master/dependencies/npm)
[![bitHound Overalll Score](https://www.bithound.io/github/pushrocks/smartenv/badges/score.svg)](https://www.bithound.io/github/pushrocks/smartenv)
## Install
Install the package through npm
```
npm install smartenv
```
## Usage
```javascript
var smartenv = require("smartenv");
smartenv.info(); //prints an output about your current environment and registered objects
smartenv.register({akey:"a text"},"somevalue"); // register a new object
smartenv.makeGlobal() // make smartenv available from gobal.smartenv
smartenv.get("somevalue").akey; // returns "a text"
smartenv.items.somevalue.akey; // also returns "a text"
```

@@ -6,2 +6,3 @@ /// <reference path="typings/tsd.d.ts" />

smartenv.info();
beautylog.info("Now testing the smartenv module");
smartenv.register({ key1: "Peter" }, "docit");

@@ -8,0 +9,0 @@ smartenv.info();

@@ -6,2 +6,3 @@ /// <reference path="typings/tsd.d.ts" />

smartenv.info();
beautylog.info("Now testing the smartenv module");
smartenv.register({key1:"Peter"},"docit");

@@ -8,0 +9,0 @@ smartenv.info();

Sorry, the diff of this file is not supported yet

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