New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

simurgh

Package Overview
Dependencies
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simurgh

js library for ssr page rendering

latest
Source
npmnpm
Version
0.6.10-beta.1
Version published
Maintainers
1
Created
Source

install

library currently is in BETA version,

simurgh is a js library for ssr page rendering based on typescript & nodejs.its recomended to install simurgh globaly

npm i -g simurgh

quick start

after installing simurgh you can use cli commands to create , build and start your project.use blow cli code to create new "test" project

simurgh new test

create home page

simurgh make:page index

open app/http/index.js and override render function

   async render() {

        return <h1>index</h1>

    }

create test page

simurgh make:page test

you can create navigation for each server request.paste this code in index.js file in project root folder.

import * as simurgh from 'simurgh/app/application';
import { CreateStackNavigation } from 'simurgh/app/navigation';
let myApp = new simurgh.Application();

/** configure your application */
let stack = new CreateStackNavigation();
stack.add('/', 'index');
stack.add('/test', 'test');

myApp.navigation = stack;



myApp.build();

now you can build your app using blow command

simurgh build:web

running application

open terminal in dist/web folder and type

simurgh start

FAQs

Package last updated on 07 Feb 2022

Did you know?

Socket

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.

Install

Related posts