Home / npm packages / styled-components

styled-components source code

Every file of styled-components@6.5.3 as published on npm: 215 files, 576 KB. Search them by exact text or regex, in milliseconds.

It uses: process.env.

What styled-components uses

APIIn styled-components
eval()
runs a string as JavaScript
NoWho does
new Function()
builds a function from a string, like eval (with or without new)
NoWho does
child_process
starts other programs
NoWho does
process.env
reads environment variables
Yes: 8 files
e.g. dist/styled-components.browser.cjs.js
See the lines
the fs module
reads and writes files
NoWho does
http / https
makes or serves HTTP requests with Node's own modules
NoWho does
fetch()
makes HTTP requests
NoWho does
XMLHttpRequest
makes HTTP requests the old browser way
NoWho does
crypto
hashes, encrypts or makes random numbers
NoWho does
WebAssembly
loads WebAssembly code
NoWho does
document.cookie
reads or writes browser cookies
NoWho does
install scripts
runs a script when it's installed
NoWho does

Exact matches in the published files, so a mention in a comment counts too: open the lines to check.

Largest files

FileSize
dist/styled-components.js124 KB
dist/styled-components.cjs.js40 KB
dist/styled-components.esm.js40 KB
dist/styled-components.browser.cjs.js37 KB
dist/styled-components.browser.esm.js36 KB
dist/styled-components.min.js33 KB
dist/types.d.ts26 KB
native/dist/dist/types.d.ts26 KB
native/dist/types.d.ts26 KB
native/dist/styled-components.native.cjs.js16 KB
native/dist/styled-components.native.esm.js16 KB
README.md8.0 KB
package.json4.9 KB
dist/models/StyleSheetManager.d.ts4.0 KB
native/dist/dist/models/StyleSheetManager.d.ts4.0 KB
native/dist/models/StyleSheetManager.d.ts4.0 KB
dist/constructors/createTheme.d.ts3.7 KB
native/dist/constructors/createTheme.d.ts3.7 KB
native/dist/dist/constructors/createTheme.d.ts3.7 KB
dist/utils/domElements.d.ts3.3 KB
native/dist/dist/utils/domElements.d.ts3.3 KB
native/dist/utils/domElements.d.ts3.3 KB
dist/constructors/constructWithOptions.d.ts2.8 KB
native/dist/constructors/constructWithOptions.d.ts2.8 KB
native/dist/dist/constructors/constructWithOptions.d.ts2.8 KB
dist/native/index.d.ts2.4 KB
native/dist/dist/native/index.d.ts2.4 KB
native/dist/native/index.d.ts2.4 KB
dist/sheet/Tag.d.ts2.0 KB
native/dist/dist/sheet/Tag.d.ts2.0 KB

Questions

How many files are in styled-components?

Version 6.5.3 of styled-components publishes 215 files of source, 576 KB in all, not counting images, fonts and source maps.

Does styled-components use eval?

No: styled-components doesn't call eval() anywhere in its published files.

Does styled-components start other programs?

No: styled-components doesn't use child_process anywhere in its published files.

Does styled-components run an install script?

No: styled-components has no preinstall, install or postinstall script in its package.json.

npm packages that use…

Every package we've indexed →

Search your own code like this

The same engine answers over your documents and repositories: exact text and regex, every match counted, from your code or your AI agent.

See StackGrep Engine