0.3.1 • Published 8 years ago

regex-finder v0.3.1

Weekly downloads
6
License
MIT
Repository
github
Last release
8 years ago

REGEX-FINDER

If you need create static file from itens you use in given directory. Use this plugin! For now only help to find the html id is used to svg extractor.

New feature (bug fixed!!!)

  • Can pass multiple directory using array.
  • Pass a list of aceptable extesion to find (optional)

First Steps NO MORE!

Now use es2015, don't need first steps! Thanks for: npm~lucasmreis

npm install npm install regex-finder

Example:

Example:

// list of find itens in this exaple is a html id without a #
const list = ['navbar', 'simple', 'slogan', 'icon-brand-cut']

// directory to find recursively in files the list
const directory = './test/'

// the list is returned, value is "ALL" | "FOUND" | "NOT_FOUND"(default)
const resumeOf = 'FOUND'

var notFound = find({
  list: list,
  path: directory,
  extension: ['html', 'js', 'json'], // (optional)
  getResumeOf: 'NOT_FOUND' // (can be omited)
});

notFound // this a new list of not found in directory
0.3.1

8 years ago

0.2.7

8 years ago

0.2.6

8 years ago

0.2.5

8 years ago

0.2.4

8 years ago

0.2.3

8 years ago

0.2.1

8 years ago

0.1.6

8 years ago

0.1.5

8 years ago

0.1.3

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago