import * as ts from 'typescript' ; export const STAR = [ '*' ] ; export interface FromWhat { from : string ; what : string [ ] ; isExportStarAs ? : boolean ; } const TRIM_QUOTES = /^['"](.*)['"]$/ ; export const getFromText = ( moduleSpecifier ) : string => moduleSpecifier . replace ( TRIM_QUOTES , '$1' ) . replace ( /\/index$/ , '' ) ; export const getFrom = ( moduleSpecifier ) : string => getFromText ( moduleSpecifier . getText ( ) ) ;