Git Product home page Git Product logo

cross-post's People

Contributors

dependabot[bot] avatar ethanrodrigo avatar harshavardhannakkina avatar palmerusaf avatar shahednasser avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cross-post's Issues

Detect Image Type and Covert it

Trying to cross-post from hashnode to dev.to, but received the following error:

Error occured while cross posting to DEV: Main image is not a valid URL

The image is base64 encoded: Error: Could not load img: "data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="

Hashnode Posts - No Drafts

Hi there,

I noticed when I use the hashnode command line argument in cross-post run <url> -p hashnode, it posts directly on Hashnode without first going to drafts.

I think this may be able to be solved with a tweak to the API call to Hashnode. I'd love to help on this issue so feel free to direct me to which files I should edit if you'd like me to help!

Best,
Max

Add unit tests

Unit tests should be added to ensure the CLI tool is not affected by new changes.

GitHub actions should also be added to run these unit tests whenever a new PR is created.

No commands for Windows

I am a Windows user and while going through various blogs I got redirected here to be the solution I wanted for my cross-posting. But sadly there are no commands for windows machine even not in the readme. And also no draft over how to get the thing done if someone is on that machine.

It's really needy as even today the maximum market comes under Windows and not drafting a command to configure the same is really not justified for any project.

It's a request to please fix this issue so that the project can be useful for everyone.

Publish to Hashnode not being in Draft

I've tried publishing to all of them and it seems to work except for Hashnode. That one will always instantly be published and not put in to draft.

Is this a bug?

urlencodes less than and greater than symbols

When I ran cross-post from a Wordpress source to Medium, it seems to have url encoded all the < and > characters. I had to manually clean them all up in the medium post before publishing.

I haven't tried it for other targets

Getting this error - Processing URL...(node:13676) UnhandledPromiseRejectionWarning: #<Object> (node:13676) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:13676) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

I am running this command cross-post run https://hussaincodes.in/how-to-host-a-website-on-github-with-custom-domain -p dev medium

[Feature Request] Posting from a local markdown file.

Hi !

First of all, thank you very much for creating this tool ! It's quite handy and I've been using it for a few weeks, every time I need to cross post something !

I'm currently working toward automating my publishing workflow as much as possible. I do most of my writing locally in neovim, and then version it in a repo. To automate this completly I'd need to be able to post it to hashnode (where my main blog is hosted) from a local markdown file.

Something like: cross-post run_local <my_file.md> --url <slug> --title <title> -p hashnode

I opened a PR with a proposal for the implementation. I'm already using and it seems to work nicely !

If you're interested into integrating into the main repo, I'm available for discussing. It probably needs some more work (I seem to have broken some of the loading.message() I've never worked with a node cli before) , I'd be happy to read your thoughts on that!

Add Option for Main Image Selector

Currently, when getting an article from a URL, the main image is just the first image inside the <article> tag. We need to add an option for the run command that accepts the selector of the main image, or allow it to be set by default using the config command, then using the value set in the run command.

update posts

I'd like a way to update posts. Use case I have a local markdown file. I make a mistake and would like to update the post.

Add reset config command

Add a command to reset the config. It can accept the name of a config or if no name provided then the entire config (with the exception of the platforms' API keys should be reset).

This can be helpful for development and testing.

cross-post config command is throwing exceptions

cross-post config medium

/usr/local/lib/node_modules/cross-post-blog/node_modules/commander/lib/command.js:1030
        throw new Error(executableMissing);
        ^

Error: 'config-medium' does not exist
 - if 'medium' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
 - if the default executable name is not suitable, use the executableFile option to supply a custom name or path
 - searched for local subcommand relative to directory './src/commands/config'
    at ChildProcess.<anonymous> (/usr/local/lib/node_modules/cross-post-blog/node_modules/commander/lib/command.js:1030:15)
    at ChildProcess.emit (events.js:400:28)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
    at onErrorNT (internal/child_process.js:467:16)
    at processTicksAndRejections (internal/process/task_queues.js:82:21)

Error posting to Hashnode

Hello, I see this error while trying to cross post to Hashnode. It's probably due to an updated API? Or, am I missing something? Would appreciate your help!

Error: Error occured while cross posting to Hashnode: Variable "$input" got invalid value { title: "this is a test blog", contentMarkdown: "# this is a test blog", tags: [] }; Field "isPartOfPublication" of required type "PublicationDetails!" was not provided.

A question regarding Canonical during re-post

Hello !

Thanks for creating this cool CLI !

A quick question that is is not clear for me from your blog post or documentation. Regarding SEO, are canonicals handled automatically ?

I have my blog on hashnode. Dev has RSS importer and it takes care of automatically importing the posts and correct SEO canonical during re-post. I plan to use this tool to repost my posts from hashnode -> medium.

Looking forward to hearing from you !

Thanks !

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.