Gathering detailed insights and metrics for style-sherpa
Gathering detailed insights and metrics for style-sherpa
Gathering detailed insights and metrics for style-sherpa
Gathering detailed insights and metrics for style-sherpa
npm install style-sherpa
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
39 Stars
9 Commits
12 Forks
12 Watching
1 Branches
5 Contributors
Updated on 25 Feb 2023
JavaScript (51.86%)
HTML (48.14%)
Cumulative downloads
Total Downloads
Last day
-14.5%
159
Compared to previous day
Last week
13%
849
Compared to previous week
Last month
-3.4%
3,362
Compared to previous month
Last year
4.4%
42,760
Compared to previous year
4
1
Style Sherpa is a simple style guide generator. It takes a single Markdown file and converts it to a pre-made HTML template with tabbed sections. The template is powered by Foundation for Sites.
1npm install style-sherpa --save-dev
Your style guide lives in a single Markdown file, which can have any name and sit anywhere in your project. Use first-level headings (a single #
before a title) to mark new sections in the style guide.
1# Section 1 2 3Lorem ipsum dolor sit amet, consectetur adipisicing elit. Fuga saepe, vero ratione optio illum aliquam. Sint esse velit est voluptatum. Ipsa tempora saepe nostrum quidem voluptatem esse voluptatum quibusdam laboriosam!
To create new sections, add four line breaks.
1# Section 1 2 3Lorem ipsum dolor sit amet, consectetur adipisicing elit. Fuga saepe, vero ratione optio illum aliquam. Sint esse velit est voluptatum. Ipsa tempora saepe nostrum quidem voluptatem esse voluptatum quibusdam laboriosam! 4 5 6 7# Section 2 8 9<!-- ... -->
To actually run the parser, include the style-sherpa
library and run the command. At minimum you need file paths for the input and output, but you can also optionally specify a custom template, or supply a callback.
1var sherpa = require('style-sherpa'); 2 3sherpa('./test/fixtures/test.md', { 4 output: './test/fixtures/test.html', 5 template: './template.hbs' 6}, cb());
Generates an HTML style guide from a Markdown file.
Type: String
Path to the input Markdown file to parse.
Type: Object
output
(String
): Path to output the finished HTML file. Defaults to the current working directory.template
(String
): Path to a custom Handlebars template to use, instead of the default one.Type: Function
Callback to run when the file has been written to disk.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
Found 1/9 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More