Skip to content

Commit

Permalink
fix: change package name
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey Lobzov committed Jan 24, 2024
1 parent 83d6e16 commit 45d7a1d
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: asciidoc-link-check-test
name: test

on: [push]

Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[![test](https://github.com/alobzov/asciidoc-link-check/actions/workflows/test.yml/badge.svg)](https://github.com/alobzov/blog/actions/workflows/test.yml)
[![Hits-of-Code](https://hitsofcode.com/github/alobzov/asciidoc-link-check?branch=main&label=Hits-of-Code)](https://hitsofcode.com/github/alobzov/asciidoc-link-check/view?branch=main&label=Hits-of-Code)
[![My Telegram](https://img.shields.io/badge/Telegram-contact-active?logo=telegram)](https://t.me/alobzov)
# Asciidoc Link Checker

# Asciidoc Link Check
[![test](https://github.com/alobzov/asciidoc-link-checker/actions/workflows/test.yml/badge.svg)](https://github.com/alobzov/blog/actions/workflows/test.yml)
[![Hits-of-Code](https://hitsofcode.com/github/alobzov/asciidoc-link-checker?branch=main&label=Hits-of-Code)](https://hitsofcode.com/github/alobzov/asciidoc-link-checker/view?branch=main&label=Hits-of-Code)
[![My Telegram](https://img.shields.io/badge/Telegram-contact-active?logo=telegram)](https://t.me/alobzov)

This module extracts links from asciidoc texts and checks whether each link is alive ( 200 OK ) or dead.

Expand All @@ -19,7 +19,7 @@ yarn test
Run

```shell
yarn asciidoc-link-check ./test/data/valid-links-file.adoc
yarn asciidoc-link-checker ./test/data/valid-links-file.adoc
```

The exit code would be `0` and every link found is alive ( 200 OK ).
Expand All @@ -39,7 +39,7 @@ Exit code: 0
Run

```shell
yarn asciidoc-link-check ./test/data/invalid-links-file.adoc
yarn asciidoc-link-checker ./test/data/invalid-links-file.adoc
```

The exit code would be `-1` and every link found is not alive.
Expand Down
File renamed without changes.
13 changes: 5 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,20 @@
{
"name": "asciidoc-link-check",
"name": "asciidoc-link-checker",
"version": "0.0.9",
"description": "script checks links availability in an asciidoc file",
"license": "MIT",
"author": {
"name": "Alexey Lobzov",
"email": "aleks.lobzov@gmail.com"
},
"main": "./asciidoc-link-check.js",
"bin": {
"asciidoc-link-check": "./asciidoc-link-check.js"
},
"main": "./asciidoc-link-checker.js",
"repository": {
"type": "git",
"url": "https://github.com/alobzov/asciidoc-link-check.git"
"url": "https://github.com/alobzov/asciidoc-link-checker.git"
},
"scripts": {
"asciidoc-link-check": "node asciidoc-link-check.js",
"test": "jest ./test/asciidoc-link-check.test.js"
"asciidoc-link-checker": "node asciidoc-link-checker.js",
"test": "jest ./test/asciidoc-link-checker.test.js"
},
"devDependencies": {
"jest": "^29.7.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { checkLink, logCheckLinkResult, checkFileLinks, pattern } = require('../asciidoc-link-check');
const { checkLink, logCheckLinkResult, checkFileLinks, pattern } = require('../asciidoc-link-checker');


describe('test checkLink function', () => {
Expand Down

0 comments on commit 45d7a1d

Please sign in to comment.