text-base-lookup
find out all text base files
Last updated 2 years ago by jf3096 .
MIT · Original npm · Tarball · package.json
$ cnpm install text-base-lookup 
SYNC missed versions from official npm registry.

text-base-lookup

遍历目录获取所有文本类型(或二进制)文件

安装

  npm install text-base-lookup --save

使用

import lookup from "text-base-lookup";

const resolve = (...relativePath) => path.resolve(__dirname, '../', ...relativePath);

const patterns = [
  resolve('app/**/*')
];

lookup(patterns).then(({ text, binary }) => {
  console.log(text); // 文本类型文件列表
  console.log(binary); // 二进制文件列表
});

作者

She Ailun

Current Tags

  • 0.0.2                                ...           latest (2 years ago)

1 Versions

  • 0.0.2                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (4)
Dev Dependencies (13)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |