🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

auto-import-module

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

auto-import-module

auto import module

latest
Source
npmnpm
Version
1.0.12
Version published
Maintainers
1
Created
Source

auto-import-module

auto import module

About

Auto assemble files and directories by using es module. This tool will auto create default index as directory entry file. This tool supports .js .ts .scss .less .stylus and so on.

Install

Install with npm:

$ npm install --save auto-import-module

Examples

// js
autoImportModule({
  dir: path.join(process.cwd(), 'temp'),
  extension: '.js',
});
// ts
autoImportModule({
  dir: path.join(process.cwd(), 'temp'),
  extension: '.ts',
});
// less
autoImportModule({
  dir: path.join(process.cwd(), 'temp'),
  extension: '.less',
  importModuleOnly: true,
});
// scss
autoImportModule({
  dir: path.join(process.cwd(), 'temp'),
  extension: '.scss',
  importModuleOnly: true,
});
// stylus
autoImportModule({
  dir: path.join(process.cwd(), 'temp'),
  extension: '.styl',
  importModuleOnly: true,
});



options

optionintroduction
dirset watch root directory
extensionset file type, default .js
importModuleOnlyset no export, only import module, defaul false

Keywords

auto

FAQs

Package last updated on 03 Jun 2021

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