Registry / data / seed-dash

seed-dash

JSON →
library0.0.2jsnpmunverified

seed-dash is a specialized utility pack designed for the Seed CSS framework, specifically addressing the manipulation of configuration variables within Sass, particularly for lists and maps. It implements a limited set of Underscore/lodash-like methods such as `_get`, `_set`, and `_extend` directly in Sass to facilitate dynamic configuration adjustments. Released at version 0.0.2, the project appears to be unmaintained, with its last known activity several years ago. The project's own documentation recommends `Sass Dash` for a more comprehensive Underscore/lodash-like experience in Sass, indicating that seed-dash is a niche or superseded solution for very specific Seed framework configuration tasks, rather than a general-purpose Sass utility library. It is designed to be integrated into a build pipeline, typically via Node.js tools like Gulp.

npm install seed-dash
INSTALL
IMPORT
SIG · SEED-DASH
S
seed-dash
datajavascriptv0.0.2
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

pack
const pack = require('seed-dash');
import pack from 'seed-dash';
This package is CJS-only. `pack` resolves to an array of include paths for a Sass compiler, not an executable function or object.
Sass include
@import "pack/seed-dash/_index";
@import "seed-dash";
The Sass include path must be relative to the provided `includePaths` array and typically points to the main index file within the package's Sass directory.
Sass function usage (example)
@include _set($map, "key", "value");
map-set($map, "key", "value");
seed-dash exposes mixins and functions prefixed with `_` (e.g., `_get`, `_set`) to avoid naming collisions with native Sass functions. Do not use native Sass map functions if aiming for seed-dash's specific behavior.

This example demonstrates how to integrate `seed-dash` into a Gulp-based Sass compilation pipeline, allowing Sass files to import and use its utility functions for configuration.

const gulp = require('gulp'); const sass = require('gulp-sass')(require('sass')); // Using dart-sass const pack = require('seed-dash'); const path = require('path'); gulp.task('sass', function () { return gulp.src('./sass/**/*.scss') .pipe(sass({ includePaths: [ ...pack, // Includes seed-dash's own paths path.join(__dirname, 'node_modules') // Ensure node_modules is also scanned ] }).on('error', sass.logError)) .pipe(gulp.dest('./css')); }); // To run: // 1. Create a file `sass/main.scss`: // `@import "pack/seed-dash/_index"; // $my-map: ( // 'foo': 'bar', // 'nested': ('a': 1) // ); // $my-map: _set($my-map, 'nested.b', 2); // body { content: _get($my-map, 'nested.b'); }` // 2. Install dependencies: `npm install gulp gulp-sass sass seed-dash` // 3. Run: `npx gulp sass`
Debug
Known issues
breakingThe `seed-dash` package is explicitly unmaintained and has not received updates for several years. There are no guarantees of compatibility with modern Node.js versions, Sass compilers (e.g., Dart Sass), or contemporary build tooling. Expect potential breaking changes if integrating into a current ecosystem.
fix
Consider migrating to actively maintained Sass utility libraries like `Sass Dash` (github.com/davidkpiano/sassdash) which offers a more robust and complete feature set and is still maintained.
affects: >=0.0.2
deprecatedThe official documentation for `seed-dash` itself recommends `Sass Dash` as a 'much more complete Underscore/lodash-like experience for Sass'. This indicates that `seed-dash` is considered superseded by a more actively developed alternative.
fix
Evaluate `Sass Dash` or other modern Sass utility libraries for new projects or refactoring existing ones that heavily rely on `seed-dash`'s specific behaviors.
affects: >=0.0.2
gotchaThe package primarily provides `includePaths` for Sass compilation, and its 'methods' are Sass mixins/functions prefixed with `_`. Developers might incorrectly expect a JavaScript utility or try to `require` and execute functions from the `pack` object.
fix
Remember that `seed-dash`'s core functionality resides within the compiled Sass. The Node.js part only exposes paths. All utility calls (e.g., `_get`, `_set`) must occur within your `.scss` files.
affects: >=0.0.2
Errors
Common errors & fixes
SassError: Can't find stylesheet to import. @import "pack/seed-dash/_index";
The Sass compiler's `includePaths` were not correctly configured to point to the `node_modules/seed-dash/dist` directory.
fix
Ensure that `gulp-sass` (or your chosen Sass compiler) is provided with an `includePaths` array that includes the result of `require('seed-dash')`. Example: `includePaths: require('seed-dash')`.
TypeError: Cannot read properties of undefined (reading 'on') at Gulp.task (path/to/gulpfile.js:x:y)
This often happens if `gulp-sass` is initialized incorrectly, especially with newer versions of `gulp-sass` that require you to explicitly pass the `sass` implementation (e.g., `require('sass')`).
fix
Update your `gulp-sass` initialization: `const sass = require('gulp-sass')(require('sass'));` to ensure it uses a compatible Sass compiler.
Error: Node Sass does not yet support your current Node.js version.
The project's `package.json` specifies `engines: {"node": ">=4"}` which is extremely old. Modern `node-sass` versions (if still used) or `gulp-sass` might have compatibility issues with very old or very new Node.js runtimes.
fix
Use `sass` (Dart Sass) instead of `node-sass` for better Node.js version compatibility. If sticking with `node-sass`, ensure your Node.js version matches one supported by the specific `node-sass` version in your `node_modules`.
Upgrade
Version history
0.0.2latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
OpenAI (training)
1
Resources
seed-dash — npm install seed-dash · libregistry