UNPKG

apple-music-token-node

Version:

generate developer tokens for the apple music api in node, with a CLI mode for development.

14 lines (12 loc) 290 B
const fs = require('fs'); const path = require('path'); module.exports = { resolveUsingCwd: (fp) => path.resolve(path.basename(process.cwd()), fp), fileExists: (filePath) => { try { return fs.lstatSync(filePath).isFile(); } catch (err) { return false; } } };