Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

produce

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

produce

A multi-rule multi-purpose source/target agnostic configurable transformer

  • 0.4.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
9
decreased by-94.94%
Maintainers
1
Weekly downloads
 
Created
Source

produce - WIP

A multi-rule multi-purpose source/target agnostic configurable transformer

Build Status Coverage Status

This module and documentation is still considered work-in-progress. Only no config example is added below for a preview

No Configuration

Install required plugins and it will automatically use them to produce output/serve content

Example: https://github.com/aularon/produce-example-no-conf

Simple conf

less: less | add_header_note(preview) | yuicompressor(dist) > css
pug,jade: pug | add_header_note(preview) > html
js: babel | add_header_note(preview) | closure > js

Advanced conf

{
  rules: [
    {
      source: /\.(pug|jade)$/,
      via: [
        'pug',
        {
          processor: 'add_header_note',
          modes: ['serve']
        },
      ],
      target: 'css'
    }
  ]
}

Terminology

  • Source.read(input)
  • Target.write(output)

CLI

proudce sourceDir targetDir # fs source and fs target
proudce sourceDir # fs source and http target

Keywords

FAQs

Package last updated on 06 Feb 2017

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