New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

ember-resolver

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-resolver

The default modules based resolver for Ember CLI.

8.1.0
Version published
Weekly downloads
120K
-24.84%
Maintainers
7
Weekly downloads
 
Created

What is ember-resolver?

The ember-resolver package is a key component in Ember.js applications, responsible for resolving dependencies such as components, routes, and services. It helps in locating and instantiating the correct modules based on the application's naming conventions and file structure.

What are ember-resolver's main functionalities?

Component Resolution

This feature allows you to resolve a component by its name. The resolver will look up the component in the application's file structure and return the appropriate module.

import Resolver from 'ember-resolver';

const resolver = Resolver.create();
const component = resolver.resolve('component:my-component');

Service Resolution

This feature allows you to resolve a service by its name. The resolver will locate the service module and return it for use in the application.

import Resolver from 'ember-resolver';

const resolver = Resolver.create();
const service = resolver.resolve('service:my-service');

Route Resolution

This feature allows you to resolve a route by its name. The resolver will find the route module and return it, enabling navigation and routing within the application.

import Resolver from 'ember-resolver';

const resolver = Resolver.create();
const route = resolver.resolve('route:my-route');

Other packages similar to ember-resolver

Keywords

FAQs

Package last updated on 20 Dec 2022

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