@s2terminal/every-url
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

npm version

Every URL

This is React component that enables to bookmark dynamic url.

Installation

$ npm install --save-dev @s2terminal/every-url

Requirements

Usage

import React from 'react';
import ReactDOM from 'react-dom';
import EveryURL from "@s2terminal/every-url";

ReactDOM.render(
  <EveryURL
    uniqueStorageKey="EveryURLState"
    urlSettings={
      {
        host: {
          name: "HOST",
          type: "static",
          default: "https://example.com/before/date/path/"
        },
        datePath: {
          name: "DATE",
          type: "date",
          default: "YYYY/MM/DD/"
        },
        afterDatePath: {
          name: "AFTER DATE PATH",
          type: "static",
          default: "after?date=path"
        }
      }
    }
  />, document.getElementById('main'));

Build

$ npm run prepare

Developing

$ npm run develop

open http://localhost:8080/

License

MIT.

Readme

Keywords

Package Sidebar

Install

npm i @s2terminal/every-url

Weekly Downloads

0

Version

0.0.4

License

MIT

Unpacked Size

818 kB

Total Files

7

Last publish

Collaborators

  • s2terminal