🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

atom-vue-component-loader

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

atom-vue-component-loader

loads a pack of vue components

0.0.6
latest
Source
npm
Version published
Weekly downloads
8
-57.89%
Maintainers
1
Weekly downloads
 
Created
Source

atom-vue-component-loader

loads a pack of vue components.

Install

npm install atom-vue-component-loader

Usage

requiring atom-vue-component-loader

returns a Function(tree, options={})

ParameterTypeUsage
namesarraydependency tree of your components
optionsobjectobject containing all options
optionsTypeUsage
cwdstringcurrent working directory - where packages will be searched
reloadbooleanif set, deletes cache before loading
deepbooleanonly if reload is true, deletes nested dependencies from cache
debugbooleansets Vue.options.debug

Example

loader = require "atom-vue-component-loader"

tree =
  "main-app":
    "nested-comp": null
  "app2":
    "another-comp": null

vueApps = loader tree, reload: true
vueApps["main-app"] # reference to vue apps
vueApps["app2"]
vueApps["nested-comp"] # will not work!

Release History

  • v0.0.5: added debug option
  • v0.0.4: introduced the dependency tree
  • v0.0.3: Switched to kebab case
  • v0.0.2: First bugfix
  • v0.0.1: First release

License

Copyright (c) 2015 Paul Pflugradt Licensed under the MIT license.

Keywords

require

FAQs

Package last updated on 19 Jun 2015

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