1.0.6 • Published 5 days ago

@teamteanpm2024/qui-explicabo-laborum v1.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
5 days ago

@teamteanpm2024/qui-explicabo-laborum

Simple and quick symbol maker. Can strip fills, strokes, styles - all, the key one, or except the key one. Also allows for CSS background use with help of svg fragment identifier. Use examples coming soon.

Quick start

Install

npm i @teamteanpm2024/qui-explicabo-laborum --save-dev

Package.json script

Define your script in package.json:

scripts: {
    "svg": "@teamteanpm2024/qui-explicabo-laborum -i ./test/svgs -o ./test/symbols.svg"
}

Run your script

npm run svg

Run cmd

On linux or mac you can call

npm run env @teamteanpm2024/qui-explicabo-laborum -- -i ./test/svgs -o ./test/symbols.svg

On windows and linux, mac

npm exec @teamteanpm2024/qui-explicabo-laborum -- -i ./test/svgs -o ./test/symbols.svg

Parameters

Required

--input, -i Folder input path

--output, -o File output path

Optional

--stripFills (Boolean|String) [false]

If set to true module will strip every fill from svg. If you will specify key value like "#FF0000" it will strip only fills with "#FF0000" value. To remove all fills except key value write "!#FF0000".

--stripStrokes (Boolean|String) [false]

Similar to stripFills. Set to true to remove every stroke from svg. Specify key value like "red" to strip only strokes with "red" value. To remove all strokes except key value write "!red".

--stripStyles (Boolean) [false]

Strip styles attribute

--prefix (String) ['']

String to be prefixed to your symbol name.

--suffix (String) ['']

String to be suffixed to your symbol name.

--hideClass (String) ['hidden']

Add specific class to generated svg. By default adds hidden as it is typical for "display: none".

--hideDisplay (Boolean) [false]

Sets "display: none" in generated svg inline style. If this is used then hideClass is ignored. (?)

--cssBgSupport (Boolean) [false]

Adds new svg elements (view, g, use) to allow use of svg fragments as css background property. Prepends -v to view id as it can't be the same as symbol id. In the end you call it like this:

background: url(symbols.svg#symbolname-v) no-repeat;

Notice: cssBgSupport adds global style (specific for @teamteanpm2024/qui-explicabo-laborum generated svgs only) inside the svg file - it is needed to properly display stacked fragments. If you create multiple symbols collection files then consider adding the css style to your css file and set cssBgSupportStyle to false.

--cssBgSupportStyle (Boolean) [false]

By default it's set to false, but if you set --cssBgSupport true then cssBgSupportStyle by default is also true and if you need you can disable it with --cssBgSupportStyle false Adds below css style which is required to properly display svg views as css background.

.@teamteanpm2024/qui-explicabo-laborum view + g {
    display: none;
}
.@teamteanpm2024/qui-explicabo-laborum view:target + g {
    display: inline;
}

Usage examples

To be written

What if I need minifying or other stuff?

Use SVGO.

hasfindLastlockfileposeisConcatSpreadabletypedelbWeakSetUnderscorepromisesjavascriptartsimpledbconfig0less compiler.envmimefunctionalmkdirArray.prototype.containsargparsecomputed-typesairbnbwritableWebSocketwarningmetadataES2016RegExp.prototype.flagsoncewordbreaksetoperating-systemObject.entriesframeworkownpackageObject.assigntypejsonschemaboundReactiveXexpressionextendshebangweaksetcollectiones-shim APIutil.inspectratereact posepostcssbeanstalkreadablehardlinkssigintshellbootstrap cssObject.getPrototypeOfdefinetrimRightWeakMapinfast-deep-copystoragegatewaycall-binddirajvguidJSONperformancebreakttybrowserlistlimitURLSearchParamsanimationparsingrgbwaites8lengthresolvedataviewopenauthenticationRxconcurrencyfixed-widthamazonStyleSheetspeedgetterebsescapearrayarktypesomebufferkoreanvariables in cssargvcorsECMAScript 3es2016nodecloudsearchtranspileprotobufasynccallsignaltelephonehas-ownworkspace:*assignawesomesauceassertsuperagentFloat64ArraykeysfetchutilstringifierbindwatchprotoBigUint64ArrayextensionECMAScript 2021formatObject.definePropertyreact-hook-formES7fsdatestableurlefficientsafezodfullStreamansieslint-pluginES2019apiECMAScript 2017prunedeep-cloneasciijsonindicatorcoerciblelookserializepostcss-plugindebugcode pointsequalitybyteOffsetsameValueZerocreateObject.israpiduninstallcloudfrontpatchredux-toolkitreact animationtoArrayreact-testing-libraryprocessdotenvsuperstructbabelframerexitjson-schemastreamstylesexit-codekarmawatchingUint8ClampedArrayiteratortrimStartcollection.es6fseventssidevalidationwatcherqueueMicrotaskbrowserminimales2015balancedcjktacitcompile lesserrornested cssjsonpathtrimLeftcurriedfunctionsmapreducesharedarraybufferescomparebyteLengthcolorsmatchAllsymlinksramdafastclonefile systemqueuequerystringAsyncIteratorpolyfilljoiextraec2statustranspilermobilerm -frconsoletypanionunicodeauthenvironmentdefinePropertyencryptioncallboundtextcensorwalkmkdirpvaluescopythrottleSymbol.toStringTagmimetypesbusyprototypeObject.valuesgradients csses5characterpreprocessordayjstapehttps256flateventspyyamlhookscryptotypesassertionECMAScript 2019ES2018emiteslintpluginxtermworkerreducertraverseutilityless.jsgroupdebuggerpersistentIteratorreusecssmapcloneprotocol-buffersspinnerssortfindSymbolfindLastIndexoptiontimeES2023irqsesBigInt64ArrayeventEmitterUint32ArrayES2020internal slotfpsschemelruJSON-SchemanamesequenceObjectchromeglacierchecknamescontainsES6dataViewconcathigher-orderfullwidthstyled-componentstrimhandlersendernegativeconcatMapsortedparentscharactersloadingpurecolorinferenceURLlanguagelimitedtypedarraydom-testing-librarymocharatelimitstringifybrowserslisttypeerrorshrinkwrapcryptchromiumdeterministicfigletemrmake dirawsbatchhelperswalkingletReflect.getPrototypeOfReactiveExtensionsflagsuuidCSSStyleDeclarationdataenvslicetoStringTagtoobjectStreamswebpoint-freebuffersimportexportArrayarraysRegExp#flagshashi18nrandomjson-schema-validationwidthrmdirpushnopesanitizetypesafegroupBytouchfunctiondeletea11yES2017ECMAScript 2022accessorcommanderweakmapxssES2015passwordcolumnsvpcponyfillyamltaskstreams2schemastructuredClonenpmFloat32ArraytakeECMAScript 2016setImmediateECMAScript 2015ObservablecloudformationincludesstatelesscoloureventDispatcherfastcopydeepcopyTypedArraylogpropertyperformantESforEachwaapiyupterminalcss-in-jsparsecircularmixinswhichkeyUint16Array-0bcryptsqsxhrgetPrototypeOfgesturesmime-dbpackagesrm -rfsigtermfast-deep-cloneinterrupts_.extendspinnerES3hasOwnPropertyestreereadquotejsdiffvalueinputomitjQuerythroatMapagentruntimedynamodbdatastructurelogger@@toStringTagpathpropertiesArray.prototype.flatMapparenttoolkithookformmkdirsregexpstringduplexflag[[Prototype]]filedeep$.extendpicomatchvalidatorcoreserializerscheme-validationlook-upsymbolsmovestyleguideprivate dataarraybufferastfastcloudwatchArrayBuffer.prototype.slicejasminelastTypeBoxgetoptmulti-packageArray.prototype.includessetterUint8ArraywafInt32Arrayjsfind-uplistenerstrimEndArray.prototype.findLastIndexavabytecloudtrailequaltddTypeScriptcallbackcliworkflowtestersanitizationpositive__proto__codesArray.prototype.flatinstallregularECMAScript 2018jwtjsdomlazyObject.keyseslintconfigECMAScript 6objfppreserve-symlinkschinesecurlroute53symlinkdiffsyntaxerrorswfelectroneslintintrinsicObject.fromEntriesvariablesnodejsmacosrangeerrorgetwhatwges2017user-streamsfindupform-validationformio-tsimmerbluebirdoptimistvestrecursivefast-copyargumentArrayBufferwordwrapoutputloadbalancingESnextautoprefixerstyling
1.0.6

5 days ago

1.0.5

6 days ago

1.0.4

7 days ago

1.0.3

8 days ago

1.0.2

9 days ago

1.0.1

10 days ago

1.0.0

10 days ago