Skip to content

javierartero/vscode-equality

Repository files navigation

equality README

This plugin use eval(), custom functions, methods and external libraries to evaluate and replace javascript content

You can use multiples cursors

multiple-cursor

You can calculate

=2+2 //Press Ctrl + Enter

calculate

You can create personal vars

Add equality.vars in your users settings

"equality.vars": {
    "name": "Javier Artero",
    "company": "MarsBased SL",
    "github": "https://github.com/javierartero"
}

Reload window

When you call a =e you will be calling equality.vars

=e.plugin //Press Ctrol + Enter

vars

Help

Now the plugin has a help system that will appear when it is not able to evaluate the content

You can open all the help elements from the method

=help

Help

You can use the chroma.js

chroma.js is a tiny JavaScript library (14kB) for dealing with colors!

  • read colors from a wide range of formats
  • analyze and manipulate colors
  • convert colors into wide range of formats
  • linear and bezier interpolation in different color spaces

chroma.js

You can use the lodash.js

Lodash makes JavaScript easier by taking the hassle out of working with arrays, numbers, objects, strings, etc. Lodash’s modular methods are great for:

  • Iterating arrays, objects, & strings
  • Manipulating & testing values
  • Creating composite functions

lodash.js

You can use the "faker.js"

faker.js is an external library generate massive amounts of fake

=faker.name.findName() //Press Ctrol + Enter

Faker

Custom functions and methods

rand(min:number = 0, max:number = 100)

rand

Default arguments min:number = 0, max:number = 100

=rand(-100,100)

rgb(r:number, g:number, b:number)

color

hex(hex:string)

This method allows the use of shorthand '# ff0'

color

Put an equality in your life...

About

Visual studio plugin that replaces content by eval() it

Resources

Stars

Watchers

Forks

Packages

No packages published