5.13.1 • Published 3 months ago

gatsby-transformer-toml v5.13.1

Weekly downloads
108
License
MIT
Repository
github
Last release
3 months ago

gatsby-transformer-toml

Parses TOML files.

Install

npm install gatsby-transformer-toml

How to use

// In your gatsby-config.js
plugins: [`gatsby-transformer-toml`]

Parsing algorithm

This plugin is using NPM toml package to parse TOML documents. As long as your TOML is valid, you shouldn't have any issues.

Live demo of TOML to JSON conversion using toml is here.

If you have user.toml in your project, with contents like this:

userName = "Random User"
userAvatar = "https://api.adorable.io/avatars/150/test.png"
userDescription = "Lorem..."
[userLink]
     label='Website'
     url='//mywebsite.example.local'
     icon='fa fa-link'

Then you'll be able to query your data using:

query {
  userToml {
    userName
    userAvatar
    userDescription
    userLink {
      label
      url
      icon
    }
  }
}

And the result will be:

{
  "data": {
    "userToml": {
      "userName": "Random User",
      "userAvatar": "https://api.adorable.io/avatars/150/test.png",
      "userDescription": "Lorem...",
      "userLink": {
        "label": "Website",
        "url": "//mywebsite.example.local",
        "icon": "fa fa-link"
      }
    }
  }
}
5.14.0-next.2

3 months ago

5.13.1

3 months ago

5.14.0-next.1

4 months ago

5.13.0

5 months ago

5.14.0-next.0

5 months ago

5.12.0

8 months ago

5.13.0-next.0

9 months ago

5.11.0-next.0

12 months ago

5.11.0-next.1

11 months ago

5.10.0

12 months ago

5.11.0

11 months ago

5.12.0-next.0

11 months ago

5.10.0-next.2

12 months ago

5.10.0-next.1

1 year ago

5.10.0-next.0

1 year ago

5.9.0

1 year ago

5.8.0-next.0

1 year ago

5.8.0

1 year ago

5.9.0-next.0

1 year ago

5.7.0

1 year ago

5.4.0

1 year ago

5.6.0-next.0

1 year ago

5.5.0

1 year ago

5.7.0-next.0

1 year ago

5.6.0

1 year ago

4.25.0

1 year ago

5.1.0-next.0

1 year ago

5.0.0

1 year ago

5.5.0-next.0

1 year ago

5.1.0

1 year ago

5.2.0

1 year ago

5.3.0-next.0

1 year ago

5.3.0

1 year ago

5.0.0-next.1

2 years ago

5.0.0-next.2

2 years ago

5.0.0-next.0

2 years ago

5.0.0-next.3

1 year ago

5.2.0-next.0

1 year ago

3.15.0

1 year ago

5.4.0-next.0

1 year ago

5.4.0-next.1

1 year ago

4.24.0

2 years ago

4.24.0-next.0

2 years ago

4.23.0-next.0

2 years ago

4.23.0

2 years ago

4.22.0

2 years ago

4.25.0-next.0

2 years ago

4.21.0-next.0

2 years ago

4.18.0-next.1

2 years ago

4.18.0-next.0

2 years ago

4.16.0

2 years ago

4.16.0-next.0

2 years ago

4.22.0-next.0

2 years ago

4.19.0-next.1

2 years ago

4.19.0-next.0

2 years ago

4.15.0

2 years ago

4.18.0

2 years ago

4.21.0

2 years ago

4.17.0-next.0

2 years ago

4.17.0

2 years ago

4.20.0

2 years ago

4.20.0-next.0

2 years ago

4.19.0

2 years ago

4.15.0-next.0

2 years ago

4.14.0

2 years ago

4.13.0

2 years ago

4.14.0-next.1

2 years ago

4.14.0-next.2

2 years ago

4.14.0-next.0

2 years ago

4.12.0-next.0

2 years ago

4.11.0-next.0

2 years ago

4.10.0

2 years ago

4.13.0-next.0

2 years ago

4.12.0

2 years ago

4.12.1

2 years ago

4.11.0

2 years ago

4.9.0

2 years ago

4.10.0-next.0

2 years ago

4.10.0-next.1

2 years ago

4.6.0-next.0

2 years ago

4.8.0

2 years ago

4.7.0

2 years ago

4.7.0-next.0

2 years ago

4.6.0

2 years ago

4.5.0-next.0

2 years ago

4.5.0

2 years ago

4.4.0

2 years ago

4.8.0-next.0

2 years ago

4.3.0

2 years ago

4.9.0-next.0

2 years ago

4.4.0-next.0

2 years ago

4.3.0-next.0

2 years ago

4.2.0

2 years ago

4.2.0-next.0

3 years ago

4.1.0

2 years ago

4.0.0

3 years ago

4.1.0-next.0

3 years ago

4.0.0-zz-next.2

3 years ago

3.14.0

3 years ago

4.0.0-zz-next.1

3 years ago

4.0.0-zz-next.8

3 years ago

4.0.0-next.1

3 years ago

4.0.0-next.0

3 years ago

3.14.0-next.2

3 years ago

3.14.0-next.1

3 years ago

3.13.0

3 years ago

3.14.0-next.0

3 years ago

3.12.0

3 years ago

3.13.0-next.0

3 years ago

3.12.0-next.3

3 years ago

3.12.0-next.2

3 years ago

3.12.0-next.1

3 years ago

3.11.0

3 years ago

3.12.0-next.0

3 years ago

3.10.0

3 years ago

3.11.0-next.0

3 years ago

3.10.0-next.1

3 years ago

3.9.0

3 years ago

3.10.0-next.0

3 years ago

3.8.0

3 years ago

3.9.0-next.0

3 years ago

3.6.0

3 years ago

3.8.0-next.0

3 years ago

3.8.0-next.1

3 years ago

3.7.1

3 years ago

3.7.0

3 years ago

3.7.0-next.2

3 years ago

3.7.0-next.1

3 years ago

3.6.0-next.0

3 years ago

3.5.0

3 years ago

3.4.0

3 years ago

3.5.0-next.0

3 years ago

3.7.0-next.0

3 years ago

3.3.0

3 years ago

3.4.0-next.0

3 years ago

3.3.0-next.1

3 years ago

3.2.0

3 years ago

3.3.0-next.0

3 years ago

3.1.0

3 years ago

3.2.0-next.0

3 years ago

3.1.0-next.2

3 years ago

3.0.0

3 years ago

3.1.0-next.1

3 years ago

3.1.0-next.0

3 years ago

3.0.0-v3rc.0

3 years ago

3.0.0-next.0

3 years ago

2.11.0

3 years ago

2.12.0-next.0

3 years ago

2.10.0

3 years ago

2.11.0-next.0

3 years ago

2.9.0

3 years ago

2.10.0-next.0

3 years ago

2.8.0

3 years ago

2.9.0-next.0

3 years ago

2.7.0

3 years ago

2.8.0-next.0

3 years ago

2.6.0

3 years ago

2.7.0-next.0

3 years ago

2.5.0

3 years ago

2.6.0-next.0

3 years ago

2.5.0-next.1

3 years ago

2.5.0-next.0

3 years ago

2.4.17

4 years ago

2.4.16

4 years ago

2.4.15

4 years ago

2.4.14

4 years ago

2.4.13

4 years ago

2.4.12

4 years ago

2.4.11

4 years ago

2.4.10

4 years ago

2.4.8

4 years ago

2.4.7

4 years ago

2.4.6

4 years ago

2.4.5

4 years ago

2.4.4

4 years ago

2.4.3

4 years ago

2.4.2

4 years ago

2.4.1

4 years ago

2.4.0

4 years ago

2.3.4

4 years ago

2.3.3

4 years ago

2.3.2

4 years ago

2.3.1

4 years ago

2.3.0

4 years ago

2.2.25

4 years ago

2.2.24

4 years ago

2.2.23

4 years ago

2.2.22

4 years ago

2.2.21

4 years ago

2.2.19

4 years ago

2.2.18

4 years ago

2.2.17

4 years ago

2.2.16

5 years ago

2.2.15

5 years ago

2.2.14

5 years ago

2.2.13

5 years ago

2.2.12

5 years ago

2.2.11

5 years ago

2.2.9

5 years ago

2.2.8

5 years ago

2.2.7

5 years ago

2.2.6

5 years ago

2.2.5

5 years ago

2.2.4

5 years ago

2.2.3

5 years ago

2.2.2

5 years ago

2.2.1

5 years ago

2.2.0

5 years ago

2.1.9

5 years ago

2.1.8

5 years ago

2.1.7

5 years ago

2.1.6

5 years ago

2.1.5

5 years ago

2.1.4

5 years ago

2.1.3

5 years ago

2.1.2

6 years ago

2.1.1

6 years ago

2.1.1-rc.2

6 years ago

2.1.1-rc.1

6 years ago

2.1.1-rc.0

6 years ago

2.1.1-beta.5

6 years ago

2.1.1-beta.4

6 years ago

2.1.1-beta.3

6 years ago

2.1.1-beta.2

6 years ago

2.1.1-beta.1

6 years ago

2.1.1-beta.0

6 years ago

2.1.1-alpha.2

6 years ago

2.0.1-12

6 years ago

2.0.1-11

6 years ago

2.0.1-10

6 years ago

2.0.1-9

6 years ago

2.0.1-8

6 years ago

2.0.1-5

6 years ago

2.0.1-4

6 years ago

2.0.1-3

6 years ago

2.0.1-2

6 years ago

2.0.1-1

6 years ago

1.1.9

6 years ago

2.0.1-0

6 years ago

1.1.8

6 years ago

1.1.7

6 years ago

1.1.6

6 years ago

1.1.5

7 years ago

1.1.4

7 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago