Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
This library comprises the following pieces:
var parser = new TimeParser()
parser.to_minutes("1:27") // returns 87
Input | Output in minutes | |
---|---|---|
1:00 | 1 hour | 60 |
0:45 | Forty-five minutes | 45 |
:45 | Forty-five minutes | 45 |
45 | Forty-five minutes | 45 |
1.5 | One and a half hours | 90 |
.5 | Half an hour | 30 |
1h30m | 1 hour, 30 minutes | 90 |
1h | 1 hour | 60 |
20m | 20 minutes | 20 |
To use one of the other formats, just pass it in the constructor, e.g. new TimeParser('hm')
You can also pass custom formats either as a string or a function. This feature is still in development.
Apply the jQuery plugin to the elements:
$('.timeinput').timeinput();
Add this line to your application's Gemfile:
gem "clockpunch"
Add to your application.js
//= require clockpunch
Add to your application.scss
//= require clockpunch
Copy app/assets/javascripts/clockpunch.js
and app/assets/stylesheets/clockpunch.css
into your
application and include them using <script src="clockpunch.js"></script>
and <style>@import url(clockpunch.css)</style>
From the /source
directory, run ./build.sh
. This will generate the files in app/assets
.
TODO: node, npm installation of coffeescript, sass installation
FAQs
Unknown package
We found that clockpunch 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.