https://github.com/steelydylan/str-finder
find strings from directories
https://github.com/steelydylan/str-finder
Last synced: about 1 year ago
JSON representation
find strings from directories
- Host: GitHub
- URL: https://github.com/steelydylan/str-finder
- Owner: steelydylan
- Created: 2016-01-30T07:23:27.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-01-30T07:23:31.000Z (over 10 years ago)
- Last Synced: 2025-02-09T00:02:15.726Z (over 1 year ago)
- Language: JavaScript
- Size: 1000 Bytes
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
str-finder
======
Find Strings from specified folder
Download
-----
```
npm instll str-finder
```
Usage
-----
```javascript
var gulp = require("gulp");
var finder = require("str-finder");
var rename = require("gulp-rename");
gulp.task('module_search',function(){
gulp.src("./moduleid.csv")
.pipe(finder({dir:"themes",notFoundOnly:false}))
.pipe(rename({basename:"dist",extname:".csv"}))
.pipe(gulp.dest("./"));
});
gulp.task('default',['module_search']);
```
Option
-----
*notFoundOnly*
show only strings which couldn't be found in the specific folder.
*dir*
Directory you want to search
*delimiter*
For separating words on the source file.
Source File
-----
```
myworks,topCategoryList,csvEntryBody
```
Output
-----
```
name,path
mywork,not Found
topCategoryList,themes/blog2015/top.html
csvEntryBody,themes/blog2015/test.csv
```
LICENSE
-----
(MIT License)
Copyright (c) 2016 [horicdesign](http://horicdesign.com)