Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

espower-source

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

espower-source

Power Assert instrumentor from source to source, with source-map

  • 0.10.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
18K
decreased by-10%
Maintainers
1
Weekly downloads
 
Created
Source

espower-source

Build Status NPM version Dependency Status

Power Assert instrumentor from code to code, with SourceMap.

DESCRIPTION

espower-source is a source code transformer that applies espower to target code.

espower manipulates assertion expression (JavaScript Code) represented as Mozilla JavaScript AST, to instrument power-assert feature into the code. SourceMap information is appended in SourceMap Comment syntax at the end of returned code.

Please note that espower-source is a beta version product. Pull-requests, issue reports and patches are always welcomed.

See power-assert project for more documentation.

CHANGELOG

See CHANGELOG

API

var modifiedCode = espowerSource(originalCode, filepath, [options])

return type
string

espowerSource function manipulates originalCode then returns (transformed) JavaScript code as string. SourceMap information is appended in SourceMap Comment syntax at the end of returned code.

originalCode
typedefault value
stringN/A

Original JavaScript source code that is a source of code transformation.

filepath
typedefault value
stringN/A

Filepath of originalCode. If passed, espowerSource stores filepath information for later reporting.

options
typedefault value
object(return value of espower.defaultOptions() but with destructive option is true)

Configuration options for espower module. If not passed, default options (Same as espower.defaultOptions()) will be used, but destructive option is set to true by espower-source module.

AUTHOR

CONTRIBUTORS

LICENSE

Licensed under the MIT license.

Keywords

FAQs

Package last updated on 11 Nov 2014

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