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

create-variable

Package Overview
Dependencies
Maintainers
0
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

create-variable

A global variable creator class and function.

latest
npmnpm
Version
2.0.0
Version published
Maintainers
0
Created
Source

create-variable

Create-variable lets you create a global variable when called with a name and value. The variable that it creates will be accessible across multiple JS files without requiring and exporting.

const { createGlobalVariable, GlobalVariable } = require('create-variable')
createGlobalVariable('test', 'hi')

console.log(test) // Output: hi

new GlobalVariable('test2', 'bruh')

console.log(test2) // Output: bruh

FAQs

Package last updated on 25 Jun 2024

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