Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

unimport

Package Overview
Dependencies
Maintainers
3
Versions
103
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unimport - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

19

package.json
{
"name": "unimport",
"version": "0.0.5",
"description": "",
"version": "0.0.6",
"description": "Unified utils for auto importing APIs in modules",
"repository": "unjs/unimport",

@@ -12,7 +12,9 @@ "license": "MIT",

"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
"require": "./dist/index.cjs",
"types": "./dist/index.d.ts"
},
"./unplugin": {
"import": "./dist/unplugin.mjs",
"require": "./dist/unplugin.cjs"
"require": "./dist/unplugin.cjs",
"types": "./dist/unplugin.d.ts"
}

@@ -51,3 +53,10 @@ },

},
"packageManager": "yarn@3.2.0"
"packageManager": "yarn@3.2.0",
"typesVersions": {
"*": {
"*": [
"./dist/*"
]
}
}
}

@@ -8,8 +8,6 @@ # unimport

> Package description
> Unified utils for auto importing APIs in modules
## Usage
## Install
Install package:
```sh

@@ -26,4 +24,36 @@ # npm

Import:
## Usage
### Plugin Usage
Powered by [unplugin](https://github.com/unjs/unplugin), `unimport` provides a plugin interface for bundlers.
#### Vite / Rollup
```ts
// vite.config.js / rollup.config.js
import Unimport from 'unimport/unplugin'
export default {
plugins: [
Unimport.vite({ /* plugin options */ })
]
}
```
#### Webpack
```ts
// webpack.config.js
import Unimport from 'unimport/unplugin'
module.exports = {
plugins: [
Unimport.webpack({ /* plugin options */ })
]
}
```
### Programmatic Usage
```js

@@ -30,0 +60,0 @@ // ESM

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