@codemod-utils/ember
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

This project uses GitHub Actions for continuous integration.

@codemod-utils/ember

Utilities for Ember

What is it?

@codemod-utils/ember provides methods that can help write codemods for Ember projects.

API

camelize

Converts an entity name to camel case. Used for naming the function that is associated with the entity.

import { camelize } from '@codemod-utils/ember';

const newValue = camelize('ui/form/generate-error-message');

// 'uiFormGenerateErrorMessage'

doubleColonize

Converts an entity name to double colon (::) case. Used for writing the angle bracket syntax or the signature for a component.

import { doubleColonize } from '@codemod-utils/ember';

const newValue = doubleColonize('ui/form/input');

// 'Ui::Form::Input'

pascalize

Converts an entity name to Pascal case. Used for naming the class that is associated with the entity.

import { pascalize } from '@codemod-utils/ember';

const newValue = pascalize('ui/form/input');

// 'UiFormInput'

Compatibility

  • Node.js v18 or above

Contributing

See the Contributing guide for details.

License

This project is licensed under the MIT License.

Readme

Keywords

Package Sidebar

Install

npm i @codemod-utils/ember

Weekly Downloads

487

Version

2.0.0

License

MIT

Unpacked Size

7.6 kB

Total Files

11

Last publish

Collaborators

  • ijlee2