4.2.0 • Published 2 months ago

gatsby-source-filesystem v4.2.0

Weekly downloads
441,186
License
MIT
Repository
github
Last release
2 months ago

gatsby-source-filesystem

Plugin for creating File nodes from the file system. The various "transformer" plugins transform File nodes into various other types of data e.g. gatsby-transformer-json transforms JSON files into JSON data nodes and gatsby-transformer-remark transforms markdown files into MarkdownRemark nodes from which you can query an HTML representation of the markdown.

Install

npm install --save gatsby-source-filesystem

How to use

// In your gatsby-config.js
plugins: [
  // You can have multiple instances of this plugin
  // to read source nodes from different locations on your
  // filesystem.
  //
  // The following sets up the Jekyll pattern of having a
  // "pages" directory for Markdown files and a "data" directory
  // for `.json`, `.yaml`, `.csv`.
  {
    resolve: `gatsby-source-filesystem`,
    options: {
      name: `pages`,
      path: `${__dirname}/src/pages/`,
    },
  },
  {
    resolve: `gatsby-source-filesystem`,
    options: {
      name: `data`,
      path: `${__dirname}/src/data/`,
    },
  },
];

How to query

You can query file nodes like the following:

{
  allFile {
    edges {
      node {
        extension
        dir
        modifiedTime
      }
    }
  }
}
gatsby-developer-theme@andreadev/gatsby-source-strapioctto@pil0t/gatsby-theme-novela@storycopter/gatsby-starter-storycopter@thirdwave-network/thirdwave-gatsby-theme@lucasbarcelos/gatsby-theme-mercadolibre-store-custom@cangir/gatsby-blog-corerecipe-doc-site@sachinjadhav/gatsby-theme-blog@nmataleadtech/ac-base-themegatsby-plugin-rave@smartassdesign/gatsby-theme-themifygatsby-theme-sky-lite-master@puzzledbytheweb/gatsby-theme-ecommerce-core@puzzledbytheweb/gatsby-theme-kel-theme-fudiduhgatsby-theme-cara-improved@puzzledbytheweb/kel-theme-fudiduh@4leb/gatsby-theme-events@studiobear/gatsby-theme-ionic@studiobear/gatsby-theme-blog@prg/gatsby-theme-bedrock@kyrelldixon/gatsby-theme-novela@one-builder/gatsby-theme-ob-master@minblake/gatsby-theme-tailwindgatsby-theme-ob-masterjamstack-boilerplate@hacktion/test-librarygatsby-theme-appsfortrackinggatsby-azureblob-source-botxoshycat-theme-bloggatsby-source-prismic-graphql-forkedgatsby-theme-sanity-evelangatsby-theme-ghost-reloadedgatsby-theme-crystyallizegatsby-startyer-crystyallizestate-designer-docs@cangir/gatsby-theme-photo-core@cangir/gatsby-theme-podcast-core@cangir/gatsby-theme-portfolio-coreconnie-gatsby-source-prismic-graphqlsomoy-portfoliogatsby-universal@nowseemee/monument@jayellul/gatsby-theme-craftcms@i1r0/gatsby-theme-nehalembeamer-gatsby-source-shopifygatsby-plugin-social-imagegatsby-plugin-translate-urls-example@shetharp/gatsby-theme-marblegatsby-theme-contactless-menugatsby-theme-minimal-blog-corereobin-gatsby-source-instagram@luciannojunior/gatsby-theme-lodge@molecule-ui/system@component-driven/gatsby-theme-content-collections@dewen_li/gatsby-theme-bodilessgatsby-theme-kuworking-landing-onewebiu-testjeffs-websitegatsby-fassetgatsby-theme-bejamas-coregatsby-theme-fierce-vanillaluandevtheme1gatsby-theme-lumen@bsgreenb/gatsby-source-contentfulgatsby-theme-css-modules-demogatsby-theme-memoriestorichegatsby-theme-katahdingatsby-theme-not-important-bloggonation-site-generatorgatsby-source-googlemaps-staticgatsby-theme-factlycustom-gatsby-theme-novelagatsby-plugin-source-youtubegatsby-source-youtube2@carltonj2000/gatsby-theme-events@med40/teventstheme-gatsby-shopifyjam-cms-starter@dsoaress/themegatsby-theme-jdoefriday.de@meetup/build-meetup-web-componentssix-foot-six-designs@stvad/gatsby-theme-gardengatsby-theme-cumberlandgatsby-source-prismic-api@juancamiloqhz/gatsby-theme-affiliate-links@ekampf/gatsby-theme-networked-thought@fujuntao/use-form-websitegatsby-typescript-default-startergatsby-typescript-material-ui-startergatsby-typescript-tailwind-starterdocbot@dxos/theme-docs@garytee/gatsby-woo-elementorgatsby-woocommerce-elementor-theme@leptest/gatsby-netlify-cms@nimbu/gatsby-source-nimbu
4.2.0-next.1

2 months ago

4.2.0-next.2

2 months ago

4.2.0

2 months ago

4.1.3

2 months ago

4.1.2

2 months ago

4.1.1

2 months ago

4.3.0-next.0

2 months ago

4.3.0-next.1

2 months ago

4.2.0-next.0

3 months ago

4.1.0

3 months ago

4.1.0-next.1

3 months ago

4.0.0

3 months ago

4.1.0-next.0

3 months ago

4.0.0-zz-next.2

4 months ago

4.0.0-zz-next.3

3 months ago

3.14.0

4 months ago

4.0.0-next.2

4 months ago

4.0.0-zz-next.1

4 months ago

4.0.0-zz-next.0

4 months ago

4.0.0-next.1

4 months ago

4.0.0-next.0

4 months ago

3.14.0-next.2

5 months ago

3.14.0-next.1

5 months ago

3.13.0

5 months ago

3.14.0-next.0

5 months ago

3.13.0-next.2

5 months ago

3.13.0-next.1

5 months ago

3.12.0

5 months ago

3.13.0-next.0

5 months ago

3.12.0-next.3

6 months ago

3.12.0-next.2

6 months ago

3.12.0-next.1

6 months ago

3.11.0

6 months ago

3.12.0-next.0

6 months ago

3.10.0

6 months ago

3.11.0-next.0

6 months ago

3.10.0-next.1

7 months ago

3.9.0

7 months ago

3.10.0-next.0

7 months ago

3.8.0

7 months ago

3.9.0-next.0

7 months ago

3.8.0-next.0

8 months ago

3.8.0-next.1

8 months ago

3.6.0

8 months ago

3.7.1

8 months ago

3.7.0

8 months ago

3.7.0-next.2

8 months ago

3.7.0-next.1

8 months ago

3.5.0-next.0

9 months ago

3.6.0-next.0

9 months ago

3.5.0

8 months ago

3.4.0

9 months ago

3.4.0-next.3

9 months ago

3.7.0-next.0

8 months ago

3.4.0-next.1

9 months ago

3.3.0

9 months ago

3.4.0-next.0

10 months ago

3.3.0-next.1

10 months ago

3.2.0

10 months ago

3.3.0-next.0

10 months ago

3.1.0

10 months ago

3.2.0-next.0

11 months ago

3.1.0-next.2

11 months ago

3.0.0

11 months ago

3.0.0-v3rc.0

11 months ago

3.1.0-next.1

11 months ago

3.1.0-next.0

11 months ago

3.0.0-next.4

11 months ago

2.11.1

11 months ago

3.0.0-next.3

11 months ago

3.0.0-next.2

11 months ago

3.0.0-next.1

11 months ago

3.0.0-next.0

12 months ago

2.11.0

12 months ago

2.12.0-next.0

12 months ago

2.10.0

1 year ago

2.11.0-next.0

1 year ago

2.9.1

1 year ago

2.10.0-next.1

1 year ago

2.9.0

1 year ago

2.10.0-next.0

1 year ago

2.9.0-next.2

1 year ago

2.8.1

1 year ago

2.9.0-next.1

1 year ago

2.8.0

1 year ago

2.9.0-next.0

1 year ago

2.7.0

1 year ago

2.8.0-next.0

1 year ago

2.6.1

1 year ago

2.7.0-next.2

1 year ago

2.6.0

1 year ago

2.7.0-next.0

1 year ago

2.7.0-next.1

1 year ago

2.5.0

1 year ago

2.6.0-next.0

1 year ago

2.5.0-next.2

1 year ago

2.5.0-next.1

1 year ago

2.4.2

1 year ago

2.4.1

1 year ago

2.5.0-next.0

1 year ago

2.4.0

1 year ago

2.3.37

1 year ago

2.3.36

1 year ago

2.3.35

1 year ago

2.3.34

1 year ago

2.3.33

1 year ago

2.3.32

1 year ago

2.3.31

1 year ago

2.3.30

1 year ago

2.3.29

1 year ago

2.3.28

1 year ago

2.3.27

1 year ago

2.3.26

1 year ago

2.3.25

1 year ago

2.3.24

1 year ago

2.3.23

1 year ago

2.3.22

2 years ago

2.3.21

2 years ago

2.3.20

2 years ago

2.3.19

2 years ago

2.3.17

2 years ago

2.3.18

2 years ago

2.3.16

2 years ago

2.3.14

2 years ago

2.3.13

2 years ago

2.3.12

2 years ago

2.3.11

2 years ago

2.3.9

2 years ago

2.3.10

2 years ago

2.3.8

2 years ago

2.3.7

2 years ago

2.3.6

2 years ago

2.3.5

2 years ago

2.3.4

2 years ago

2.3.3

2 years ago

2.3.2

2 years ago

2.3.1

2 years ago

2.3.0

2 years ago

2.2.5

2 years ago

2.2.4

2 years ago

2.2.3

2 years ago

2.2.2

2 years ago

2.2.1

2 years ago

2.2.0

2 years ago

2.1.57

2 years ago

2.1.56

2 years ago

2.1.55

2 years ago

2.1.54

2 years ago

2.1.53

2 years ago

2.1.52

2 years ago

2.1.51

2 years ago

2.1.49

2 years ago

2.1.50

2 years ago

2.1.48

2 years ago

2.1.47

2 years ago

2.1.46

2 years ago

2.1.45

2 years ago

2.1.43

2 years ago

2.1.42

2 years ago

2.1.40

2 years ago

2.1.39

2 years ago

2.1.38

2 years ago

2.1.37

2 years ago

2.1.36

2 years ago

2.1.35

2 years ago

2.1.34

2 years ago

2.1.33

2 years ago

2.1.32

2 years ago

2.1.31

2 years ago

2.1.30

2 years ago

2.1.29

2 years ago

2.1.28

2 years ago

2.1.26

2 years ago

2.1.25

2 years ago

2.1.24

2 years ago

2.1.23

2 years ago

2.1.22

2 years ago

2.1.21

2 years ago

2.1.20

2 years ago

2.1.19

2 years ago

2.1.18

2 years ago

2.1.17

2 years ago

2.1.16

2 years ago

2.1.15

2 years ago

2.1.14

2 years ago

2.1.13

2 years ago

2.1.12

2 years ago

2.1.11

2 years ago

2.1.10

2 years ago

2.1.9

2 years ago

2.1.8

2 years ago

2.1.7

2 years ago

2.1.6

3 years ago

2.1.5

3 years ago

2.1.4

3 years ago

2.1.3

3 years ago

2.1.2

3 years ago

2.1.1

3 years ago

2.1.0

3 years ago

2.0.43

3 years ago

2.0.42

3 years ago

2.0.41

3 years ago

2.0.40

3 years ago

2.0.39

3 years ago

2.0.38

3 years ago

2.0.37

3 years ago

2.0.36

3 years ago

2.0.35

3 years ago

2.0.34

3 years ago

2.0.33

3 years ago

2.0.32

3 years ago

2.0.31

3 years ago

2.0.30

3 years ago

2.0.29

3 years ago

2.0.28

3 years ago

2.0.27

3 years ago

2.0.26

3 years ago

2.0.25

3 years ago

2.0.24

3 years ago

2.0.24-alpha.0

3 years ago

2.0.23

3 years ago

2.0.22

3 years ago

2.0.21

3 years ago

2.0.20

3 years ago

2.0.19

3 years ago

2.0.18

3 years ago

2.0.17

3 years ago

2.0.16

3 years ago

2.0.14

3 years ago

2.0.13

3 years ago

2.0.12

3 years ago

2.0.11

3 years ago

2.0.10

3 years ago

2.0.9

3 years ago

2.0.8

3 years ago

2.0.7

3 years ago

2.0.6

3 years ago

2.0.5

3 years ago

2.0.4

3 years ago

2.0.3

3 years ago

2.0.2

3 years ago

2.0.1

3 years ago

2.0.1-rc.6

3 years ago

2.0.1-rc.2

3 years ago

2.0.1-rc.1

3 years ago

2.0.1-rc.0

3 years ago

2.0.1-beta.11

3 years ago

2.0.1-beta.10

3 years ago

2.0.1-beta.9

4 years ago

2.0.1-beta.8

4 years ago

2.0.1-beta.7

4 years ago

2.0.1-beta.6

4 years ago

2.0.1-beta.5

4 years ago

2.0.1-beta.4

4 years ago

2.0.1-beta.3

4 years ago

2.0.1-beta.2

4 years ago

2.0.1-beta.1

4 years ago

2.0.1-beta.0

4 years ago

1.5.39

4 years ago

2.0.1-alpha.2

4 years ago

2.0.0-alpha.18

4 years ago

2.0.0-alpha.17

4 years ago

2.0.0-alpha.16

4 years ago

1.5.38

4 years ago

2.0.0-alpha.15

4 years ago

2.0.0-alpha.14

4 years ago

1.5.37

4 years ago

2.0.0-alpha.13

4 years ago

2.0.0-alpha.12

4 years ago

1.5.36

4 years ago

2.0.0-alpha.9

4 years ago

1.5.35

4 years ago

2.0.0-alpha.8

4 years ago

2.0.0-alpha.7

4 years ago

1.5.34

4 years ago

2.0.0-alpha.6

4 years ago

1.5.33

4 years ago

1.5.32

4 years ago

1.5.31

4 years ago

1.5.30

4 years ago

1.5.29

4 years ago

2.0.0-alpha.5

4 years ago

1.5.28

4 years ago

2.0.0-alpha.4

4 years ago

1.5.27

4 years ago

1.5.26

4 years ago

2.0.0-alpha.3

4 years ago

1.5.25

4 years ago

1.5.24

4 years ago

1.5.23

4 years ago

1.5.22

4 years ago

1.5.21

4 years ago

1.5.20

4 years ago

1.5.19

4 years ago

1.5.18

4 years ago

1.5.17

4 years ago

1.5.16

4 years ago

1.5.15

4 years ago

1.5.14

4 years ago

1.5.13

4 years ago

1.5.12

4 years ago

1.5.11

4 years ago

1.5.10

4 years ago

1.5.9

4 years ago

1.5.8

4 years ago

1.5.7

4 years ago

1.5.6

4 years ago

1.5.5

4 years ago

1.5.4

4 years ago

1.5.3

4 years ago

1.5.2

4 years ago

1.5.1

4 years ago

1.5.0

4 years ago

2.0.0-alpha.2

4 years ago

1.4.12

4 years ago

1.4.11

4 years ago

1.4.10

4 years ago

1.4.9

4 years ago

1.4.8

4 years ago

1.4.7

4 years ago

2.0.0-alpha.1

4 years ago

2.0.0-alpha.0

4 years ago

1.4.6

4 years ago

1.4.5

4 years ago

2.0.0

4 years ago

1.4.4

4 years ago

1.4.3

4 years ago

1.4.2

4 years ago

1.4.1

4 years ago

1.4.0

4 years ago

1.0.1

5 years ago

1.0.0

5 years ago

1.0.0-beta.6

5 years ago

1.0.0-beta.4

5 years ago

1.0.0-beta.1

5 years ago

1.0.0-alpha.22

5 years ago

1.0.0-alpha17

5 years ago

1.0.0-alpha15

5 years ago

1.0.0-alpha14

5 years ago

1.0.0-alpha13

5 years ago

1.0.0-alpha12

5 years ago

1.0.0-alpha11

5 years ago