unix-permissions
Version:
Swiss Army knife for Unix permissions
10 lines (6 loc) • 293 B
JavaScript
import{convert as convertValue}from"./helpers.js";
import{TYPES_MAP}from"./types/main.js";
import{mapValues}from"./utils.js";
const getConverters=()=>mapValues(TYPES_MAP,getConverter);
const getConverter=(type,name)=>convertValue.bind(undefined,name);
export const convert=getConverters();