unimport VS unplugin-auto-import

Compare unimport vs unplugin-auto-import and see what are their differences.

unimport

Unified utils for auto importing APIs in modules. (by unjs)

unplugin-auto-import

Auto import APIs on-demand for Vite, Webpack and Rollup (by unplugin)
Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
unimport unplugin-auto-import
2 22
460 2,929
7.2% 3.6%
8.5 7.8
6 days ago 26 days ago
TypeScript TypeScript
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

unimport

Posts with mentions or reviews of unimport. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-04-17.
  • using types without import them
    3 projects | /r/vuejs | 17 Apr 2023
    You looked through https://github.com/antfu/unplugin-auto-import/issues/61, https://github.com/unjs/unimport/pull/218 and https://github.com/antfu/unplugin-auto-import/issues/61?
  • Better DX in JS apps with unplugin-auto-import
    2 projects | dev.to | 18 Dec 2022
    AutoImport({ // targets to transform include: [ /\.[tj]sx?$/, // .ts, .tsx, .js, .jsx /\.vue$/, /\.vue\?vue/, // .vue /\.md$/, // .md ], // global imports to register imports: [ // presets 'vue', 'vue-router', // custom { '@vueuse/core': [ // named imports 'useMouse', // import { useMouse } from '@vueuse/core', // alias ['useFetch', 'useMyFetch'], // import { useFetch as useMyFetch } from '@vueuse/core', ], 'axios': [ // default imports ['default', 'axios'], // import { default as axios } from 'axios', ], '[package-name]': [ '[import-names]', // alias ['[from]', '[alias]'], ], }, ], // Enable auto import by filename for default module exports under directories defaultExportByFilename: false, // Auto import for module exports under directories // by default it only scan one level of modules under the directory dirs: [ // './hooks', // './composables' // only root modules // './composables/**', // all nested modules // ... ], // Filepath to generate corresponding .d.ts file. // Defaults to './auto-imports.d.ts' when `typescript` is installed locally. // Set `false` to disable. dts: './auto-imports.d.ts', // Auto import inside Vue template // see https://github.com/unjs/unimport/pull/15 and https://github.com/unjs/unimport/pull/72 vueTemplate: false, // Custom resolvers, compatible with `unplugin-vue-components` // see https://github.com/antfu/unplugin-auto-import/pull/23/ resolvers: [ /* ... */ ], // Generate corresponding .eslintrc-auto-import.json file. // eslint globals Docs - https://eslint.org/docs/user-guide/configuring/language-options#specifying-globals eslintrc: { enabled: false, // Default `false` filepath: './.eslintrc-auto-import.json', // Default `./.eslintrc-auto-import.json` globalsPropValue: true, // Default `true`, (true | false | 'readonly' | 'readable' | 'writable' | 'writeable') }, })

unplugin-auto-import

Posts with mentions or reviews of unplugin-auto-import. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-10-05.
  • Welcome to the dark side. Ree.js awaits you!
    3 projects | dev.to | 5 Oct 2023
    Unplugin auto import
  • Vue 3 vs Vue 2 so far? What's your opinion? Things I didn't like about Vue 3 compared to Vue 2
    7 projects | /r/vuejs | 2 Jun 2023
  • using types without import them
    3 projects | /r/vuejs | 17 Apr 2023
    You looked through https://github.com/antfu/unplugin-auto-import/issues/61, https://github.com/unjs/unimport/pull/218 and https://github.com/antfu/unplugin-auto-import/issues/61?
  • Saw this on twitter last night ๐Ÿ˜‚๐Ÿ˜‚
    6 projects | /r/vuejs | 30 Mar 2023
    unplugin-auto-import, let's you set what any library to be automatically imported. It has reasonable defaults for popular libraries.
  • Better DX in JS apps with unplugin-auto-import
    2 projects | dev.to | 18 Dec 2022
    AutoImport({ // targets to transform include: [ /\.[tj]sx?$/, // .ts, .tsx, .js, .jsx /\.vue$/, /\.vue\?vue/, // .vue /\.md$/, // .md ], // global imports to register imports: [ // presets 'vue', 'vue-router', // custom { '@vueuse/core': [ // named imports 'useMouse', // import { useMouse } from '@vueuse/core', // alias ['useFetch', 'useMyFetch'], // import { useFetch as useMyFetch } from '@vueuse/core', ], 'axios': [ // default imports ['default', 'axios'], // import { default as axios } from 'axios', ], '[package-name]': [ '[import-names]', // alias ['[from]', '[alias]'], ], }, ], // Enable auto import by filename for default module exports under directories defaultExportByFilename: false, // Auto import for module exports under directories // by default it only scan one level of modules under the directory dirs: [ // './hooks', // './composables' // only root modules // './composables/**', // all nested modules // ... ], // Filepath to generate corresponding .d.ts file. // Defaults to './auto-imports.d.ts' when `typescript` is installed locally. // Set `false` to disable. dts: './auto-imports.d.ts', // Auto import inside Vue template // see https://github.com/unjs/unimport/pull/15 and https://github.com/unjs/unimport/pull/72 vueTemplate: false, // Custom resolvers, compatible with `unplugin-vue-components` // see https://github.com/antfu/unplugin-auto-import/pull/23/ resolvers: [ /* ... */ ], // Generate corresponding .eslintrc-auto-import.json file. // eslint globals Docs - https://eslint.org/docs/user-guide/configuring/language-options#specifying-globals eslintrc: { enabled: false, // Default `false` filepath: './.eslintrc-auto-import.json', // Default `./.eslintrc-auto-import.json` globalsPropValue: true, // Default `true`, (true | false | 'readonly' | 'readable' | 'writable' | 'writeable') }, })
  • Vue 3 over Nuxt 3
    2 projects | /r/vuejs | 29 Oct 2022
  • Import commonly-used module once, not in each component?
    2 projects | /r/vuejs | 27 Sep 2022
    If you donโ€™t want to write the import everywhere, use a unplug auto importing plug-in: https://github.com/antfu/unplugin-auto-import
  • Pinia as global $store
    1 project | /r/vuejs | 19 Aug 2022
    I forgot to specify, for the AutoImport I'm using unplugin-auto-import/vite
  • [NUXT3] Is there a more elegant way to get current route?
    1 project | /r/Nuxt | 2 Aug 2022
    Others have already mentioned answers but I just want to say if you are bothered by importing reactive and computed take a look at https://github.com/antfu/unplugin-auto-import.
  • [AskJS] why no other javascript framework has implemented this feature (yet) ?
    2 projects | /r/javascript | 30 Jul 2022
    You can check out https://github.com/antfu/unplugin-auto-import

What are some alternatives?

When comparing unimport and unplugin-auto-import you can also consider the following projects:

unplugin-icons - ๐Ÿคน Access thousands of icons as components on-demand universally.

unplugin-vue-components - ๐Ÿ“ฒ On-demand components auto importing for Vue

prospector - Inspects Python source files and provides information about type and location of classes, methods etc

pinia - ๐Ÿ Intuitive, type safe, light and flexible Store for Vue using the composition api with DevTools support

pytype - A static type analyzer for Python code

vite-plugin-pages - File system based route generator for โšก๏ธVite

MonkeyType - A Python library that generates static type annotations by collecting runtime types

unplugin-vue2-script-setup - ๐Ÿ’ก Bring `<script setup>` to Vue 2.

monkeytype - The most customizable typing website with a minimalistic design and a ton of features. Test yourself in various modes, track your progress and improve your speed.

vite - Next generation frontend tooling. It's fast!

Pylint - It's not just a linter that annoys you!

Svelte - Cybernetically enhanced web apps