New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@friendsof/spaghetti

Package Overview
Dependencies
Maintainers
2
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@friendsof/spaghetti

Tasty little compiler util.

  • 1.4.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
36
decreased by-26.53%
Maintainers
2
Weekly downloads
 
Created
Source

@friendsof/spaghetti

🍝 Tasty little compiler util. Supports most modern JS syntax, as well as compiles and extracts CSS (or SCSS) by default.

Install

npm i @friendsof/spaghetti -g # or --save-dev for npm scripts

Usage

spaghetti [options] <in> <outDir>

Options

-w, --watch

Watch files for changes.

spaghetti src/index.js dist/ -w
--jsx

Specify a JSX pragma (default: React.createElement)

spaghetti src/index.js dist/ --jsx preact.h
--map

Any source map value supported by webpack (default: source-map)

spaghetti src/index.js dist/ --map cheap-module-source-map
--sass

Use sass instead of postcss

spaghetti src/index.js dist/ --sass
--config

Specify a config file (default: spaghetti.config.js)

spaghetti src/index.js dist/ --config config.js

Config

Config files support the same options as above, along with a couple additions.

// spaghetti.config.js
module.exports = {
  in: 'src/index.js',
  outDir: 'dist',
  jsx: 'h',
  sass: false, // set to true for sass
  reload: true, // reloads on watch
  alias: {
    components: 'src/components/'
  },
  banner: '/** Hello there */'
}

License

MIT License © The Couch

FAQs

Package last updated on 03 Apr 2019

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc