hi_stmap 0.2.1

  • README.md
  • Example
  • Installing
  • Versions
  • 0

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');
}

Use this package as a library

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

Alternatively, your editor might support pub 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 Go to the documentation of hi_stmap 0.2.0 Download hi_stmap 0.2.0 archive
Popularity:
Describes how popular the package is relative to other packages. [more]
0
Health:
Code health derived from static analysis. [more]
0
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
0
Overall:
Weighted score of the above. [more]
0
Learn more about scoring.

We analyzed this package on Oct 21, 2018, and provided a score, details, and suggestions below. Analysis was completed with status tool failures using:

  • Dart: 2.0.0
  • pana: 0.12.4

Platforms

Detected platforms: unsure

Error(s) prevent platform classification:

Fix dependencies in pubspec.yaml.

Analysis issues and suggestions

Fix dependencies in pubspec.yaml.

Running pub upgrade failed with the following output:

ERR: The current Dart SDK version is 2.0.0.
 
 Because hi_stmap depends on hi_files >=0.1.1-a which requires SDK version >=1.3.0-dev.4.1 <2.0.0, version solving failed.

Health suggestions

Format bin/mkstmap.dart.

Run dartfmt to format bin/mkstmap.dart.

Format lib/hi_stmap.dart.

Run dartfmt to format lib/hi_stmap.dart.

Format lib/hi_stmap_html.dart.

Run dartfmt to format lib/hi_stmap_html.dart.

Maintenance issues and suggestions

Fix platform conflicts. (-20 points)

Error(s) prevent platform classification:

Fix dependencies in pubspec.yaml.

Package is too old. (-100 points)

The package was released more than two years ago.

Maintain CHANGELOG.md. (-20 points)

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

Homepage does not exists. (-20 points)

We were unable to access http://studyhallweb.info/ at the time of the analysis.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.3.0-dev.4.1