-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathutils.js
More file actions
33 lines (26 loc) · 625 Bytes
/
Copy pathutils.js
File metadata and controls
33 lines (26 loc) · 625 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
'use strict';
var utils = require('lazy-cache')(require);
var fn = require;
require = utils;
/**
* Lazily required module dependencies
*/
require('base-data', 'data');
require('camel-case', 'camelcase');
require('fs-exists-sync', 'exists');
require('is-valid-app', 'isValid');
require('expand-pkg', 'Expand');
require('mixin-deep', 'merge');
require('namify');
require('repo-utils', 'repo');
require = fn;
/**
* Returns true if `str` is a string with length greater than zero
*/
utils.isString = function(val) {
return val && typeof val === 'string';
};
/**
* Expose `utils` modules
*/
module.exports = utils;