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.
bespoke-hash
Advanced tools
Hash Routing for Bespoke.js
Download the production version or the development version, or use a package manager.
This plugin is shipped in a UMD format, meaning that it is available as a CommonJS/AMD module or browser global.
For example, when using CommonJS modules:
var bespoke = require('bespoke'),
hash = require('bespoke-hash');
bespoke.from('article', [
hash()
]);
When using browser globals:
bespoke.from('article', [
bespoke.plugins.hash()
]);
Starting from #1
, all routes are numbered by default.
If you'd like to use named hash routes instead, add data-bespoke-hash
attributes to your slide markup.
<article>
<section data-bespoke-hash="catchy-title"></section>
<section data-bespoke-hash="shameless-plug"></section>
<section data-bespoke-hash="controversial-statement"></section>
<section data-bespoke-hash="explanation-of-controversial-statement"></section>
<section data-bespoke-hash="shameless-self-promotion"></section>
</article>
Alternatively, you can specify the value using id
attributes in your slide markup.
<article>
<section id="catchy-title"></section>
<section id="shameless-plug"></section>
<section id="controversial-statement"></section>
<section id="explanation-of-controversial-statement"></section>
<section id="shameless-self-promotion"></section>
</article>
If both the data-bespoke-hash
and id
attributes are used, data-bespoke-hash
wins. When looking for a match, the plugin consults the data-bespoke-hash
attribute on a slide first, then the id
attribute.
$ npm install bespoke-hash
$ bower install bespoke-hash
This plugin was built with generator-bespokeplugin.
FAQs
Hash routing for Bespoke.js
The npm package bespoke-hash receives a total of 22 weekly downloads. As such, bespoke-hash popularity was classified as not popular.
We found that bespoke-hash demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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.
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.