hi_stmap 0.2.1

  • README.md
  • Example
  • Installing
  • Versions
  • 29

hi_stmap

This make sitemap.xml from local files. It also check files that are not linked or disabled links.

Usage

See example.dart

Class

Constructor

C_mkstmap(String top URL of homepage, String top directory of local files, List<String> options)

option

-sitemap=fullpath of sitemap.xml in local disk
-time=difference with the standard time
-work=directory of backup and logfile

Metohd

int make()

return error code. 0 is no error

more information

[see http://studyhallweb.info/freesoft/dartmkstmap.html]

example/example.dart

/* ***********************************************************
example for hi_stmap Version 0.2.1

2014-05-31
hi_tag	http://studyhallweb.info/
-------------------------------------------------------------
ルートディレクトリに robots.txt があること
*********************************************************** */
import '../lib/hi_stmap.dart';
//import 'package:mkstmap/hi_stmap.dart';

void main(List<String> arguments) {
	int iErr = 0;	// Error Nomber

	// arguments[2 and more] convert into options
	List<String> options = new List();
	if (arguments.length > 2) {
		options.length = arguments.length - 2;
		for(int i = 0; i < options.length; i++) {
			options[i] = arguments[i + 2];
		}
	} else {
		options.add('-sitemap=sitemap.xml');
	}

	// used hi_stmap library
	C_mkstmap cmkmap = new C_mkstmap(arguments[0], arguments[1], options);
	iErr = cmkmap.make();

	print('End program:$iErr');
}

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  hi_stmap: "^0.2.1"

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter packages get

Alternatively, your editor might support pub get or packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:hi_stmap/hi_stmap.dart';
        
Version Uploaded Documentation Archive
0.2.1 May 31, 2014 Go to the documentation of hi_stmap 0.2.1 Download hi_stmap 0.2.1 archive
0.2.0 Apr 12, 2014 failed Download hi_stmap 0.2.0 archive

Analysis

We analyzed this package on Apr 23, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0-dev.49.0
  • pana: 0.10.6

Scores

Popularity:
Describes how popular the package is relative to other packages. [more]
0 / 100
Health:
Code health derived from static analysis. [more]
98 / 100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
0 / 100
Overall score:
Weighted score of the above. [more]
29
Learn more about scoring.

Platforms

Detected platforms: Flutter, other

Primary library: package:hi_stmap/hi_stmap.dart with components: io.

Suggestions

  • Maintain CHANGELOG.md.

    Changelog entries help clients to follow the progress in your code.

  • Package is pre-v1 release.

    While there is nothing inherently wrong with versions of 0.*.*, it usually means that the author is still experimenting with the general direction API.

  • Fix analysis and formatting issues.

    Analysis or formatting checks reported 8 hints.

    Run dartfmt to format lib/hi_stmap.dart.

    Run dartfmt to format lib/hi_stmap_html.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.3.0-dev.4.1
hi_files >=0.2.0 <0.3.0 0.2.0