New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

check-v8-optimised

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

check-v8-optimised

Check if your module/function is optimised for the V8 engine.

  • 2.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Check V8 Optimised

Check if your module/function is optimized for the V8 engine. Download it and run it against (and from within) any module/function very quickly.

If it isn't check the WHY section below on reading material to help find reasons why and optimize your code.

Install

npm install check-v8-optimised

Usage

var optimiser = require('check-v8-optimised');
var someModule = require('./someModule');

// specify arguments for your function
var args = [1, 2];
var optimiserResult = optimiser(someModule, args);

console.log(optimiserResult); // prints "Function is optimized"

The module returns a string which can be outputted to console, parsed inside a test or used anyway you like.

node yourFile.js

Test + Linter

npm run test
npm run lint

How

Using available low level diagnostic commands in the V8 engine, can ask if a given function is optimized. See below for possible reasons why.

Why?

Inspired by an article from Bluebird on V8 optimising.

Keywords

FAQs

Package last updated on 30 Dec 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc