ntn 0.1.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +21 -0
- package/README.md +46 -0
- package/bin/ntn +31 -0
- package/dist/ntn-darwin-arm64/ntn +0 -0
- package/package.json +15 -0
package/LICENSE.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Notion Labs, Inc.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
6
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
7
|
+
the Software without restriction, including without limitation the rights to
|
|
8
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
|
9
|
+
of the Software, and to permit persons to whom the Software is furnished to do
|
|
10
|
+
so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# ntn: The Notion CLI
|
|
2
|
+
|
|
3
|
+
A command-line interface for Notion.
|
|
4
|
+
|
|
5
|
+
> [!NOTE]
|
|
6
|
+
> Nothing to see here. This is **extreme** alpha and currently only works for an unreleased product.
|
|
7
|
+
|
|
8
|
+
## Installation
|
|
9
|
+
|
|
10
|
+
Download and install the latest release:
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
curl -fsSL https://github.com/makenotion/cli/releases/latest/download/ntn-aarch64-apple-darwin.tar.gz \
|
|
14
|
+
| tar xz --strip-components=1 -C /usr/local/bin ntn-*/ntn
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Building from source
|
|
18
|
+
|
|
19
|
+
Clone the repository and install [mise](https://mise.jdx.dev/), which manages
|
|
20
|
+
toolchains and task running. Then build:
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
git clone https://github.com/makenotion/cli.git
|
|
24
|
+
cd cli
|
|
25
|
+
mise build
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
To rebuild automatically when files change:
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
mise watch build
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Then copy the binary into your PATH:
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
cp target/debug/ntn /usr/local/bin/ntn
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## Design
|
|
41
|
+
|
|
42
|
+
See [this page](https://claude.ai/public/artifacts/56976778-e51d-4e76-b400-c3c00b134678) for some of our design goals and inspiration with ntn (built by Claude).
|
|
43
|
+
|
|
44
|
+
## Documentation
|
|
45
|
+
|
|
46
|
+
See the `docs/` directory for additional documentation, including `docs/HIDDEN.md` which describes hidden commands and flags not shown in `--help` output.
|
package/bin/ntn
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
const { execFileSync } = require("node:child_process");
|
|
4
|
+
const path = require("node:path");
|
|
5
|
+
|
|
6
|
+
const PLATFORMS = {
|
|
7
|
+
"darwin-arm64": "ntn-darwin-arm64",
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
const key = `${process.platform}-${process.arch}`;
|
|
11
|
+
const dir = PLATFORMS[key];
|
|
12
|
+
|
|
13
|
+
if (!dir) {
|
|
14
|
+
console.error(
|
|
15
|
+
`error: ntn does not support ${process.platform} ${process.arch}`
|
|
16
|
+
);
|
|
17
|
+
process.exit(1);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
const bin = path.join(__dirname, "..", "dist", dir, "ntn");
|
|
21
|
+
|
|
22
|
+
try {
|
|
23
|
+
const result = execFileSync(bin, process.argv.slice(2), {
|
|
24
|
+
stdio: "inherit",
|
|
25
|
+
});
|
|
26
|
+
} catch (err) {
|
|
27
|
+
if (err.status != null) {
|
|
28
|
+
process.exit(err.status);
|
|
29
|
+
}
|
|
30
|
+
throw err;
|
|
31
|
+
}
|
|
Binary file
|