![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
notionater
Advanced tools
Aim is to be able to point this script at a folder full of markdown (e.g. from checkout of a github or Azure devops wiki) and have it fully import, with the folder structure and content fully formatted.
Aim is to be able to point this script at a folder full of markdown (e.g. from checkout of a github or Azure devops wiki) and have it fully import, with the folder structure and content fully formatted.
First of all, you need to create an integration with Notion (you need to be an admin): https://www.notion.so/my-integrations
Once you have created it, save the token, you need it later.
You then need to share the page you want to import against with the Integration you created, otherwise you can't see them. Note that this will import directly into this page as sub-pages; so best if you are importing Amazing Wiki
, best to create a page in Notion with this name, and import directly into it.
To work, go to a command line:
npx notionater -t secret_XXXX -g '**/**.md' -p 'Amazing Wiki'
It assumes that the folder you are in is a set of nested folders containing markdown.
For real usage, I recommend you use a config file as it makes it easier to manage (e.g. this is config.json
)
{
"token": "secret_XXXX",
"basePath": "/Users/cliftonc/work/Amazing.Wiki/",
"glob": "**/**.md",
"skipEmpty": true,
"basePage": "Amazing Wiki",
"plugins": "devops",
"azureBlobUrl": "https://azureBlob.z6.web.core.windows.net/",
"azureBlobAccount": "azureBlob"
}
and then:
npx notionater -c config.json
You can add plugins to the plugins folder, and then use them from the command line (comma separated, no spaces).
npx notionater -t secret_XXXX -g '**/**.md' -p 'Amazing Wiki' -x devops
Plugins can expose two async functions:
export.preParse = async (fileText) {
// Do something with the text
return fileText;
}
export.postParse = async (blocks) {
// Do something with the blocks
return blocks;
}
This fixes header markup, and looks up users based on Guids, using the Azure CLI - this needs to be installed and configured separately (along with the azure-devops
plugin), the plugins will fail if it is not installed and authenticated. It caches the user lookups in a local file for subsequent loads - as it isn't fast.
az login
az extension add --name azure-devops
az devops configure --defaults organization=https://dev.azure.com/infinitas/
To enable debug mode:
DEBUG=* npx notionater -c config.json
notionater Loaded 51 users from cache :D +0ms
notionater You must have the Azure CLI installed - https://docs.microsoft.com/en-us/cli/azure/install-azure-cli +0ms
✔ Choose the page to import under: › Clifton Imports
notionater Creating folder page: ... +5s
notionater Creating folder page: Users ... +861ms
notionater Creating folder page: cliftonc ... +852ms
notionater Creating folder page: work ... +871ms
notionater Creating folder page: IL.PE.Platforms.wiki ... +988ms
notionater Processing markdown file: Feature-Teams.md ... +948ms
notionater Processing markdown file: Home.md ... +3s
notionater Skipping empty file Home.md +1ms
notionater Processing markdown file: Liber.md ... +1ms
notionater Skipping empty file Liber.md +0ms
notionater Processing markdown file: Maintenance-Team.md ... +0ms
notionater Looking up 8 users ... +12s
notionater Processing markdown file: Noordhoff.md ... +1s
./
at the start as it will create a page called .
- a good fix for a new contributor :DFAQs
Aim is to be able to point this script at a folder full of markdown (e.g. from checkout of a github or Azure devops wiki) and have it fully import, with the folder structure and content fully formatted.
The npm package notionater receives a total of 2 weekly downloads. As such, notionater popularity was classified as not popular.
We found that notionater demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.