You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							51 lines
						
					
					
						
							1.5 KiB
						
					
					
				
			
		
		
	
	
							51 lines
						
					
					
						
							1.5 KiB
						
					
					
				"use strict"; | 
						|
 | 
						|
Object.defineProperty(exports, "__esModule", { | 
						|
  value: true | 
						|
}); | 
						|
exports.constants = exports.fileExists = exports.writeFileRaw = exports.readFileRaw = exports.writeFile = exports.readFile = exports.chmod = exports.stat = exports.readdir = exports.makeDir = void 0; | 
						|
 | 
						|
var _pify = _interopRequireDefault(require("pify")); | 
						|
 | 
						|
var _fs = _interopRequireDefault(require("fs")); | 
						|
 | 
						|
var _mkdirp = _interopRequireDefault(require("mkdirp")); | 
						|
 | 
						|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | 
						|
 | 
						|
const _readFile = (0, _pify.default)(_fs.default.readFile); | 
						|
 | 
						|
const _writeFile = (0, _pify.default)(_fs.default.writeFile); | 
						|
 | 
						|
const _access = (0, _pify.default)(_fs.default.access); | 
						|
 | 
						|
const makeDir = (0, _pify.default)(_mkdirp.default); | 
						|
exports.makeDir = makeDir; | 
						|
const readdir = (0, _pify.default)(_fs.default.readdir); | 
						|
exports.readdir = readdir; | 
						|
const stat = (0, _pify.default)(_fs.default.stat); | 
						|
exports.stat = stat; | 
						|
const chmod = (0, _pify.default)(_fs.default.chmod); | 
						|
exports.chmod = chmod; | 
						|
 | 
						|
const readFile = path => _readFile(path, 'utf8'); | 
						|
 | 
						|
exports.readFile = readFile; | 
						|
 | 
						|
const writeFile = (path, data) => _writeFile(path, data, 'utf8'); | 
						|
 | 
						|
exports.writeFile = writeFile; | 
						|
 | 
						|
const readFileRaw = path => _readFile(path, null); | 
						|
 | 
						|
exports.readFileRaw = readFileRaw; | 
						|
 | 
						|
const writeFileRaw = (path, data) => _writeFile(path, data, null); | 
						|
 | 
						|
exports.writeFileRaw = writeFileRaw; | 
						|
 | 
						|
const fileExists = path => _access(path).then(() => true, () => false); | 
						|
 | 
						|
exports.fileExists = fileExists; | 
						|
const constants = _fs.default.constants; | 
						|
exports.constants = constants; |