paypal / AATT

Automated Accessibility Testing Tool
BSD 3-Clause "New" or "Revised" License
602 stars 106 forks source link

Use as node module #45

Closed samboylett closed 5 years ago

samboylett commented 5 years ago

Hi, I've been using AATT via the web API, it is very useful! I think it would be great if you could also use this as a standard node module instead, e.g.:

import { evaluate } from '@paypal/aatt';

evaluate({ source: '<html />', output: 'json' }).then(results => {
  console.log(results);
});

Is this on the road map? I'm happy to put in a PR for this if not

mpnkhan commented 5 years ago

No @samboylett . There is no such thing for now. What's on roadmap is to have a dashboard.
Please raise a PR.

derhecht commented 5 years ago

Could you then just remove the mentioned option in central Readme file? "How to use as a node module"

samboylett commented 5 years ago

@derhecht that was a part of this PR

derhecht commented 5 years ago

ok, got the problem. when fetching via npm install I will receive an old version where the described things does not work. will try via git pull as described which is never the less quite ugly in npm circumstances.

samboylett commented 5 years ago

Yep, I'm currently importing it as:

"aatt": "git+https://git@github.com/paypal/AATT.git#98699dd3c1ceded0c752a037af8d881e1d47bcc7"
mpnkhan commented 5 years ago

@derhecht Pushed aatt@0.1.1 . Apologies for the delay..