3.0.3 • Published 8 months ago

write-prettier-file v3.0.3

Weekly downloads
1,647
License
MIT
Repository
github
Last release
8 months 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

8 months ago

3.0.2

9 months ago

3.0.1

9 months ago

3.0.0

10 months ago

2.2.0

2 years ago

2.1.2

2 years ago

2.1.1

3 years ago

2.1.0

3 years ago

2.0.0

3 years ago

1.2.6

4 years ago

1.2.5

4 years ago

1.2.4

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.0

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago