New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bitbucket.org/HelgeOlav/utils

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bitbucket.org/HelgeOlav/utils

  • v0.0.0-20250120132504-41bc08a4481d
  • Source
  • Go
  • Socket score

Version published
Created
Source

Utils

This package / repository contains small utilities that I have written and found useful for myself.

  • OnlyAsciiText(string) string - returns only printable ASCII characters without spaces.
  • ReadLines(string,bool) []string,error - reads the content of the file into a string array, each line as its own item. Optionally skips blank lines.
  • ReadJsonFile - reads a JSON config from file
  • ReadConfig - utility to help you in loading configuration files
  • IsStringInString - helper to check if a string is in a slice/array
  • Searcher - interface to search if something is present in something else
  • DLock - a lightweight distributed lock that can be used either locally or via REST API
  • Broadcast - get notified when a variable/object changes
  • Cache - maintains a cached copy of an object that will be refreshed on access
  • FS - an interface to access object storage of some kind
  • Errors - a place to store errors if you don't want or have to check them until the end

FAQs

Package last updated on 20 Jan 2025

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc