Socket
Socket
Sign inDemoInstall

the-lopster-require

Package Overview
Dependencies
6
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    the-lopster-require

The-lopster polyfile to quickly use the library via require.


Version published
Weekly downloads
1
decreased by-80%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

the-lopster-require

The-lopster polyfile to quickly use the library via require.

Using

require("the-lopster-require")(...extensions: DB.Extensions[]);

The module exports a function that accepts a list of extensions. After calling the function, you can import files with extensions that were passed to the function as arguments, and they will be converted into an instance of the DB.DB class.

Example:

const {XML} = require("the-lopster/dist/cjs").default;
require("the-lopser-require")(XML);

const file = require("./path/to/file.xml");

console.log(file);
// an instance of the DB.DB class with an XML extension

Keywords

FAQs

Last updated on 03 Apr 2024

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc