@transloadit/post
Advanced tools
Comparing version 0.0.18 to 0.0.19
@@ -16,9 +16,12 @@ { | ||
], | ||
"bin": "./post.js", | ||
"bin": { | ||
"post": "./post.js" | ||
}, | ||
"dependencies": { | ||
"@transloadit/file-exists": "^0.0.12", | ||
"@transloadit/file-exists": "^0.0.13", | ||
"@transloadit/slugify": "^0.0.6", | ||
"inquirer": "7.0.5" | ||
}, | ||
"version": "0.0.18", | ||
"gitHead": "7b74458f6ed416c7abf4bb2dfc30ee26109e5721" | ||
"version": "0.0.19", | ||
"gitHead": "f34e3e8ba857c3bae7c0c2d73c8532075bfc02bf" | ||
} |
const fs = require('fs').promises | ||
const inquirer = require('inquirer') | ||
const fileExists = require('@transloadit/file-exists') | ||
const slugify = require('@transloadit/slugify') | ||
function slugify (str) { | ||
return str | ||
.toLowerCase() | ||
.replace(/[^a-z0-9]+/ig, '-') | ||
.replace(/[-]+$/g, '') | ||
.replace(/^[-]+/g, '') | ||
} | ||
async function post () { | ||
@@ -13,0 +7,0 @@ const postDir = `${process.cwd()}/${process.argv[2] || '_posts'}` |
36345
3
26
+ Added@transloadit/slugify@^0.0.6
+ Added@transloadit/file-exists@0.0.13(transitive)
+ Added@transloadit/slugify@0.0.6(transitive)
- Removed@transloadit/file-exists@0.0.12(transitive)