
Security News
Node.js Moves Toward Stable TypeScript Support with Amaro 1.0
Amaro 1.0 lays the groundwork for stable TypeScript support in Node.js, bringing official .ts loading closer to reality.
github.com/toashd/gopher
Supply Chain Security
Vulnerability
Quality
Maintenance
License
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Gopher renders little `( ◔ ౪◔)´ to the command line.
Use gopher just for pure fun or more meaningful as a loading spinner.
Install gopher with a simple
$ go get github.com/toashd/gopher
Import the gopher package
import "github.com/toashd/gopher"
Create a new gopher
g := gopher.New() // Create gopher with default values
g.Start() // Start the gopher
time.Sleep(4 * time.Second) // Run for some time to simulate some serious work
g.SetActivity(gopher.Loving) // Change the gophers activity
g.SetColor(gopher.Magenta) // Change the gophers color
g.SetPrefix(gopher.Loving.String()) // Prepend text
g.SetSuffix("golang") // Append text
time.Sleep(4 * time.Second) // Run for some time to simulate some serious work
g.Stop() // Stop the gopher
To simply print a gopher use
fmt.Println(g)
Gopher currently supports four different gopher activities: Waiting, Wondering, Boring, and Loving.
Want to see gophers in action, checkout the examples or build your own!
Please feel free to suggest any kind of improvements, refactorings or just more funny gopher activities.
Get in touch, file an issue, fork and submit a pull request.
Tobias Schmid, @toashd
Gopher is available under the MIT license. See the LICENSE file for more info.
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Amaro 1.0 lays the groundwork for stable TypeScript support in Node.js, bringing official .ts loading closer to reality.
Research
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.