{"id":15289231,"url":"https://github.com/luftywiranda13/new-gatsby-post","last_synced_at":"2025-07-25T06:33:34.008Z","repository":{"id":65457104,"uuid":"115496744","full_name":"luftywiranda13/new-gatsby-post","owner":"luftywiranda13","description":"Scaffold out a new Gatsby post","archived":false,"fork":false,"pushed_at":"2019-03-01T16:16:21.000Z","size":32,"stargazers_count":3,"open_issues_count":7,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-13T09:06:40.182Z","etag":null,"topics":["blog","gatsby","gatsbyjs","react","reactjs"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/luftywiranda13.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-27T07:56:45.000Z","updated_at":"2020-02-18T05:17:18.000Z","dependencies_parsed_at":"2023-01-24T12:05:12.808Z","dependency_job_id":null,"html_url":"https://github.com/luftywiranda13/new-gatsby-post","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luftywiranda13%2Fnew-gatsby-post","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luftywiranda13%2Fnew-gatsby-post/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luftywiranda13%2Fnew-gatsby-post/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luftywiranda13%2Fnew-gatsby-post/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luftywiranda13","download_url":"https://codeload.github.com/luftywiranda13/new-gatsby-post/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248688570,"owners_count":21145766,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blog","gatsby","gatsbyjs","react","reactjs"],"created_at":"2024-09-30T15:59:56.316Z","updated_at":"2025-04-13T09:06:41.594Z","avatar_url":"https://github.com/luftywiranda13.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# new-gatsby-post\n\n\u003e Scaffold out a new [Gatsby](https://www.gatsbyjs.org/) post\n\n[![Package Version](https://img.shields.io/npm/v/new-gatsby-post.svg?style=flat-square)](https://www.npmjs.com/package/new-gatsby-post)\n[![Downloads Status](https://img.shields.io/npm/dm/new-gatsby-post.svg?style=flat-square)](https://npm-stat.com/charts.html?package=new-gatsby-post\u0026from=2016-04-01)\n[![Build Status: Linux](https://img.shields.io/travis/luftywiranda13/new-gatsby-post/master.svg?style=flat-square)](https://travis-ci.org/luftywiranda13/new-gatsby-post)\n[![Build status: Windows](https://ci.appveyor.com/api/projects/status/urakliukex3h6lfd/branch/master?svg=true)](https://ci.appveyor.com/project/luftywiranda13/new-gatsby-post/branch/master)\n[![Coverage Status](https://img.shields.io/codecov/c/github/luftywiranda13/new-gatsby-post/master.svg?style=flat-square)](https://codecov.io/gh/luftywiranda13/new-gatsby-post)\n\n## Why\n\n* Generates folder structure and `frontmatter`\n* `Async/await` ready\n* Simple API\n* 100% test coverage\n* Doesnʼt bundle a CLI. _See [new-gatsby-post-cli](https://github.com/luftywiranda13/new-gatsby-post-cli) for the command-line tool_\n\n## Installation\n\n```sh\nnpm install --save new-gatsby-post\n```\n\n## Usage\n\n```sh\n$ pwd\n/Users/luftywiranda/blog\n```\n\n```js\nconst newGatsbyPost = require('new-gatsby-post');\n\nnewGatsbyPost('At Least I Tried', { date: '2013-08-05' }).then(path =\u003e {\n  console.log(path);\n  //=\u003e '/Users/luftywiranda/blog/src/pages/blog/2013-08-05-at-least-i-tried'\n});\n```\n\n```sh\n$ tree\n.\n└── src\n    └── pages\n        └── blog\n            └── 2013-08-05-at-least-i-tried\n                └── index.md\n```\n\n## API\n\n### newGatsbyPost(title, [options])\n\nReturns a `promise` for the path to the created blog post's directory\n\n#### title\n\nType: `string`\n\n#### options\n\nType: `Object`\n\n##### location\n\nType: `string`\u003cbr /\u003e\nDefault: `./src/pages/blog`\n\n##### date\n\nType: `string` | `number` | `Date`\u003cbr /\u003e\nDefault: `Date.now()`\n\nDate in `yyyy-mm-dd` format\n\n## Related\n\n* [new-gatsby-post-cli](https://github.com/luftywiranda13/new-gatsby-post-cli) – CLI for this module\n\n## License\n\nMIT \u0026copy; [Lufty Wiranda](https://www.luftywiranda.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluftywiranda13%2Fnew-gatsby-post","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluftywiranda13%2Fnew-gatsby-post","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluftywiranda13%2Fnew-gatsby-post/lists"}