Download wp-calypso/desktop/app/lib/assets/index.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 421 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/desktop/app/lib/assets/index.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/desktop/app/lib/assets/index.js
-
curl -L -o index.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/desktop/app/lib/assets/index.js
421 Bytes
| const path = require( 'path' ); | |
| let pathStub; | |
| if ( process.env.NODE_ENV !== 'development' ) { | |
| pathStub = path.resolve( __dirname ).replace( /\\/g, '\\\\' ); | |
| } else { | |
| pathStub = path.resolve( __dirname, '..', '..', '..' ).replace( /\\/g, '\\\\' ); | |
| } | |
| const publicPath = path.resolve( pathStub, 'public_desktop' ); | |
| module.exports = { | |
| getPath: function ( filename ) { | |
| return path.join( publicPath, filename ); | |
| }, | |
| }; | |