
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
solidity-string-util
Advanced tools
A simply Solidity library for common string operations.
npm install solidity-string-util
To write your custom contracts, import it and attach it to the string type:
pragma solidity ^0.5.0;
import 'solidity-string-util/contracts/StringUtil.sol';
contract YourContract {
using StringUtil for string;
// your custom code
}
You need an ethereum development framework for the above import statements to work! Check out these guides for Truffle, Embark or Buidler.
Please see the Solidity documentation on libraries for more details on how to work with libraries.
| Function name | Description |
|---|---|
| toHash | Returns the keccak256 hash of a string |
| isEmpty | Returns true if a string is empty, false otherwise |
To run the unit tests execute npm test.
To run the code coverage simply execute npm run coverage.
FAQs
A simply Solidity library for common string operations
The npm package solidity-string-util receives a total of 30 weekly downloads. As such, solidity-string-util popularity was classified as not popular.
We found that solidity-string-util demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.