Download wp-calypso/client/lib/get-asset-file-path/index.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 153 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/lib/get-asset-file-path/index.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/lib/get-asset-file-path/index.js
-
curl -L -o index.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/lib/get-asset-file-path/index.js
153 Bytes
| import path from 'path'; | |
| export default function getAssetFilePath( filePath ) { | |
| return path.join( __dirname, '..', '..', '..', 'public', filePath ); | |
| } | |