diff options
| author | Ruben Beltran del Rio <git@r.bdr.sh> | 2024-02-14 16:58:56 +0100 |
|---|---|---|
| committer | Ruben Beltran del Rio <git@r.bdr.sh> | 2024-02-14 16:58:56 +0100 |
| commit | 6cd62e795e3716aa0cbd2d1ff8c1b3a345803563 (patch) | |
| tree | f35cfd157529d890d8d5e8e4280c9d44d77a5e01 /bin | |
| parent | 02f408c24d82d1fac4e55c146c4fa57cbdcdeca4 (diff) | |
Use modules, use XDG dirs
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/blog.js | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/bin/blog.js b/bin/blog.js index a9e2d1e..3f5db43 100755 --- a/bin/blog.js +++ b/bin/blog.js @@ -1,10 +1,7 @@ #!/usr/bin/env node -'use strict'; - -const Package = require('../package.json'); -const Config = require('../config/config'); -const Blog = require('..'); -const Minimist = require('minimist'); +import Config from '../config/config.js'; +import Blog from '../lib/blog.js'; +import Minimist from 'minimist'; const internals = { blog: new Blog(Config), @@ -34,7 +31,7 @@ const internals = { const value = parsedArguments[argument]; if (argument === 'version') { - console.log(Package.version); + console.log('6.0.0'); return; } |