Equality evaluates JavaScript expressions inline inside the active editor and replaces them with the result.
Each cursor evaluates the expression that starts at the last configured symbol on its current line.
Write an expression starting with the configured equality symbol and place the cursor at the end of the expression.
=2 + 2
Run Equality: Evaluate expression with Ctrl+Enter on Windows/Linux or Cmd+Enter on macOS.
Add variables in your VS Code settings through equality.vars. They are exposed inside expressions as e.<name>.
"equality.vars": {
"name": "Javier Artero",
"company": "MarsBased",
"github": "https://github.com/javierartero"
}Example:
=e.name
Use =help to open the documentation picker. When an evaluation fails, Equality shows relevant documentation links for the current expression.
=help
Equality exposes chroma and the alias c.
=chroma.scale(['#FFF', 'blue']).colors(5)
=c('white').hex()
Equality exposes lodash through _.
=_.camelCase('change of format case')
=_.repeat('I will not copy in class \n', 5)
Equality exposes faker and the alias f. The locale is controlled through faker.locale.
=faker.name.findName()
=rand(-100, 100)
Converts a hexadecimal color to an RGB string. Shorthand values such as #f0a are supported.
Converts RGB channels to hexadecimal notation.
=rgb('#ff87dd')
=hex(255, 213, 65)
Defines the symbol used to find the expression start. The default is =.
Defines custom variables exposed through e.
Controls the locale used by faker helpers.
npm install
npm test







