
Research
/Security News
Fake imToken Chrome Extension Steals Seed Phrases via Phishing Redirects
Mixed-script homoglyphs and a lookalike domain mimic imToken’s import flow to capture mnemonics and private keys.
This addon provides a very simple abstraction to use enum attributes with ember data.
This addon provides a very simple abstraction to use enum attributes with ember data.
ember install ember-enum
You can define an enum attribute as follows:
import Model from 'ember-data/model';
import attr from 'ember-data/attr';
export default Model.extend({
status: attr('enum', {
options: [
'started',
'stopped'
],
defaultValue: 'started'
})
});
The value from the json response is expected to be a string. Now you can use the attribute in templates:
{{model.status.value}}
You can also use boolean methods to check if the enum has a certain value:
{{#if model.status.isStarted}}
Started!
{{/if}}
You can use a select element like this:
<select value={{model.status.value}} onchange={{action (mut model.status.value) value="target.value"}}>
{{#each model.status.options as |option|}}
<option value={{option}}>{{option}}</option>
{{/each}}
</select>
This project only works with ember-data 2.5 and higher.
This project is released under the MIT License.
FAQs
This addon provides a very simple abstraction to use enum attributes with ember data.
The npm package ember-enum receives a total of 0 weekly downloads. As such, ember-enum popularity was classified as not popular.
We found that ember-enum demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Research
/Security News
Mixed-script homoglyphs and a lookalike domain mimic imToken’s import flow to capture mnemonics and private keys.

Security News
Latio’s 2026 report recognizes Socket as a Supply Chain Innovator and highlights our work in 0-day malware detection, SCA, and auto-patching.

Company News
Join Socket for live demos, rooftop happy hours, and one-on-one meetings during BSidesSF and RSA 2026 in San Francisco.