0.3.2 • Published 6 months ago

wasm-grate v0.3.2

Weekly downloads
-
License
ISC
Repository
-
Last release
6 months ago

WASM-grate

WASM-grate (a portmanteau of WebAssembly and "integrate/migrate") is a tool designed to streamline the adoption of WebAssembly in modern front-end web projects.

It helps you to identify potential bottlenecks or performance hitches in JavaScript (JS) or TypeScript (TS) codebases. WASM-grate highlights areas that could significantly benefit from the speed and efficiency of WebAssembly (e.g. CPU-intensive tasks).

Installation

npm i wasm-grate

Usage

wasm-grate -path '<path to a file or directory>'

or

wasm-grate -p '<path>'

Examples:

wasm-grate --path src/pages/Search
wasm-grate -p src/components/Report/Feed/helpers.ts

Output

# LOCATION
src/components/ProjectReport/ProjectFeed/Contribution/helpers/process-pr-data.ts:14:19

# COMPLEXITY SCORE
Complexity: 4/10

# DECLARATION OF THE FUNCTION
Declaration: const getScale = (totalChanges: number | null): number

Deploy to NPM and crates

rust-to-npm-cli deploy -b

Current state

WASM-grate is still in development and not production-ready yet.

For now it works only for:

  • function declarations
function foo() {
    console.log('function declaration');
} 
  • expressions
const bar = function() {
    console.log('function expression');
}
  • arrow functions
const foo = () => {
    console.log('arrow function');
} 

Please, wait for version 1.0.0

0.3.2

6 months ago

0.3.1

6 months ago

0.3.0

6 months ago

0.2.2

6 months ago

0.2.1

6 months ago

0.2.0

6 months ago

0.1.23

6 months ago

0.1.22

6 months ago

0.1.21

6 months ago

0.1.20

6 months ago

0.1.19

6 months ago

0.1.18

6 months ago

0.1.17

6 months ago

0.1.16

6 months ago

0.1.15

6 months ago

0.1.14

6 months ago

0.1.13

6 months ago

0.1.12

6 months ago

0.1.11

6 months ago

0.1.1

6 months ago

0.1.0

6 months ago