Skip to content

mattstyles/alias

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

alias

Build Status

Turns one string into another

$ npm i -S @mattstyles/alias
// from -> to
const ALIASES = {
  ls: 'list'
}

const alias = require( '@mattstyles/alias' )( ALIASES )

console.log( alias( 'ls' ) )
// list

console.log( alias( 'unknown' ) )
// unknown

About

Turns one string into another

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published