Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
With the help of this gem you can easily have the counter as a pie for your application on load(page load). :-)
INSTALLTION
First thing you need to do is the installation , you can follow the below mentioned steps to install the gem inside your rails application. You need to add sudo if you are not using rvm(ruby version manager)
gem install pietimer-cis -v 0.0.5
Add this following line in your Gemfile and then run bundle install.
gem "pietimer-cis", "~> 0.0.5"
USAGE
Once you have installed this gem you can do the following :-
#Call generater for required js of pietimer-cis.
rails generate pietimer_cis:install
#application.html.haml
#demo
= pietimer_tag(:id=>"demo",:time=>10,:color=>'green',:callback=>"function(){alert('Hello World')}")
here,in pietimer_tag we can set any time period,color and can call any function but that must be defined.
OR
= pietimer_tag(:id=>"demo",:time=>10,:color=>'green',:callback=>"function(){test();}")
function test(){
alert("This is testing");
}
FAQs
Unknown package
We found that pietimer-cis demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.