deno.land / x / phonenumber@v3.4.0 / scripts / rewrite.ts

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

import { promises } from 'fs'import * as path from 'path'
const { readFile, writeFile } = promises;
const distFile = path.resolve( __dirname, '..', 'lib', 'index.js' );
async function rewrite( ){ const data = await readFile( distFile, 'utf-8' ); const res = data.replace( /\bconst /g, 'var ' ); await writeFile( distFile, res, 'utf-8' );}rewrite( );
phonenumber

Version Info

Tagged at
a year ago