JSPM

  • Created
  • Published
  • Downloads 26898
  • Score
    100M100P100Q154556F
  • License MIT

compare ast-nodes

Package Exports

  • @putout/compare

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 (@putout/compare) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

putout-compare NPM version Dependency Status

Compare AST-nodes.

Install

npm i @putout/compare

API

Compare (node, baseNode)

    const {compare} = require('@putout/compare');
    compare('const a = {}', 'const a = {}');
    compare('const a = {}', 'const __ = {}');
    compare('const a = "hello"', 'const __ = "__"');
    // returns
    true

License

MIT