パッケージって言うんですか?ブラウザ上でご利用いただけます。
必要とする
var didYouMean = require ( "./lib/didUMean" ) ;
didYouMean ( "j2trappy" , [
"j2.trappy" ,
"j3.trappy"
] ) . then ( console . log ) ; // j2.trappy
console . log ( didYouMean . sync ( "j2trappy" , [
"j2.trappy" ,
"j3.trappy"
] ) ) ; // j2.trappy
輸入
import didYouMean from "./lib/didUMean" ;
didYouMean ( "j2trappy" , [
"j2.trappy" ,
"j3.trappy"
] ) . then ( console . log ) ; // j2.trappy
console . log ( didYouMean . sync ( "j2trappy" , [
"j2.trappy" ,
"j3.trappy"
] ) ) ; // j2.trappy