UNPKG

npm-check-extras

Version:

CLI app to check for outdated and unused dependencies, and run update/delete action over selected ones

16 lines (15 loc) 441 B
import * as R from 'ramda'; import { v4 as uuidv4 } from 'uuid'; const getId = () => { return uuidv4(); }; const getCommandFromSentence = (sentence) => { if (sentence.includes(' to go')) { return R.compose(R.head, R.split)(' to go', sentence); } else if (sentence.includes('age:')) { return R.compose(R.last, R.split)('kage: ', sentence); } return 'yui'; }; export { getId, getCommandFromSentence, };