creep

Crawls metadata in files and directories

For now, this project is deprecated. I no longer use or work on it, and doubt others are using it. If by any chance you were using this, and would like to see more of it in some form, let me know: justnvdm@gmail.com
Last updated 6 years ago by justinvdm .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install creep 
SYNC missed versions from official npm registry.

creep

crawls metadata in files and directories.

$ creep "'microscopic' in tags or 'rainbows' in tags"  
a.md
b.js

installation

# npm install -g creep

usage

add front matters to the files you want to be searchable:

a.md:

---
tags:
  - rainbows
  - earthworms
---

# there are rainbows
and earthworms

b.js:

// ---
// tags:
//   - microscopic
//   - hummingbirds
// ---

console.log('and microscopic hummingbirds');

then just query the metadata:

$ creep "'microscopic' in tags or 'rainbows' in tags"  
a.md
b.js

creep uses coffeescript as the query language, but alternatives can be plugged in. lodash is available in queries as _.

creep looks for the first of the following metadata files in the directories it crawls, recursively merging the metadata into child directory and file metadata:

  • .creep.yml
  • .creep.yaml
  • creep.yml
  • creep.yaml
  • .creep.json
  • creep.json

config

creep's uses the config defaults given in creep.config, then merges these defaults with the first of these configs that it finds:

  • ./.creeprc.yml
  • ./.creeprc.yaml
  • ./.creeprc.json
  • $HOME/.creeprc.yml
  • $HOME/.creeprc.yaml
  • $HOME/.creeprc.json

Current Tags

  • 0.2.1                                ...           latest (6 years ago)

5 Versions

  • 0.2.1 [deprecated]           ...           6 years ago
  • 0.2.0 [deprecated]           ...           6 years ago
  • 0.1.2 [deprecated]           ...           6 years ago
  • 0.1.1 [deprecated]           ...           6 years ago
  • 0.1.0 [deprecated]           ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (8)
Dev Dependencies (4)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |