Last active
March 10, 2020 07:27
-
-
Save kartiknair/4eee5d0e933a028a9731f6dae3770b21 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const config = require("./config"); | |
const posts = fs | |
.readdirSync(config.dev.postsdir) | |
.map(post => post.slice(0, -3)); | |
console.log(posts); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment