Gathering detailed insights and metrics for metalsmith-excerptor
Gathering detailed insights and metrics for metalsmith-excerptor
Gathering detailed insights and metrics for metalsmith-excerptor
Gathering detailed insights and metrics for metalsmith-excerptor
Metalsmith plugin to create an excerpt of a file truncating its html contents
npm install metalsmith-excerptor
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
2 Stars
2 Commits
1 Forks
2 Watchers
1 Branches
1 Contributors
Updated on Apr 07, 2022
Latest Version
0.0.1
Package Id
metalsmith-excerptor@0.0.1
Size
2.23 kB
NPM Version
3.5.3
Node Version
5.4.1
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
2
A Metalsmith plugin to create an excerpt from html data, it truncates correctly all html tags thanks to html-truncate.
1var excerptor = require('metalsmith-excerptor'); 2 3Metalsmith(__dirname) 4 .use( excerptor({ 5 maxLength: 800, 6 keepImageTag: true, 7 ellipsis: '…' 8 })) 9
excerptor
will create a new attribute to all object files with a max length of
800 characters, keeping the image tags (<img>
).
maxLength Number
(optional, default=300
): Excerpt's max length
keepImageTag Boolean
(optional, default=true
)
ellipsis String
(optional, default=''
): String attached to the end of the excerpt
Copyright (c) 2016, Elkin Cruz All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
The views and conclusions contained in the software and documentation are those of the authors and should not be interpreted as representing official policies, either expressed or implied, of the FreeBSD Project.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
Found 0/2 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
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
Score
Last Scanned on 2025-07-07
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