Download wp-calypso/bin/welcome.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 1.26 kB
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/bin/welcome.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/bin/welcome.js
-
curl -L -o welcome.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/bin/welcome.js
1.26 kB
| const process = require( 'process' ); | |
| const chalk = require( 'chalk' ); | |
| console.log( chalk.cyan( ' _ ' ) ); | |
| console.log( chalk.cyan( ' ___ __ _| |_ _ _ __ ___ ___ ' ) ); | |
| console.log( chalk.cyan( " / __/ _` | | | | | '_ \\/ __|/ _ \\ " ) ); | |
| console.log( chalk.cyan( ' | (_| (_| | | |_| | |_) \\__ \\ (_) | ' ) ); | |
| console.log( chalk.cyan( ' \\___\\__,_|_|\\__, | .__/|___/\\___/ ' ) ); | |
| console.log( chalk.cyan( ' |___/|_| \n' ) ); | |
| if ( process.env.MOCK_WORDPRESSDOTCOM === '1' ) { | |
| console.log( | |
| `${ chalk.yellowBright.bold( 'Mocking WordPress.com' ) } | |
| - Add ${ chalk.yellowBright( '127.0.0.1 wordpress.com' ) } to your hosts file. | |
| - If you want to sandbox the authentication backend, sandbox ${ chalk.yellowBright( | |
| 'de.wordpress.com' | |
| ) } in your hosts file. | |
| - Type ${ chalk.white.bgBlue( ' thisisunsafe ' ) } in Chrome when you visit wordpress.com. | |
| ${ chalk.greenBright( 'Press any key to continue...' ) } | |
| ` | |
| ); | |
| // Wait for user input to continue | |
| process.stdin.setRawMode( true ); | |
| process.stdin.once( 'data', () => { | |
| process.stdin.setRawMode( false ); | |
| console.log( chalk.greenBright( 'Continuing...' ) ); | |
| process.exit( 0 ); | |
| } ); | |
| } | |