JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 74316
  • Score
    100M100P100Q158788F

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

Package Exports

  • espower-source

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (espower-source) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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

type default value
string N/A

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

filepath

type default value
string N/A

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

options

type default 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.