🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

@ignored/analyzer

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ignored/analyzer

This is an N-API lib that exposes a single library, which takes a solidity source file's content, and returns its version pragmas and imports.

latest
npmnpm
Version
0.0.4
Version published
Maintainers
2
Created
Source

PLEASE IGNORE Solidity files analyzer

This is an N-API lib that exposes a single library, which takes a solidity source file's content, and returns its version pragmas and imports.

API

export interface AnalysisResult {
  versionPragmas: Array<string>;
  imports: Array<string>;
}

export function analyze(input: string): AnalysisResult;

TODO

  • Add tests for malformed version import statements where it still works
  • Add tests for malformed version pragma statements where it still works
  • Add tests for error recovery

FAQs

Package last updated on 29 May 2022

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