Product
Introducing Ruby Support in Socket
Socket is launching Ruby support for all users. Enhance your Rails projects with AI-powered security scans for vulnerabilities and supply chain threats. Now in Beta!
darkmode-js
Advanced tools
🌓 Add darkmode / nightmode to your website in a few seconds
Check out the demo in these websites:
Darkmode.js is very easy to use, just copy paste the following code or use the npm package.
Your background (even white) needs to be in another tag than body.
Just add this code to your html page:
<script src="https://cdn.jsdelivr.net/npm/darkmode/lib/darkmode.min.js"></script>
<script>
new Darkmode().showWidget();
</script>
npm install darkmode
Then add the following javascript code:
import Darkmode from 'darkmode';
new Darkmode().showWidget();
(coming soon)
Here are the option availables:
var options = {
}
const darkmode = Darkmode(options);
darkmode.showWidget();
yarn build
or npm run build
- produces production version of your library under the lib
folderyarn dev
or npm run dev
- produces development version of your library and runs a watcheryarn test
or npm run test
- it runs the tests :)yarn test:watch
or npm run test:watch
- same as above but in a watch modeIf you like this project, feel free to donate:
FAQs
🌓 Add darkmode / nightmode to your website in a few seconds
The npm package darkmode-js receives a total of 629 weekly downloads. As such, darkmode-js popularity was classified as not popular.
We found that darkmode-js 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.
Product
Socket is launching Ruby support for all users. Enhance your Rails projects with AI-powered security scans for vulnerabilities and supply chain threats. Now in Beta!
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.