UNPKG

bricks-cli

Version:

Command line tool for developing ambitious ember.js apps

31 lines (30 loc) 1.81 kB
{ "name": "walk-sync", "description": "Get an array of recursive directory contents", "version": "0.1.2", "author": { "name": "Jo Liss", "email": "joliss42@gmail.com" }, "main": "index.js", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/joliss/node-walk-sync" }, "dependencies": {}, "devDependencies": { "tap": "^0.4.8" }, "scripts": { "test": "tap --stderr --timeout 2 ./test/*.js" }, "readme": "# node-walk-sync\n\n[![Build Status](https://travis-ci.org/joliss/node-walk-sync.png?branch=master)](https://travis-ci.org/joliss/node-walk-sync)\n\nReturn an array containing all recursive files and directories under a given\ndirectory, similar to Unix `find`. Does not follow symlinks. Bare-bones, but\nvery fast.\n\nNot to be confused with [node-walk](https://github.com/coolaj86/node-walk),\nwhich has both an asynchronous and a synchronous API.\n\n## Installation\n\n```bash\nnpm install --save walk-sync\n```\n\n## Usage\n\n```js\nvar walkSync = require('walk-sync');\nvar paths = walkSync('foo')\n```\n\nGiven `foo/one.txt` and `foo/subdir/two.txt`, `paths` will be the following\narray:\n\n```js\n['one.txt', 'subdir/', 'subdir/two.txt']\n```\n\nNote that directories come before their contents, and have a trailing slash.\n\nSymlinks are not followed. They are treated like files, even when they point\nto directories.\n\n## Background\n\n`walkSync(baseDir)` is a faster substitute for\n\n```js\nglob.sync('**', {\n cwd: baseDir,\n dot: true,\n mark: true,\n strict: true\n})\n```\n", "readmeFilename": "README.md", "bugs": { "url": "https://github.com/joliss/node-walk-sync/issues" }, "homepage": "https://github.com/joliss/node-walk-sync", "_id": "walk-sync@0.1.2", "_from": "walk-sync@^0.1.2" }