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

requireclass

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

requireclass

Automatically load an object named '.Class.js' and determine whether to use remote when processing objects in electron

  • 1.0.9
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

requireclass

Automatically load an object named '.Class.js' and determine whether to use remote when processing objects in electron

Install

npm install requireclass.

Example

Create an object named .Class.js.

ex.
ClassName1.Class.js,ClassName2.Class.js

Custom object:
const requireClass = require('requireclass');
const {ClassName1,ClassName2 } = requireClass('ClassName1','ClassName2');

Electron object:
Use requireClass to load an electron object in the main process and renderer

const requireClass = require('requireclass');
const {app} = requireClass('app');

Keywords

FAQs

Package last updated on 10 Feb 2022

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

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