Skip to content
This repository has been archived by the owner on May 12, 2024. It is now read-only.

Commit

Permalink
Remove snap, fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
gaurav-nelson committed Aug 13, 2020
1 parent c17a7d3 commit 47e02ad
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 11 deletions.
3 changes: 3 additions & 0 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"esversion": 6
}
8 changes: 1 addition & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,7 @@
Local Installation
==================

[![Get it from the Snap Store](https://snapcraft.io/static/images/badges/en/snap-store-black.svg)](https://snapcraft.io/asciidoc-link-check)

```bash
sudo snap install asciidoc-link-check
```

Or install with NodeJS, run:
Install with NodeJS, run:

``` bash
npm install -g asciidoc-link-check
Expand Down
4 changes: 2 additions & 2 deletions asciidoc-link-check
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ var asciidoc = ''; // collect the asciidoc data, then process it
stream.on('data', function (chunk) {
asciidoc += chunk.toString();
}).on('end', function () {
console.log(chalk.cyan('\nFILE: ' + filenameOutput))
console.log(chalk.cyan('\nFILE: ' + filenameOutput));

if (program.config) {
fs.access(program.config, fs.constants.R_OK, function (err) {
Expand Down Expand Up @@ -86,7 +86,7 @@ function runasciidocLinkCheck(asciidoc, opts) {
asciidocLinkCheck(asciidoc, opts, function (err, results) {

if (results.length === 0) {
console.log(chalk.yellow('No hyperlinks found!\n'))
console.log(chalk.yellow('No hyperlinks found!\n'));
}
results.forEach(function (result) {
if (result.status === 'dead') {
Expand Down
5 changes: 4 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
'use strict';
(function () {
'use strict';
// this function is strict...
}());

var _ = require('lodash');
var async = require('async');
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
},
"main": "index.js",
"scripts": {
"pretest": "jshint index.js asciidoc-link-check"
"pretest": "jshint index.js asciidoc-link-check",
"test": "echo \"No tests specified\""
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 47e02ad

Please sign in to comment.