3.0.3 • Published 2 years ago

write-prettier-file v3.0.3

Weekly downloads
1,647
License
MIT
Repository
github
Last release
2 years ago

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.

Related

3.0.3

2 years ago

3.0.2

2 years ago

3.0.1

2 years ago

3.0.0

2 years ago

2.2.0

3 years ago

2.1.2

4 years ago

2.1.1

4 years ago

2.1.0

4 years ago

2.0.0

4 years ago

1.2.6

5 years ago

1.2.5

5 years ago

1.2.4

5 years ago

1.2.3

6 years ago

1.2.2

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago