Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GuillaumeGomez/minifier-rs
/ functions
Functions
371 in github.com/GuillaumeGomez/minifier-rs
⨍
Functions
371
◇
Types & classes
26
↓ 50 callers
Method
apply
(self, func: F)
src/js/token.rs:1054
↓ 43 callers
Method
len
(&self)
src/js/utils.rs:48
↓ 29 callers
Method
to_string
(&self)
src/js/utils.rs:34
↓ 22 callers
Function
tokenize
(source: &str)
src/js/token.rs:907
↓ 19 callers
Function
simple_minify
(source: &str)
src/js/tools.rs:631
↓ 18 callers
Method
next
(&mut self)
src/js/utils.rs:29
↓ 15 callers
Function
inner_double_checks
(source: &str, expected: &str)
src/js/tools.rs:1030
↓ 14 callers
Function
block
(shortty, longty)
tests/files/main.js:1762
↓ 14 callers
Function
block
(shortty,longty)
tests/files/minified_main.js:1
↓ 14 callers
Method
is_white_character
(&self)
src/js/token.rs:41
↓ 12 callers
Method
next
(&mut self)
src/js/token.rs:889
↓ 11 callers
Function
collapseDocs
(toggle, mode, pageId)
tests/files/main.js:1949
↓ 11 callers
Function
collapseDocs
(toggle,mode,pageId)
tests/files/minified_main.js:1
↓ 11 callers
Method
is_comment
(&self)
src/js/token.rs:418
↓ 10 callers
Method
peek
Returns None if saving.
src/js/token.rs:873
↓ 9 callers
Method
get_char
(&self)
src/js/token.rs:430
↓ 8 callers
Method
into_iter
(self)
src/js/token.rs:1066
↓ 8 callers
Function
labelForToggleButton
(sectionIsCollapsed)
tests/files/main.js:1875
↓ 8 callers
Function
labelForToggleButton
(sectionIsCollapsed)
tests/files/minified_main.js:1
↓ 6 callers
Function
browserSupportsHistoryApi
()
tests/files/main.js:151
↓ 6 callers
Function
browserSupportsHistoryApi
()
tests/files/minified_main.js:1
↓ 6 callers
Function
get_array
( tokens: &'a Tokens<'a>, array_name: &str, )
src/js/utils.rs:412
↓ 6 callers
Function
levenshtein
(s1, s2)
tests/files/main.js:411
↓ 6 callers
Function
levenshtein
(s1,s2)
tests/files/minified_main.js:1
↓ 6 callers
Function
printTab
(nb)
tests/files/main.js:2407
↓ 6 callers
Function
printTab
(nb)
tests/files/minified_main.js:1
↓ 6 callers
Function
typePassesFilter
(filter, type)
tests/files/main.js:831
↓ 6 callers
Function
typePassesFilter
(filter,type)
tests/files/minified_main.js:1
↓ 5 callers
Function
aggregate_strings_into_array
(tokens: Tokens<'a>, array_name: &str)
src/js/tools.rs:595
↓ 5 callers
Method
is_useless
(&self)
src/css/token.rs:106
↓ 5 callers
Function
minify
Returns a minified version of the provided HTML source.
src/html.rs:152
↓ 4 callers
Function
adjustToggle
(arg)
tests/files/main.js:1954
↓ 4 callers
Function
adjustToggle
(arg)
tests/files/minified_main.js:1
↓ 4 callers
Function
aggregate_strings_into_array_inner
( mut tokens: Tokens<'a>, array_name: &str, separation_token: Option<Token<'b>>, filter: T, )
src/js/tools.rs:396
↓ 4 callers
Method
as_str
(&self)
src/cli.rs:69
↓ 4 callers
Method
eq
(&self, other: &ReservedChar)
src/css/token.rs:329
↓ 4 callers
Method
eq_char
(&self, rc: ReservedChar)
src/js/token.rs:437
↓ 4 callers
Function
extractGenerics
(val)
tests/files/main.js:620
↓ 4 callers
Function
extractGenerics
(val)
tests/files/minified_main.js:1
↓ 4 callers
Function
getQueryStringParams
()
tests/files/main.js:140
↓ 4 callers
Function
getQueryStringParams
()
tests/files/minified_main.js:1
↓ 4 callers
Method
get_string
(&self)
src/js/token.rs:499
↓ 4 callers
Method
is_other
(&self)
src/js/token.rs:466
↓ 4 callers
Function
search
(e, forced)
tests/files/main.js:1528
↓ 4 callers
Function
search
(e,forced)
tests/files/minified_main.js:1
↓ 3 callers
Function
addTab
(array, query, display)
tests/files/main.js:1334
↓ 3 callers
Function
addTab
(array,query,display)
tests/files/minified_main.js:1
↓ 3 callers
Function
checkReturned
(obj, val, literalSearch)
tests/files/main.js:765
↓ 3 callers
Function
checkReturned
(obj,val,literalSearch)
tests/files/minified_main.js:1
↓ 3 callers
Function
checkType
(obj, val, literalSearch)
tests/files/main.js:674
↓ 3 callers
Function
checkType
(obj,val,literalSearch)
tests/files/minified_main.js:1
↓ 3 callers
Function
clean_tokens_except
Same as `clean_tokens` except that if a token is considered as not desired, the callback is called. If the callback returns `false` as well, it will b
src/js/utils.rs:361
↓ 3 callers
Function
displayHelp
(display, ev, help)
tests/files/main.js:253
↓ 3 callers
Function
displayHelp
(display,ev,help)
tests/files/minified_main.js:1
↓ 3 callers
Function
escape
(content)
tests/files/main.js:1320
↓ 3 callers
Function
escape
(content)
tests/files/minified_main.js:1
↓ 3 callers
Function
fill_other
(source: &'a str, v: &mut Vec<Token<'a>>, start: usize, pos: usize)
src/js/token.rs:754
↓ 3 callers
Function
generateId
(ty)
tests/files/main.js:853
↓ 3 callers
Function
generateId
(ty)
tests/files/minified_main.js:1
↓ 3 callers
Function
getQuery
(raw)
tests/files/main.js:1163
↓ 3 callers
Function
getQuery
(raw)
tests/files/minified_main.js:1
↓ 3 callers
Method
get_other
(&self)
src/js/token.rs:470
↓ 3 callers
Function
get_variable_name_and_value_positions
When looping over `Tokens`, if you encounter `Keyword::Var`, `Keyword::Let` or `Token::Other` using this function will allow you to get the variable n
src/js/utils.rs:177
↓ 3 callers
Function
hideModal
()
tests/files/main.js:2393
↓ 3 callers
Function
hideModal
()
tests/files/minified_main.js:1
↓ 3 callers
Function
hideSidebar
()
tests/files/main.js:114
↓ 3 callers
Function
hideSidebar
()
tests/files/minified_main.js:1
↓ 3 callers
Method
is_char
(&self)
src/css/token.rs:289
↓ 3 callers
Function
makeTabHeader
(tabNb, text, nbElems)
tests/files/main.js:1390
↓ 3 callers
Function
makeTabHeader
(tabNb,text,nbElems)
tests/files/minified_main.js:1
↓ 3 callers
Function
mergeArrays
(arrays)
tests/files/main.js:1460
↓ 3 callers
Function
mergeArrays
(arrays)
tests/files/minified_main.js:1
↓ 3 callers
Function
sortResults
(results, isType)
tests/files/main.js:513
↓ 3 callers
Function
sortResults
(results,isType)
tests/files/minified_main.js:1
↓ 2 callers
Function
aggregate_strings_inner
( mut tokens: Tokens<'a>, separation_token: Option<Token<'b>>, )
src/js/tools.rs:237
↓ 2 callers
Function
aggregate_strings_into_array_with_separation
( tokens: Tokens<'a>, array_name: &str, separation_token: Token<'b>, )
src/js/tools.rs:548
↓ 2 callers
Function
aggregate_strings_into_array_with_separation_filter
( tokens: Tokens<'a>, array_name: &str, separation_token: Token<'b>, filter: T, )
src/js/tools.rs:560
↓ 2 callers
Method
as_mut
(&mut self)
src/json/read/internal_buffer.rs:23
↓ 2 callers
Function
buildHrefAndPath
(item)
tests/files/main.js:1282
↓ 2 callers
Function
buildHrefAndPath
(item)
tests/files/minified_main.js:1
↓ 2 callers
Function
callback
()
tests/files/main.js:1627
↓ 2 callers
Function
checkGenerics
(obj, val)
tests/files/main.js:635
↓ 2 callers
Function
checkGenerics
(obj,val)
tests/files/minified_main.js:1
↓ 2 callers
Function
clean_token
Returns true if the token is a "useful" one (so not a comment or a "useless" character).
src/js/utils.rs:311
↓ 2 callers
Function
collapser
(e, collapse)
tests/files/main.js:2066
↓ 2 callers
Function
collapser
(e,collapse)
tests/files/minified_main.js:1
↓ 2 callers
Function
createSimpleToggle
(sectionIsCollapsed)
tests/files/main.js:2109
↓ 2 callers
Function
createSimpleToggle
(sectionIsCollapsed)
tests/files/minified_main.js:1
↓ 2 callers
Function
defocusSearchBar
()
tests/files/main.js:2540
↓ 2 callers
Function
defocusSearchBar
()
tests/files/minified_main.js:1
↓ 2 callers
Method
eq_operation
(&self, ope: Operation)
src/js/token.rs:444
↓ 2 callers
Function
expandSection
(id)
tests/files/main.js:210
↓ 2 callers
Function
expandSection
(id)
tests/files/minified_main.js:1
↓ 2 callers
Function
fill_other
( source: &'a str, v: &mut Vec<Token<'a>>, start: usize, pos: usize, is_in_block: isize,
src/css/token.rs:397
↓ 2 callers
Function
findArg
(obj, val, literalSearch)
tests/files/main.js:745
↓ 2 callers
Function
findArg
(obj,val,literalSearch)
tests/files/minified_main.js:1
↓ 2 callers
Function
func
(e)
tests/files/main.js:2122
↓ 2 callers
Function
getPageId
()
tests/files/main.js:85
↓ 2 callers
Function
getPageId
()
tests/files/minified_main.js:1
↓ 2 callers
Function
getVirtualKey
(ev)
tests/files/main.js:241
next →
1–100 of 371, ranked by callers