@underlay/namespaces
Advanced tools
Comparing version 0.1.1 to 0.1.3
@@ -1,2 +0,2 @@ | ||
declare const _default: { | ||
declare const _default: Readonly<{ | ||
readonly type: "http://www.w3.org/1999/02/22-rdf-syntax-ns#type"; | ||
@@ -7,3 +7,3 @@ readonly first: "http://www.w3.org/1999/02/22-rdf-syntax-ns#first"; | ||
readonly JSON: "http://www.w3.org/1999/02/22-rdf-syntax-ns#JSON"; | ||
}; | ||
}>; | ||
export default _default; |
@@ -1,2 +0,2 @@ | ||
export default { | ||
const rdf = { | ||
type: "http://www.w3.org/1999/02/22-rdf-syntax-ns#type", | ||
@@ -8,1 +8,2 @@ first: "http://www.w3.org/1999/02/22-rdf-syntax-ns#first", | ||
}; | ||
export default Object.freeze(rdf); |
@@ -1,2 +0,2 @@ | ||
declare const _default: { | ||
declare const _default: Readonly<{ | ||
readonly class: "http://underlay.org/ns/class"; | ||
@@ -17,3 +17,3 @@ readonly key: "http://underlay.org/ns/key"; | ||
readonly target: "http://underlay.org/ns/target"; | ||
}; | ||
}>; | ||
export default _default; |
@@ -1,2 +0,2 @@ | ||
export default { | ||
const ul = { | ||
class: "http://underlay.org/ns/class", | ||
@@ -18,1 +18,2 @@ key: "http://underlay.org/ns/key", | ||
}; | ||
export default Object.freeze(ul); |
@@ -1,2 +0,2 @@ | ||
declare const _default: { | ||
declare const _default: Readonly<{ | ||
readonly string: "http://www.w3.org/2001/XMLSchema#string"; | ||
@@ -40,3 +40,3 @@ readonly boolean: "http://www.w3.org/2001/XMLSchema#boolean"; | ||
readonly NCNames: "http://www.w3.org/2001/XMLSchema#NCNames"; | ||
}; | ||
}>; | ||
export default _default; |
@@ -1,2 +0,2 @@ | ||
export default { | ||
const xsd = { | ||
string: "http://www.w3.org/2001/XMLSchema#string", | ||
@@ -41,1 +41,2 @@ boolean: "http://www.w3.org/2001/XMLSchema#boolean", | ||
}; | ||
export default Object.freeze(xsd); |
{ | ||
"name": "@underlay/namespaces", | ||
"version": "0.1.1", | ||
"version": "0.1.3", | ||
"type": "module", | ||
"description": "", | ||
"description": "URI constants for commonly used Underlay namespaces", | ||
"main": "lib/index.js", | ||
@@ -7,0 +7,0 @@ "types": "lib/index.d.ts", |
@@ -1,1 +0,36 @@ | ||
# namespaces | ||
# namespaces | ||
[](https://github.com/RichardLitt/standard-readme) [](https://opensource.org/licenses/MIT) [](https://www.npmjs.com/package/@underlay/namespaces)   | ||
URI constants for commonly used Underlay namespaces. | ||
## Table of Contents | ||
- [Install](#install) | ||
- [Usage](#usage) | ||
- [Contributing](#contributing) | ||
- [License](#license) | ||
## Install | ||
``` | ||
npm i @underlay/namespaces | ||
``` | ||
## Usage | ||
```typescript | ||
import { xsd, rdf, ul } from "@underlay/namespaces" | ||
console.log(xsd.integer) // "http://www.w3.org/2001/XMLSchema#integer" | ||
console.log(rdf.type) // "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" | ||
console.log(ul.class) // "http://underlay.org/ns/class" | ||
``` | ||
## Contributing | ||
This library is not intended to be comprehensive. Open an issue to discuss adding other namespaces. | ||
## License | ||
MIT © 2021 underlay |
10574
142
37