MCPcopy Index your code
hub / github.com/developit/microbundle / removeScope

Function removeScope

src/utils.js:33–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31
32/** Remove a @scope/ prefix from a package name string */
33export const removeScope = name => name.replace(/^@.*\//, '');
34
35const INVALID_ES3_IDENT = /((^[^a-zA-Z]+)|[^\w.-])|([^a-zA-Z0-9]+$)/g;
36

Callers 2

getOutputFunction · 0.90
safeVariableNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…