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

gulp-nf-prettier

Package Overview
Dependencies
Maintainers
3
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-nf-prettier

Create vinyl streams to pipe to prettier

  • 3.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
73
decreased by-62.76%
Maintainers
3
Weekly downloads
 
Created
Source

gulp-nf-prettier

A Gulp plugin to run Prettier on your code base.

nf?

Stands for the Netflix fork of gulp-pretter. We had certain requirements for the plugin so we forked it for ourselves.

Peer Dependency

Prettier is a peer dependency of gulp-nf-prettier. That means you can upgrade Prettier independent of this plugin since the API shouldn't change too much. This also means that you should use their docs to see how to utilize the library.

check

This plugin has the ability to be run in a CI environment. Pass the check flag in the options and if any file hasn't been run through prettier with your options it will error, letting you fail your build.

Example usage

gulp
  .src(glob, { base: './' })
  .pipe(prettier({
    printWidth: 120,
    tabWidth: 2,
    parser: 'flow',
    singleQuote: true,
    trailingComma: 'es5',
    bracketSpacing: true,
    jsxBracketSameLine: true,
    check: true
  })

Credit

Forked from Bhargav Patel. Credit to him to getting the ball rolling. Credit to the Gulp team. Consider donating to them. Credit to James Long for an amazing library. Hire him for contract work.

Keywords

FAQs

Package last updated on 27 Mar 2018

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