• Packages
  • Themes
  • Documentation
  • Blog
  • Discussions
Sign in

dakota

Utilities for transforming JavaScript syntax
gimenete
1.0.0 73
1
  • Repo
  • Bugs
  • Versions
  • License
Flag as spam or malicious

dakota package

Atom package that transforms pieces of JavaScript code

dakota

Put the cursor inside a template string, a string literal or an arrow function and press shift-alt-d

Supported transforms

  • An arrow function without a block statement is transformed into an arrow function with block statement and a return statement
  • An arrow function with one statement being a return statement is transformed into an arrow function without braces and return
  • A template string is transformed into a regular literal string
  • A regular literal string is transformed into a template string

TODO

  • Make the code style configurable (semi colons, quotes, etc.)
  • Add more transforms (ES6/ES6 imports and exports for example)

I think this package is bad news.

Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.

  • Terms of Use
  • Privacy
  • Code of Conduct
  • Releases
  • FAQ
  • Contact
with by