Socket
Book a DemoInstallSign in
Socket

json-to-scss

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-to-scss - npm Package Versions

2

1.6.2

Diff
r
rlapoele
published 1.6.2 •

Changelog

Source

Release 1.6.2

  • Fixed bug occurring when more than 2 files are being merged and the merge object option (--mo) is activated.
    • see https://github.com/rlapoele/json-to-scss/issues/10
r
rlapoele
published 1.6.1 •

Changelog

Source

Release 1.6.1

  • Fixed typos in CLI (json-to-scss) help text & README.md
r
rlapoele
published 1.6.0 •

Changelog

Source

Release 1.6.0

  • New Features:
    • added option allowing users to obtain a list of sass/scss variables obtained from a flattened JSON/js object.
      • flattened keys can either be in kebab-case (default) or camel-case.
      • when flattening with kebab-case, json-to-scss does currently not change the nested key case.
      • when flattening with came-case, json-to-scss does currently only uppercase the first letter of the nested keys.
r
rlapoele
published 1.5.0 •

Changelog

Source

Release 1.5.0

  • New Feature:
    • added option (i.e. --sk='font-family') allowing users to force matching JSON/js object key values to be quoted.
r
rlapoele
published 1.4.0 •

Changelog

Source

Release 1.4.0

  • Upgraded dependencies.
  • New Features:
    • added option allowing users to ask for converted Sass map keys to be wrapped in single or double quote characters.
    • added option allowing users to ask for converted Sass map values (other than nested maps) to be wrapped in single or double quote characters.
r
rlapoele
published 1.3.1 •

Changelog

Source

Release 1.3.1

  • README.md typo fixes for example 5.2.
  • command line output format updates for merge object scenario.
r
rlapoele
published 1.3.0 •

Changelog

Source

Release 1.3.0

  • New Feature:
    • added possibility to merge multiple converted sources into one single destination file.
      • in this context, the prefix & suffix are repeated for each converted source content;
        • the destination file therefore contains as many prefixed & suffixed block as there are sources.
        • if no prefix is specified then each source file name becomes a prefix ($source-file-name: ...).
      • by default, each converted source becomes a distinct/separated sass variable in the destination file.
    • when merging multiple source files, added possibility to merge content as well using global option "--mo" (merge object);
      • in this context, the prefix & suffix are only used once in the destination file and each individual converted block are comma+linefeed separated.
  • Code modifications:
    • further simplified code when possible (remove levels of nested internal function declarations).
    • updated object property existence checks such as "if (property.object)..." and used "'property' in object ..." expressions instead.
    • converted all switch statements into function + literal object declarations.
r
rlapoele
published 1.2.4 •

Changelog

Source

Release 1.2.4

  • Code modifications
    • simplified code by removing all options & config objects as well unnecessary validations.
    • Remove TextIndentation.js file/function (use String.prototype.repeat(...) directly instead).
r
rlapoele
published 1.2.3 •

Changelog

Source

Release 1.2.3

  • Code cleanups & comments addition.
r
rlapoele
published 1.2.2 •

Changelog

Source

Release 1.2.2

  • Code Fixes:
    • changed jsJsonFilesToSassScssFiles default config to ensure fn input validation flag is set to true by default.
    • updated cli.js to handle above change.
    • fixed typo in jsJsonFilesToSassScssFiles.js input validation (sourceFilepaths arg was checked 2 times instead of sourceFilepaths check + destinationFilepaths check.)
  • Enhancements:
    • re-organized jsJsonFilesToSassScssFiles code to be more functional.
2
SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.