![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Like JSDoc for your Sass files.
npm install -g sassdoc
sassdoc <src> <dest> [options]
Arguments:
<src>
Path to your Sass folder.<dest>
Path to the destination folder.Options:
-h, --help
: Bring help.--version
: Show version.-v, --verbose
: Run in verbose mode.-c, --config
: Path to JSON file containing variables to be passed to the view.-t, --theme
: Theme to be required. It will override the configuration value.--no-update-notifier
: Do not run the update notifier check.npm install sassdoc --save
var sassdoc = require('sassdoc');
sassdoc.parse(__dirname + '/sass').then(function (items) {
console.log(items);
})
var config = {
display: {
access: ['public', 'private'],
alias: false,
watermark: true,
},
package: 'path/to/package.json', // Defaults to `./package.json`
theme: 'theme-name', // Defaults to `default`
};
var sassdoc = require('sassdoc');
sassdoc.documentize(source, dest, config);
See grunt-sassdoc, gulp-sassdoc, broccoli-sassdoc.
See Wiki.
See Wiki.
/**
* Adds `$value` at `$index` in `$list`.
*
* @author Hugo Giraudel
*
* @ignore Documentation: http://sassylists.com/documentation/#insert-nth
*
* @requires is-true
*
* @param {List} $list - list to update
* @param {Number} $index - index to add
* @param {*} $value - value to add
*
* @throws List index $index is not a number for `insert-nth`.
* @throws List index $index must be a non-zero integer for `insert-nth`.
*
* @return {List | Null}
*/
@function insert-nth($list, $index, $value) {
// ...
}
/**
* Defines whether the lib should support legacy browsers (e.g. `IE 8`).
*
* @since 1.3.37
*
* @todo Nothing. It's awesome.
*
* @link https://github.com/SassDoc/sassdoc SassDoc
*
* @type Bool
*/
$legacy-support: true !global;
FAQs
Release the docs!
We found that sassdoc demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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.
Security News
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.