Download web/node_modules/loupe/lib/function.js from amitesh11/pose: direct link, hf CLI and curl.
- Browser
- Download file 340 Bytes
-
https://huggingface.co/spaces/amitesh11/pose/resolve/main/web/node_modules/loupe/lib/function.js
- Command line
-
hf download hf://spaces/amitesh11/pose/web/node_modules/loupe/lib/function.js
-
curl -L -o function.js https://huggingface.co/spaces/amitesh11/pose/resolve/main/web/node_modules/loupe/lib/function.js
340 Bytes
| import getFunctionName from 'get-func-name' | |
| import { truncate } from './helpers' | |
| export default function inspectFunction(func, options) { | |
| const name = getFunctionName(func) | |
| if (!name) { | |
| return options.stylize('[Function]', 'special') | |
| } | |
| return options.stylize(`[Function ${truncate(name, options.truncate - 11)}]`, 'special') | |
| } | |