1.0.0 • Published 2 years ago

node-keyword-scrapper v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

node-keyword-scrapper

NPM version

NodeJS library for searching keyword in directory and sub-directory. Library generates CSV report with number of occurrences for keyword and file count.


Getting started

How to use node keyword scrapper in your projects

License

This project is licensed under the MIT License. See LICENSE for more information.

Table of contents


Installation as dependency

$ npm install --save node-keyword-scrapper

Installation for CLI usage

$ npm install -g node-keyword-scrapper

Use as dependency

const lib = require('node-keyword-scrapper');

lib.searchKeysInDirectory(DIRECTORY_PATH, JSON_FILE_PATH, EXTENSIONS, OPTIONS);

Use as CLI

$ node-keyword-scrapper DIRECTORY_PATH, JSON_FILE_PATH, EXTENSIONS, OPTIONS ⏎

Options

paramsdescriptionexamplerequired ?default
directoryPathDirectory path to search for files'/User/bob/folders'true
keysFilePathPath for JSON file containing keys'/User/bob/key.json'true
extensionsFile extensions to search for'.js,.html'false '.ts', '.html'
optsOptions for key transpose'{"output":"FOLDER_PATH","transpose":{"char":".","charReplacement":"?."},"exclude":"/node_modules","coverage"}'false{}

Reports

  • Report is generated to CSV format
indexlabelKeyoccurrenceCountfileCountstatus
0'import'118'KEY_USED'
1'console.log'53'KEY_USED'
2'throw'11'KEY_USED'
3'console.table'00'KEY_NEVER_USED'
1.0.0

2 years ago

0.0.41

2 years ago

0.0.40

2 years ago

0.0.38

2 years ago

0.0.37

2 years ago

0.0.36

2 years ago

0.0.35

2 years ago

0.0.34

2 years ago

0.0.33

2 years ago

0.0.32

2 years ago

0.0.31

2 years ago

0.0.30

2 years ago

0.0.29

2 years ago

0.0.28

2 years ago

0.0.27

2 years ago

0.0.26

2 years ago

0.0.25

2 years ago

0.0.24

2 years ago

0.0.23

2 years ago

0.0.22

2 years ago

0.0.21

2 years ago

0.0.20

2 years ago

0.0.19

2 years ago

0.0.18

2 years ago

0.0.17

2 years ago

0.0.16

2 years ago

0.0.15

2 years ago

0.0.14

2 years ago

0.0.13

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago