Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Storysnap | 16 | 6 years ago | 5 | November 24, 2017 | mit | JavaScript | ||||
A Storybook CSS regression utility based on headless Chrome. | ||||||||||
Vue Bitrix24 | 10 | 2 months ago | gpl-3.0 | Vue | ||||||
Библиотека vue-компонентов в стилистике Bitrix24 | ||||||||||
Use Promise Element | 2 | 4 years ago | mit | TypeScript | ||||||
🛠 React hook 'useNodePromise' |
A CSS regression utility for Storybook based on headless Chrome.
npm i storysnap
You can also install it globally using '-g' flag and access it as simply storysnap
.
Storysnap provides a CLI and also a programatic way to use it.
storysnap --output ./screenshots
The arguments are as follows:
localhost
). The host on which Storybook will be started.false
). Whether Storysnap should spin off a new instance of React Storybook instead of connecting to an already existing instancestart-storybook
binary. Used only if autostart
is true..storybook
). The directory where the Storybook configuration resides.There are 2 functions being exported by the package that can be used in a NodeJS app:
storysnap(options)
- Returns a promise that is resolved when the screenshots have been taken. Options is an object similar to CLI options, but with keys camel cased( eg { output: 'screenshot', configDir: '.storybook'}
).startStorybookServer(options)
- Programatically start a Storybook server. Returns a Promise that it's resolved when the server started.const {storysnap} = require('storysnap');
storysnap({
output: './screenshots',
port: 6006,
host: 'localhost',
autostart: true
});