Download node_modules/loupe/lib/function.js from Snapkitty/sovereign-apollo: direct link, hf CLI and curl.
- Browser
- Download file 350 Bytes
-
https://huggingface.co/Snapkitty/sovereign-apollo/resolve/main/node_modules/loupe/lib/function.js
- Command line
-
hf download hf://Snapkitty/sovereign-apollo/node_modules/loupe/lib/function.js
-
curl -L -o function.js https://huggingface.co/Snapkitty/sovereign-apollo/resolve/main/node_modules/loupe/lib/function.js
350 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') | |
| } | |