Socket
Socket
Sign inDemoInstall

write-prettier-file

Package Overview
Dependencies
4
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    write-prettier-file

write prettier formatted file


Version published
Weekly downloads
400
decreased by-32.2%
Maintainers
1
Install size
8.19 MB
Created
Weekly downloads
 

Readme

Source

write-prettier-file

Build Status Coverage Npm Version MIT License

write prettier formatted file

Install

yarn add write-prettier-file

Ustage

import writePrettierFile from 'write-prettier-file'

await writePrettierFile('example.js', `hello('world');`)

API

writePrettierFile(file, data, options?)

file

Type: string | URL

Path to file.

data

Type: string

Source code, you want to format

options

Type: object

any value prettier-format takes

options.resolveConfig

Type: boolean

Set to false to prevent load config.

FAQs

Last updated on 08 Sep 2023

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc